This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues or pull requests.
liblast/Game/MenuData.gd
2021-06-02 17:00:28 +02:00

15 lines
259 B
GDScript

extends "res://MenuItem.gd"
signal data_changed(data)
var data = null:
set(_data):
emit_signal("data_changed", _data)
data = _data
save_data()
func save_data():
var GUI = get_parent().get_parent()
GUI.settings[label] = data
GUI.save_settings()