diff options
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") | ||