From b1cdf930a9f50407cd9f55390439dd69e624ae84 Mon Sep 17 00:00:00 2001 From: lazysnake Date: Thu, 17 Jun 2021 20:38:46 +0200 Subject: [PATCH] cg gallery wip vol5: slightly nicer pagination --- game/src/cg_gallery.rpy | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/game/src/cg_gallery.rpy b/game/src/cg_gallery.rpy index b75862e..7992df1 100644 --- a/game/src/cg_gallery.rpy +++ b/game/src/cg_gallery.rpy @@ -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