-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_main.gd
28 lines (20 loc) · 919 Bytes
/
mod_main.gd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
extends Node
const MOD_DIR = "SteveImm-SoulStone/"
const MOD_LOG = "SteveImm-SoulStone"
var dir = ""
func _init(modLoader = ModLoader):
ModLoaderUtils.log_info("Init", MOD_LOG)
dir = modLoader.UNPACKED_DIR + MOD_DIR
var ext_dir = dir + "extensions/"
var trans_dir = dir + "translations/"
# Add extensions
modLoader.install_script_extension(ext_dir + "main.gd")
modLoader.install_script_extension(ext_dir + "singletons/run_data.gd")
modLoader.install_script_extension(ext_dir + "ui/menus/run/difficulty_selection/difficulty_selection.gd")
# Add translations
modLoader.add_translation_from_resource(trans_dir + "soulstone_text.en.translation")
func _ready():
var ContentLoader = get_node("/root/ModLoader/Darkly77-ContentLoader/ContentLoader")
var content_dir = dir + "content_data/"
ContentLoader.load_data(content_dir + "soulstone_items.tres", MOD_LOG)
ModLoaderUtils.log_info("Done", MOD_LOG)