mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-08 18:28:49 +01:00
cg gallery wip vol5: slightly nicer pagination
This commit is contained in:
parent
1f3a04c355
commit
b1cdf930a9
1 changed files with 10 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue