Mod Loader v2

This commit is contained in:
2021-08-10 11:07:45 +10:00
parent 60a6f8acac
commit 1b8004e6a5
4 changed files with 52 additions and 14 deletions

View File

@@ -1,15 +1,18 @@
init python:
init 100 python:
# Modding Support variables
# All mod rpy files must have title of their mod (this shows up on a button)
# and finally the label that controls the flow of dialogue
mod_menu_access += [{
'Name': "Example Mod Name",
'Label': "storyline_ex"
}];
myid = mod_loader.add_mod("Example Mod Name", "storyline_ex")
mod_loader.add_image('template_sample', "mods_example/template/img/sample.png")
image template_sample = Image("mods_example/template/img/sample.png")
#renpy.image('template_sample', mod_dir+"template/img/sample.png")
#mod_variable[0]["template_sample"]
#image template_sample = Image("mods_example/template/img/sample.png")
label storyline_ex:
call chapter_2_new