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
+2 -2
View File
@@ -237,8 +237,8 @@ func fetch_counts() -> void:
_enqueue_json("GET", "/counts", "", func(parsed): counts_changed.emit(parsed if typeof(parsed) == TYPE_DICTIONARY else {}), "counts")
func create_deck(name: String, description: String) -> void:
_enqueue_json("POST", "/decks", JSON.stringify({"name": name, "description": description}),
func create_deck(deck_name: String, description: String) -> void:
_enqueue_json("POST", "/decks", JSON.stringify({"name": deck_name, "description": description}),
func(_parsed): fetch_decks(), "decks")