blob: 727e3685d250705bd428a7bc67978d028cf68230 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
extends "res://scripts/load.gd"
func _load():
global._print("Hooked Load Start")
var randomizer = global.get_node("Randomizer")
# Apply the randomized panels.
var panels_parent = $Panels
for puzzle in randomizer.generator.panel_mapping:
var panel = panels_parent.get_node(puzzle[0])
panel.text = puzzle[1]
panel.answer = puzzle[2]
# Proceed with the rest of the load.
global._print("Hooked Load End")
._load()
|