chore: run gdformat on all gdscript files
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user