Remove unlocked

This commit is contained in:
Nutbuster 2021-07-11 15:18:16 +10:00
parent 5cb9c4785c
commit 38d465145e
1 changed files with 3 additions and 4 deletions

View File

@ -31,8 +31,8 @@ init python:
return im.FactorScale(CG_PATHS + fname + "." + ext, scaleFactor["x"], scaleFactor["y"], False)
# Create an object in g:Gallery, add to galleryItems
# (imageName: string; ext: string; w: float; h: float; unlocked?: boolean) -> None
def addGalleryItem(imageName, ext, w, h, unlocked = False):
# (imageName: string; ext: string; w: float; h: float) -> None
def addGalleryItem(imageName, ext, w, h):
g.button(imageName)
g.image(imageName)
@ -62,9 +62,8 @@ init python:
for str in list_img:
_str = CG_PATHS+str+"."+ACCEPTED_EXTENSIONS[0]
if renpy.loadable(_str): #brute force
unlocked = renpy.seen_image(str)
image = renpy.image_size(Image(_str))
addGalleryItem(str, ACCEPTED_EXTENSIONS[0], image[0], image[1], unlocked)
addGalleryItem(str, ACCEPTED_EXTENSIONS[0], image[0], image[1])
return