Add gdlint and gdformat scripts
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user