diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-04 11:30:04 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-04 11:30:04 -0500 |
commit | 6e04dbb1ebb811429bbfdb53bd8c4c079ef63732 (patch) | |
tree | ccda986e1acd9968248d6f499610c7e2677d0152 /randomizer/doorControl.gd | |
parent | ef22a8141b80344ef5e1ed6fd12779ecbe04ba58 (diff) | |
download | lingo-randomizer-6e04dbb1ebb811429bbfdb53bd8c4c079ef63732.tar.gz lingo-randomizer-6e04dbb1ebb811429bbfdb53bd8c4c079ef63732.tar.bz2 lingo-randomizer-6e04dbb1ebb811429bbfdb53bd8c4c079ef63732.zip |
Randomize layout of The Steady
Diffstat (limited to 'randomizer/doorControl.gd')
-rw-r--r-- | randomizer/doorControl.gd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/randomizer/doorControl.gd b/randomizer/doorControl.gd new file mode 100644 index 0000000..3f70026 --- /dev/null +++ b/randomizer/doorControl.gd | |||
@@ -0,0 +1,18 @@ | |||
1 | extends "res://scripts/doorControl.gd" | ||
2 | |||
3 | |||
4 | func remap(new_panels): | ||
5 | for panel in panels: | ||
6 | get_node(panel).get_node("Viewport/GUI/Panel/TextEdit").disconnect("answer_correct", self, "handle_correct") | ||
7 | get_node(panel).get_node("Viewport/GUI/Panel/TextEdit").disconnect("answer_unsolved", self, "handle_unsolve") | ||
8 | |||
9 | panels = new_panels.duplicate() | ||
10 | |||
11 | if complete_at > 0: | ||
12 | total = complete_at | ||
13 | else: | ||
14 | total = panels.size() | ||
15 | |||
16 | for panel in panels: | ||
17 | get_node(panel).get_node("Viewport/GUI/Panel/TextEdit").connect("answer_correct", self, "handle_correct") | ||
18 | get_node(panel).get_node("Viewport/GUI/Panel/TextEdit").connect("answer_unsolved", self, "handle_unsolve") | ||