SpielBackupAlt/addons/dialogic/Editor/SettingsEditor/Scenes/HistorySettings.gd

15 lines
423 B
GDScript3
Raw Normal View History

2024-12-26 14:54:06 +00:00
tool
extends VBoxContainer
func _ready():
var HistoryCheckbox = $"GridContainer/HistoryBox/SettingsCheckbox/CheckBox"
HistoryCheckbox.connect('toggled', self, '_on_HistoryLogging_toggled')
_on_HistoryLogging_toggled(HistoryCheckbox.pressed)
func _on_HistoryLogging_toggled(button_pressed):
for n in $GridContainer.get_children():
n.visible = button_pressed
$GridContainer/HistoryBox.visible = true