summary refs log tree commit diff stats
path: root/randomizer/load.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-12-09 13:14:25 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-12-09 13:14:25 -0500
commitf0555579cd462b27c71c486bd7456265cc827937 (patch)
tree12dd8a500dd836f9466e534039fda46005547639 /randomizer/load.gd
parente72b3e5fae63db0f669155b7b965c2c5fc6f97e3 (diff)
downloadlingo-randomizer-f0555579cd462b27c71c486bd7456265cc827937.tar.gz
lingo-randomizer-f0555579cd462b27c71c486bd7456265cc827937.tar.bz2
lingo-randomizer-f0555579cd462b27c71c486bd7456265cc827937.zip
Starting to work
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()