Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

hey! I can't figure out how to get the menu choices on the left and a bit smaller, any advice? And some of the buttons are out of place like the return button on the pause menu, did i implement it wrong?

(+1)

Hi! To align the choice buttons to the left, set the xalign of the choice vbox to 0.0 (you can find it in the style section in the choice_screen.rpy). To make it smaller you can change the text size of the texbutton of the choices and edit the graphics to be smaller (might need to adjust the frame borders too) or you can create a transform which sets the "zoom" to a number smaller than zero:

transform small_choice:     
    zoom 0.8

Then add it to the textbutton:

textbutton i.caption action i.action at choice_delay(t = idx), small_choice

As for the out of place buttons please specify what you mean and how you implemented it. My guess is that there are some stray styles leftover from a default project or a file wasn't copied but I cannot see your game or code.

i made the choices smaller thank you so much, and i'm talking about the return button for example, its interfering with the numbers on the main menu, or like the skip and back buttons not being in the box or the text or names being in the middle not left of the box

Have you added the scripts to an existing project?

yes

Do you still have the gui.rpy or screens.rpy?

i think so

Okay, first back up your project just in case. If you made any custom screens in the screens.rpy, put them in another file.

Then you need to remove the screens and gui.rpy.  If you look at the original template folder, you see that they aren't there . The glitches are most probably caused by conflicting styles, like the return button's size and position being set in the template's game_menu.rpy but the original screen.rpy still has the styling that makes it the wrong colour (this is just an example idk the code by heart).