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

15 lines
423 B
GDScript
Executable File

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