Thanks for the replies, as i got the first one i tried to remove the labels and as it didn't work I remade the code from scratch. It works fine now, thanks for the idea. Here is the working code:
Code: Select all
_game_menu_screen = "_menu_pivot"
# Show the menu background.
#Darkens the scene in the background
#Creates button area and adds text to the top
$ ui.vbox(xalign=0.5, yalign=0.40)
$ ui.text("Menu", xalign=0.5, yalign=0.33, size=35)
#Defines what the menu will do when a button is clicked. This is defined in 3 steps:
#Text that will be written in the button
#What will happen when the button is clicked
#Minimum width of the button
$ ui.textbutton("Return to Game", clicked=ui.jumps("_return"), xminimum=400)
$ ui.textbutton("Save", clicked=_intra_jumps("save_screen", "intra_transition"), xminimum=400)
$ ui.textbutton("Load", clicked=_intra_jumps("load_screen", "intra_transition"), xminimum=400)
$ ui.textbutton("Quit Game", clicked=ui.jumps("_quit_prompt"), xminimum=400)
$ choice = ui.interact(suppress_overlay=True)
You can use/modify this script to fit your needs, but some credit is always nice
As for placement, it should go at the bottom of the options.rpy file.
Also, if anyone wants to put it in the cookbook, go ahead