Remove unlocked
This commit is contained in:
@ -31,8 +31,8 @@ init python:
|
|||||||
return im.FactorScale(CG_PATHS + fname + "." + ext, scaleFactor["x"], scaleFactor["y"], False)
|
return im.FactorScale(CG_PATHS + fname + "." + ext, scaleFactor["x"], scaleFactor["y"], False)
|
||||||
|
|
||||||
# Create an object in g:Gallery, add to galleryItems
|
# Create an object in g:Gallery, add to galleryItems
|
||||||
# (imageName: string; ext: string; w: float; h: float; unlocked?: boolean) -> None
|
# (imageName: string; ext: string; w: float; h: float) -> None
|
||||||
def addGalleryItem(imageName, ext, w, h, unlocked = False):
|
def addGalleryItem(imageName, ext, w, h):
|
||||||
g.button(imageName)
|
g.button(imageName)
|
||||||
g.image(imageName)
|
g.image(imageName)
|
||||||
|
|
||||||
@ -62,9 +62,8 @@ init python:
|
|||||||
for str in list_img:
|
for str in list_img:
|
||||||
_str = CG_PATHS+str+"."+ACCEPTED_EXTENSIONS[0]
|
_str = CG_PATHS+str+"."+ACCEPTED_EXTENSIONS[0]
|
||||||
if renpy.loadable(_str): #brute force
|
if renpy.loadable(_str): #brute force
|
||||||
unlocked = renpy.seen_image(str)
|
|
||||||
image = renpy.image_size(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
|
return
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user