Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Hey there! Loving this UI, and appreciate how affordable it was! 

I'm running into a spot of trouble, though; and as I'm still new to using Ren'py and coding, I don't know how to troubleshoot what's wrong. When I run your test game, everything works exactly as it should. 

However, when I tried to use it for my own work in progress, some things have needed tweaking. I was able to move the input box to match up with the gui placement, because it wasn't for things like inputting a player name. But then I ran into the problem of the choice menu background not showing up whenever there's questions being posed. Unlike with your test game, it's entirely transparent, with the text for options and your custom icons next to each choice showing up against the scene image. I tried scouring my game versus yours for differences in coding related to menus, gui, screens, etc- couldn't find any. I wondered if it was because one of my sets of choices had 5 options and that might be too many for your configurations, but it also doesn't show up with the simple yes/no questions. So I transferred my script to your test game to see if the menu options would work there. They don't. And my menu was set up exactly the same as yours, just different words being used. 

So I have no idea why the choice menu background isn't showing up whenever it's needed for any question that isn't your test one. Help finding the solution to this problem would be greatly appreciated. Thanks!

Edit- I've been able to solve this problem on my own, but figured I'd leave the original query up as well as the solution in case you feel any need to take another look at the original code or anyone else runs into this problem. 

To have more than 4 options display in a single column, rather than starting a second column, the option for box_wrap in the custom_config.rpy needs to be set to false.

To fix the background frame not showing up like it does in your test game: the screens.rpy doesn't actually have any configurations for the choice box to be framed and needs one written in. The following code worked for me-

screen choice(items):

    style_prefix "choice"

    frame:

        vbox:

            for i in items:

                textbutton i.caption action i.action

style choice_frame:

        xsize None

        ysize None

        background Frame("gui/frame.png", 10, 10)

        xalign 0.5

        yalign 0.9

Then I altered the custom_config file further, to shrink the size of the box so it wouldn't take up most/all of the screen (that was entirely personal preference). I stress tested that code by doing all sorts of multiple choice options of different sorts, and the box is now showing without fail and adjusting its size appropriately to whatever the current choices are. 

Thanks again for this awesome asset! It matches my project's aesthetics and color palette really well and, especially because I'm on an insanely tight budget, I'm grateful I didn't have to try hiring someone to make me a custom one that could blend in well enough. I will be sure to credit and link to your itch page for others to find your work if my project gets to a point of making a demo/final release public. <3