Add gdlint and gdformat scripts
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
extends Button
|
||||
|
||||
|
||||
func _ready():
|
||||
pressed.connect(_on_pressed)
|
||||
DebugManager.debug_toggled.connect(_on_debug_toggled)
|
||||
@@ -8,8 +9,10 @@ func _ready():
|
||||
var current_state = DebugManager.is_debug_enabled()
|
||||
text = "Debug: " + ("ON" if current_state else "OFF")
|
||||
|
||||
|
||||
func _on_pressed():
|
||||
DebugManager.toggle_debug()
|
||||
|
||||
|
||||
func _on_debug_toggled(enabled: bool):
|
||||
text = "Debug: " + ("ON" if enabled else "OFF")
|
||||
|
||||
Reference in New Issue
Block a user