Questions tries

This commit is contained in:
rendo 2026-04-24 11:06:29 +05:00
commit f0ee075f7a
14 changed files with 88 additions and 12 deletions

14
ui/questions_result.gd Normal file
View file

@ -0,0 +1,14 @@
extends Control
func _process(delta: float) -> void:
$Label.text = str(LabRuntime.correctness.count(true))+"/5 Верно\n"+str(LabRuntime.tries)+" попыток"
$TryAgain.visible = LabRuntime.test_failed()
func _on_try_again_pressed() -> void:
$"../Questions".shuffle_questions()
$"../Questions".visible = true
visible = false
LabRuntime.anwsers.clear()
LabRuntime.correctness.clear()

View file

@ -0,0 +1 @@
uid://ckhrj43lyvorv