summaryrefslogtreecommitdiff
path: root/scenes/levels/typeracer.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/levels/typeracer.gd')
-rw-r--r--scenes/levels/typeracer.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/scenes/levels/typeracer.gd b/scenes/levels/typeracer.gd
index 429dc7a..c17e1bc 100644
--- a/scenes/levels/typeracer.gd
+++ b/scenes/levels/typeracer.gd
@@ -29,6 +29,7 @@ func eval():
if $Label.text.replace('\r\n', '\n').replace('\r', '\n') == $TextEdit.text.replace('\r\n', '\n').replace('\r', '\n'):
$TextEdit.readonly = true
$Button.disabled = true
+ $Incorrect.visible = false
finish_level()
else:
lose_heart()
@@ -40,6 +41,7 @@ func eval_corr():
if $Label.text.replace('\r\n', '\n').replace('\r', '\n') == $TextEdit.text.replace('\r\n', '\n').replace('\r', '\n'):
$TextEdit.readonly = true
$Button.disabled = true
+ $Incorrect.visible = false
finish_level()
func _on_Button_on_click():