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