freeftf/scripts/settings_text.gd

8 lines
144 B
GDScript3
Raw Normal View History

extends TextEdit
func _ready():
text = Game.settings[get_parent().name]
func _on_text_changed():
Game.save_setting(get_parent().name, text)