diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-02-08 11:24:51 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-02-08 11:24:51 +0100 |
commit | eea642395bb0ef706c7241d4a749f3e0ac4cc460 (patch) | |
tree | 6c015c9315b0102247661f942b018ccf8c45551d /scripts/gui.gd | |
parent | e8b2ea6b2bf789b7942d86faebbcc4d810741f25 (diff) |
revised wave generation
Diffstat (limited to 'scripts/gui.gd')
-rw-r--r-- | scripts/gui.gd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/gui.gd b/scripts/gui.gd index 2e63483..65ff39b 100644 --- a/scripts/gui.gd +++ b/scripts/gui.gd @@ -10,6 +10,7 @@ var wave_ongoing : Panel var load_map : PanelContainer var save_as : AcceptDialog var delete_confirm : AcceptDialog +var edit_palette : AcceptDialog var saveload : Node var saveload_map : Node @@ -30,6 +31,8 @@ func _fetch (): save_as.register_text_enter(save_as.get_node("line_edit")) if delete_confirm == null: delete_confirm = $delete_confirm + if edit_palette == null: + edit_palette = $edit_palette func _ready(): _fetch() @@ -59,3 +62,6 @@ func _on_delete_confirmed(): func _on_close_load_map(): load_map.visible = false + +func _on_edit_palette_confirmed(): + control.gui_picked_color(edit_palette.get_node("ColorPicker").color) |