Extra Spaces fix
This commit is contained in:
@ -85,6 +85,7 @@ init python:
|
|||||||
def loadGallery():
|
def loadGallery():
|
||||||
|
|
||||||
cgPath = "images/cgs/"
|
cgPath = "images/cgs/"
|
||||||
|
lazy_counter = 0
|
||||||
|
|
||||||
# Reset gallery
|
# Reset gallery
|
||||||
galleryItems = []
|
galleryItems = []
|
||||||
@ -100,9 +101,10 @@ init python:
|
|||||||
unlocked = renpy.seen_image(str)
|
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], unlocked)
|
||||||
|
lazy_counter += 1
|
||||||
|
|
||||||
# Add empty items to fill grid after last cg button
|
# Add empty items to fill grid after last cg button
|
||||||
extraSpaces = GALLERY_COLS - (len(galleryItems) % GALLERY_COLS)
|
extraSpaces = GALLERY_COLS - (lazy_counter % GALLERY_COLS)
|
||||||
for i in range(0, extraSpaces):
|
for i in range(0, extraSpaces):
|
||||||
galleryItems.append({
|
galleryItems.append({
|
||||||
"item": None,
|
"item": None,
|
||||||
|
Reference in New Issue
Block a user