summary refs log tree commit diff stats
path: root/randomizer/load.gd
diff options
context:
space:
mode:
Diffstat (limited to 'randomizer/load.gd')
-rw-r--r--randomizer/load.gd18
1 files changed, 18 insertions, 0 deletions
diff --git a/randomizer/load.gd b/randomizer/load.gd new file mode 100644 index 0000000..727e368 --- /dev/null +++ b/randomizer/load.gd
@@ -0,0 +1,18 @@
1extends "res://scripts/load.gd"
2
3
4func _load():
5 global._print("Hooked Load Start")
6
7 var randomizer = global.get_node("Randomizer")
8
9 # Apply the randomized panels.
10 var panels_parent = $Panels
11 for puzzle in randomizer.generator.panel_mapping:
12 var panel = panels_parent.get_node(puzzle[0])
13 panel.text = puzzle[1]
14 panel.answer = puzzle[2]
15
16 # Proceed with the rest of the load.
17 global._print("Hooked Load End")
18 ._load()