blob: 3f700268628f9f6d6b2b0f93f57ab978f1f4150e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
extends "res://scripts/doorControl.gd"
func remap(new_panels):
for panel in panels:
get_node(panel).get_node("Viewport/GUI/Panel/TextEdit").disconnect("answer_correct", self, "handle_correct")
get_node(panel).get_node("Viewport/GUI/Panel/TextEdit").disconnect("answer_unsolved", self, "handle_unsolve")
panels = new_panels.duplicate()
if complete_at > 0:
total = complete_at
else:
total = panels.size()
for panel in panels:
get_node(panel).get_node("Viewport/GUI/Panel/TextEdit").connect("answer_correct", self, "handle_correct")
get_node(panel).get_node("Viewport/GUI/Panel/TextEdit").connect("answer_unsolved", self, "handle_unsolve")
|