diff options
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 fc5963a..9d30455 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: |