Add gdlint and gdformat scripts

This commit is contained in:
2025-09-27 20:40:13 +04:00
parent 86439abea8
commit 06f0f87970
40 changed files with 2314 additions and 732 deletions

View File

@@ -2,6 +2,7 @@ extends Control
@onready var button: Button = $Button
func _ready():
button.pressed.connect(_on_button_pressed)
DebugManager.debug_ui_toggled.connect(_on_debug_ui_toggled)
@@ -10,8 +11,10 @@ func _ready():
var current_state = DebugManager.is_debug_ui_visible()
button.text = "Debug UI: " + ("ON" if current_state else "OFF")
func _on_button_pressed():
DebugManager.toggle_debug_ui()
func _on_debug_ui_toggled(visible: bool):
button.text = "Debug UI: " + ("ON" if visible else "OFF")
button.text = "Debug UI: " + ("ON" if visible else "OFF")