chore: run gdformat on all gdscript files

This commit is contained in:
2025-08-19 08:43:13 +02:00
parent efb9f0d92f
commit 77f1d0811c
10 changed files with 69 additions and 24 deletions

View File

@@ -6,32 +6,40 @@ extends Control
var debug_stats: Dictionary = {}
func _ready() -> void:
stats_container.visible = false
panel_container.visible = false
GlobalConst.sig_debug_stats_set.connect(set_debug_stat)
func toggle():
panel_container.visible = !panel_container.visible
func _on_zoom_check_toggled(toggled_on: bool) -> void:
GlobalConst.sig_debug_camera_zoom.emit(toggled_on)
func _on_god_mode_check_toggled(toggled_on: bool) -> void:
GlobalConst.sig_debug_god_mode.emit(toggled_on)
func _on_enemy_god_mode_check_toggled(toggled_on: bool) -> void:
GlobalConst.sig_debug_enemy_god_mode.emit(toggled_on)
func _on_stats_check_toggled(toggled_on: bool) -> void:
stats_container.visible = toggled_on
func set_debug_stat(key: String, value: String):
if key == "":
debug_stats.erase(key)
debug_stats[key] = value
update_debug_stats()
func update_debug_stats() -> void:
for child in stats_container.get_children():
child.queue_free()