forked from Cavemanon/SnootGame
cg gallery wip vol5: slightly nicer pagination
This commit is contained in:
@ -116,10 +116,15 @@ screen cg_gallery():
|
|||||||
else:
|
else:
|
||||||
add g.make_button(item["item"], item["cg"], xalign = 0.5, yalign = 0.5)
|
add g.make_button(item["item"], item["cg"], xalign = 0.5, yalign = 0.5)
|
||||||
|
|
||||||
hbox:
|
grid 3 1:
|
||||||
if galleryPage < maxPage:
|
|
||||||
textbutton ">" action SetVariable("galleryPage", galleryPage + 1)
|
|
||||||
|
|
||||||
hbox:
|
|
||||||
if galleryPage > 1:
|
if galleryPage > 1:
|
||||||
textbutton "<" action SetVariable("galleryPage", galleryPage - 1)
|
textbutton "<" action SetVariable("galleryPage", galleryPage - 1)
|
||||||
|
else:
|
||||||
|
hbox
|
||||||
|
|
||||||
|
label str(galleryPage)
|
||||||
|
|
||||||
|
if galleryPage < maxPage:
|
||||||
|
textbutton ">" action SetVariable("galleryPage", galleryPage + 1)
|
||||||
|
else:
|
||||||
|
hbox
|
||||||
|
Reference in New Issue
Block a user