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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user