This commit is contained in:
2021-08-11 07:01:57 +10:00
parent 1b8004e6a5
commit 9aaf3ad287
3 changed files with 40 additions and 21 deletions

View File

@ -24,6 +24,7 @@ init -3 python:
self.mod_variables = []
def add_mod(self, name, label):
#renpy.random.randint(a, b)
self.mod_menu_access += [{
'Name': name,
'Label': label
@ -36,12 +37,10 @@ init -3 python:
def add_image(self, name, filename):
s = str(self.mod_id)+name
renpy.image(s, Image(filename))
#z = renpy.get_registered_image(s)
#self.mod_variables[self.mod_id][name] = z
self.mod_variables[self.mod_id][name] = s
print(self.mod_variables[self.mod_id])
def add_variable(name, default):
def add_variable(self, name, default):
self.mod_variables[self.mod_id][name] = default
def get(self, _id):