From f0555579cd462b27c71c486bd7456265cc827937 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 9 Dec 2023 13:14:25 -0500 Subject: Starting to work --- randomizer/load.gd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 randomizer/load.gd (limited to 'randomizer/load.gd') 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 @@ +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() -- cgit 1.4.1