diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-04-15 11:39:52 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-04-15 11:39:52 -0400 |
commit | e448f5b318f05cae1b40a949e11ef2d7fb613645 (patch) | |
tree | 8c46770b775f31db9293ed1c6d18358aece2b45c /Archipelago/panel.gd | |
parent | dbc0e454596ba7e1a8378685c35e37dccd19c964 (diff) | |
download | lingo-archipelago-e448f5b318f05cae1b40a949e11ef2d7fb613645.tar.gz lingo-archipelago-e448f5b318f05cae1b40a949e11ef2d7fb613645.tar.bz2 lingo-archipelago-e448f5b318f05cae1b40a949e11ef2d7fb613645.zip |
Implemented panels mode door shuffle
Diffstat (limited to 'Archipelago/panel.gd')
-rw-r--r-- | Archipelago/panel.gd | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Archipelago/panel.gd b/Archipelago/panel.gd index aec18e8..0e8f1df 100644 --- a/Archipelago/panel.gd +++ b/Archipelago/panel.gd | |||
@@ -5,6 +5,7 @@ var orig_text = "" | |||
5 | var atbash_text = "" | 5 | var atbash_text = "" |
6 | var orig_color = Color(0, 0, 0, 0) | 6 | var orig_color = Color(0, 0, 0, 0) |
7 | var solvable = true | 7 | var solvable = true |
8 | var locked = false | ||
8 | 9 | ||
9 | const kAtbashPre = "abcdefghijklmnopqrstuvwxyz1234567890+-" | 10 | const kAtbashPre = "abcdefghijklmnopqrstuvwxyz1234567890+-" |
10 | const kAtbashPost = "zyxwvutsrqponmlkjihgfedcba0987654321-+" | 11 | const kAtbashPost = "zyxwvutsrqponmlkjihgfedcba0987654321-+" |
@@ -45,7 +46,13 @@ func evaluate_solvability(): | |||
45 | missing.append(color) | 46 | missing.append(color) |
46 | solvable = false | 47 | solvable = false |
47 | 48 | ||
48 | if solvable: | 49 | if locked: |
50 | self.get_parent().get_node("Viewport/GUI/Panel/Label").text = "Locked" | ||
51 | self.get_parent().get_node("Viewport/GUI/Panel/TextEdit").editable = false | ||
52 | self.get_parent().get_node("Quad").get_surface_material(0).albedo_color = Color( | ||
53 | 0.2, 0.7, 0.7 | ||
54 | ) | ||
55 | elif solvable: | ||
49 | if effects.atbash_remaining > 0: | 56 | if effects.atbash_remaining > 0: |
50 | self.get_parent().get_node("Viewport/GUI/Panel/Label").text = atbash_text | 57 | self.get_parent().get_node("Viewport/GUI/Panel/Label").text = atbash_text |
51 | else: | 58 | else: |