Fix GDScript editor warnings (shadowed vars, unused param, integer division)

Renames locals/params that shadowed base-class properties (Node.name,
Control.size, BoxContainer.alignment), prefixes an intentionally-unused
parameter, and annotates a deliberate integer division so the console
stays clean during development.
This commit is contained in:
hz
2026-07-23 14:30:48 -05:00
parent 4a4bed2ac5
commit 48f404518f
4 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ func _field_label(text: String) -> Label:
return label
func open_for_question(question: Dictionary, current_answer: Dictionary) -> void:
func open_for_question(question: Dictionary, _current_answer: Dictionary) -> void:
var stem := str(question.get("stem", "")).strip_edges()
var lead_in := str(question.get("lead_in", "")).strip_edges()
front_input.text = "%s\n\n%s" % [stem, lead_in] if not lead_in.is_empty() else stem