cg gallery wip vol5: slightly nicer pagination

This commit is contained in:
lazysnake 2021-06-17 20:38:46 +02:00
parent 1f3a04c355
commit b1cdf930a9
1 changed files with 10 additions and 5 deletions

View File

@ -116,10 +116,15 @@ screen cg_gallery():
else:
add g.make_button(item["item"], item["cg"], xalign = 0.5, yalign = 0.5)
hbox:
if galleryPage < maxPage:
textbutton ">" action SetVariable("galleryPage", galleryPage + 1)
hbox:
grid 3 1:
if galleryPage > 1:
textbutton "<" action SetVariable("galleryPage", galleryPage - 1)
else:
hbox
label str(galleryPage)
if galleryPage < maxPage:
textbutton ">" action SetVariable("galleryPage", galleryPage + 1)
else:
hbox