mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Extra Spaces fix
This commit is contained in:
parent
059a1381bb
commit
cb4ac81cae
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue