Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hi there! I recently purchased this pack, and I had a couple questions.

First off, is there a way to have a button prompt that shows/hides the bar at the top, since having it always on can obstruct the actual image being viewed.

And second, is there a way to have some sort of text appear that describes the image, or has developer comments about the creation of the piece in the case of concept art and the like? 

I'm also slightly confused about the terms of use listing something to do with an RPA file? I plan on releasing the game commercially, but I can't seem to find the instructions for that anywhere.

This, Controller Support Extension, and Extended Music Room have been an ENORMOUS help to my game. Thank you so much for everything.

Sure! A ZoomGallery has the method tap_toggle_UI which will hide/show the UI when tapped. It's the default value of the single_tap_event property. At its most basic, that method is just toggling self.show_ui = not self.show_ui. So, you too can make a button with the action ToggleField(zg, "show_ui") in your ZoomGallery.

For your second question, you're welcome to style the screen you set with zg.screen or similar however you like. If you'd like an easy way to get the name/variant number of the currently showing image, you can add the following to the ZoomGallery class (I put it around line 978):

        def get_image_name(self):
            """
            Get the name of the image currently being displayed by the
            ZoomGallery.
            """
            return self.unlocked_images[self.current_index].name
        def get_image_variant(self):
            """
            Return the index of the currently showing image variant.
            """
            return self.unlocked_images[self.current_index].image_index

Then you can get the name you declared the image with via zg.get_image_name() and the index via zg.get_image_variant(). Mostly I'm envisioning you could use this information to make a dictionary of the descriptions you want for the images, or just a series of if/else statements.

For the RPA file - there's code at the end of the files that archives it. If you don't remove that, it'll package the files into an rpa file for release automatically.

(1 edit)

the second this isnt quite what i meant, since i think this just displays the name of the image being shown, when i meant more like displaying a self-written writeup about the image. a bit like developer commentary to explain the process behind the artwork if that makes sense. but everything else is incredibly helpful! thank you so much. only issue is that using the method you described to show/hide the menu also makes it so that once the menu is hidden, you are required to use touch controls and cannot use keyboard/gamepad to control the menu anymore

You're welcome to add back the navigation shortcuts via `key` or similar. You can also adjust the UI shown at the top to style it however you like in the screen itself. And yes, I understood you weren't looking for the name - hence the suggestion to make a dictionary so you can use the name to get a description, or a series of conditions. It's helpful to have the name so you know what image is displaying and can adjust the description accordingly.