I'm trying to customize the main menu, preferences, save, etc.
while testing through, i stumbled upon a little problem. even though i can get into the main game and have the text window running smoothly and so forth. when i right click to enter the preferences, it just gives me a blank screen. however, if i try to enter the preferences through the main menu or save menu, it's fine.
the bit of code may be a bit...odd since i pretty much copy/pasted from whatever i can search for in the forums. i'm still quite unfamiliar with renpy so if anything doesn't make sense please bear with it.
Code: Select all
# Edited Main Menu Below
label main_menu:
$ ui.keymap(toggle_fullscreen = renpy.toggle_fullscreen)
$ ui.window(style='mm_root')
$ ui.null()
$ ui.imagebutton("start_idle.png", "start_hover.png", clicked=ui.jumpsoutofcontext("start"), xpos=100, ypos=100)
$ ui.imagebutton("continue_idle.png", "continue_hover.png", clicked=_intra_jumps("_load_screen", "main_game_transition"), xpos=200, ypos=200)
$ ui.imagebutton("prefs_idle.png", "prefs_hover.png", clicked=_intra_jumps("_prefs_screen","main_game_transition"), xpos=300, ypos=300)
$ ui.imagebutton("quit_idle.png", "quit_hover.png", clicked=ui.jumps("_quit"), xpos=400, ypos=400)
$ ui.interact(suppress_overlay=True,
suppress_underlay=True,
mouse="mainmenu")
#Edited Game Menu Below
label game_menu:
$ ui.keymap(toggle_fullscreen = renpy.toggle_fullscreen)
$ ui.window(style='gm_root')
$ ui.null()
$ ui.interact(suppress_overlay=True,
suppress_underlay=True,
mouse="gamemenu")
init:
#Game Menu Positions and Button Edits
$ config.game_menu_positions = {
'Return' : dict(xpos=400, ypos=400, xanchor='left', yanchor='top'),
'Begin Skipping' : dict(xpos=500, ypos=300, xanchor='left', yanchor='top'),
'Preferences' : dict(xpos=450, ypos=430, xanchor='left', yanchor='top'),
'Save Game' : dict(xpos=500, ypos=460, xanchor='left', yanchor='top'),
'Load Game' : dict(xpos=550, ypos=490, xanchor='left', yanchor='top'),
'Main Menu' : dict(xpos=600, ypos=520, xanchor='left', yanchor='top'),
'Quit' : dict(xpos=650, ypos=550, xanchor='left', yanchor='top'),
}
#Return Buttons
$ config.image_buttons["Return"]=(
"return_idle.png",
"return_hover.png",
"return_sel_idle.png",
"return_sel_hover.png",
"return_disable.png",)
#Begin Skip Buttons
$ config.image_buttons["Begin Skipping"]=(
"skip_idle.png",
"skip_hover.png",
"skip_sel_idle.png",
"skip_sel_hover.png",
"skip_disable.png",)
#the button code continues on but modified for each button in the game menu. cut it off here to save some space.