GodotComponentTest/ui/DebugStatsContainer.gd

25 lines
535 B
GDScript
Raw Permalink Normal View History

extends GridContainer
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
onready var DebugMenuButton = $DebugMenuButton
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_DebugMenuButton_toggled(button_pressed):
for child in self.get_children():
if child == DebugMenuButton:
continue
child.visible = button_pressed