Mainmenu rpy

Coding and VN Engine > mainmenu_rpy

Main menu

init: #image blossoms = SnowBlossom(Animation("sakura1.png", 0.15,"sakura2.png", 0.15),   #                                           count=20,    #                                           border=50,    #                                           xspeed=(-20,50),    #                                           yspeed=(100,200),    #                                           start=4) ## Background Objects $ ui_background = "img/background1.png" $ ui_border = "border1" $ ui_topborder = "img/%sa.png" % (ui_border) $ ui_botborder = "img/%sb.png" % (ui_border) $ ui_backwin = "img/back1.png" $ ui_logo = "img/logo.png" ## Interface Objects $ ui_arrowright = "arrowright" $ ui_arrowright1 = "img/%sa.png" % (ui_arrowright) $ ui_arrowright2 = "img/%sb.png" % (ui_arrowright) $ ui_arrowleft = "arrowleft" $ ui_arrowleft1 = "img/%sa.png" % (ui_arrowleft) $ ui_arrowleft2 = "img/%sb.png" % (ui_arrowleft) ## Menu Objects $ ui_start = "start" $ ui_start1 = "img/%sa.png" % (ui_start) $ ui_start2 = "img/%sb.png" % (ui_start) $ ui_mainm = "mainm" $ ui_mainm1 = "img/%sa.png" % (ui_mainm) $ ui_mainm2 = "img/%sb.png" % (ui_mainm) $ ui_quit = "quit" $ ui_quit1 = "img/%sa.png" % (ui_quit) $ ui_quit2 = "img/%sb.png" % (ui_quit) $ ui_quitg = "quitg" $ ui_quitg1 = "img/%sa.png" % (ui_quitg) $ ui_quitg2 = "img/%sb.png" % (ui_quitg) $ ui_opti = "opti" $ ui_opti1 = "img/%sa.png" % (ui_opti) $ ui_opti2 = "img/%sb.png" % (ui_opti) $ ui_save = "save" $ ui_save1 = "img/%sa.png" % (ui_save) $ ui_save2 = "img/%sb.png" % (ui_save) $ ui_cont = "cont" $ ui_cont1 = "img/%sa.png" % (ui_cont) $ ui_cont2 = "img/%sb.png" % (ui_cont) $ ui_load = "load" $ ui_load1 = "img/%sa.png" % (ui_load) $ ui_load2 = "img/%sb.png" % (ui_load) $ ui_return = "return" $ ui_return1 = "img/%sa.png" % (ui_return) $ ui_return2 = "img/%sb.png" % (ui_return)

label main_menu: $ ui.add(renpy.Keymap(toggle_fullscreen = renpy.toggle_fullscreen)) $ ui.window(style='mm_root', background='#0000') #show blossoms if renpy.music.get_playing != 'title.mp3': $ renpy.music.play("title.mp3", fadein=2) $ ui.image(ui_background) $ ui.image(ui_topborder,                 xpos=0,                  ypos=0                  ) $ ui.image(ui_botborder,                 xpos=0,                  ypos=500                  ) $ ui.image("img/logo.png",                 xpos=100,                  ypos=40                  ) $ ui.frame(background=Frame(ui_backwin, 12, 12),xpos=0.5, ypos=0.6, xanchor='center', yanchor='center') $ ui.vbox $ ui.imagebutton(ui_start1,                        ui_start2,                         clicked=ui.jumpsoutofcontext('start')                         ) $ ui.imagebutton(ui_cont1,                        ui_cont2,                         clicked=_intra_jumps('load_menu', 'main_game_transition')                         ) $ ui.imagebutton(ui_opti1,                        ui_opti2,                         clicked=_intra_jumps('newpref_menu','main_game_transition')                         ) $ ui.imagebutton(ui_opti1,                        ui_opti2,                         clicked=_intra_jumps('cggallery','main_game_transition')                         ) $ ui.imagebutton(ui_quit1,                        ui_quit2,                         clicked=ui.jumps('_quit')                         ) $ ui.close $ ui.interact(suppress_overlay=True, suppress_underlay=True, mouse='mainmenu')