From b09ebf0f1088db2ce1bb0f161d7fbaa5a31647fc Mon Sep 17 00:00:00 2001 From: Nordup Date: Mon, 14 Aug 2023 01:42:24 +0400 Subject: [PATCH] fix shadowing --- project/scripts/ui/search/prompt.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/scripts/ui/search/prompt.gd b/project/scripts/ui/search/prompt.gd index 83f045b..a0ef88c 100644 --- a/project/scripts/ui/search/prompt.gd +++ b/project/scripts/ui/search/prompt.gd @@ -15,9 +15,9 @@ func _ready() -> void: func fill(prompt: Dictionary) -> void: if prompt == null: return - var text: String = prompt["prompt"].to_lower() - text = StringTools.to_alpha(text) - prompt_text.text = text + var txt: String = prompt["prompt"].to_lower() + txt = StringTools.to_alpha(txt) + prompt_text.text = txt func _on_button_pressed() -> void: