Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- screen main_menu():
- ## This ensures that any other menu screen is replaced.
- tag menu
- style_prefix "main_menu"
- if renpy.variant("small"):
- add "gui/phone/mobi_title.jpg"
- imagemap:
- auto "gui/phone/imagemap/title_%s.jpg"
- hotspot (440, 339, 400, 61) action Start()
- hotspot (440, 428, 400, 61) action ShowMenu("load")
- hotspot (440, 519, 400, 61) action ShowMenu("preferences")
- hotspot (440, 607, 400, 61) action [ ShowMenu("music_room"), SensitiveIf(persistent.completed_rin) ]
- else:
- add gui.main_menu_background
- add "gui/overlay/main_menu.png"
- vbox:
- xpos 0
- yalign 0.5
- spacing 10
- textbutton "Start" action Start() style "mm_button"
- textbutton "Load" action ShowMenu("load") style "mm_button"
- #if persistent.kokoroiyashi:
- #textbutton "Chapter Select" style "mm_button":
- ##action NullAction()
- #hovered "gui/chap_tooltip.jpg"
- #else:
- #textbutton "Chapter Select" style "mm_button":
- #action NullAction()
- #hovered ShowTransient("the_img", img="gui/chap_tooltip.jpg", transition=dissolve)
- #unhovered Hide("the_img", transition=dissolve)
- textbutton "Settings" action ShowMenu("preferences") style "mm_button"
- textbutton "Extras" action ShowMenu("extras") style "mm_button"
- textbutton "Quit" action Quit(confirm=True) style "mm_button"
- screen the_img(img):
- add img pos (390, 310)
- init -2:
- style mm_button is button:
- xminimum 380
- ymaximum 74
- top_padding 25
- right_padding 50
- style mm_button background None
- style mm_button hover_background "mm_hover"
- style mm_button selected_idle_background None
- style mm_button selected_hover_background None
- style mm_button focus_mask "gui/button/mm_hover.png"
- style mm_button hover_sound "audio/sfx/hover.ogg"
- style mm_button_text color "#777777"
- style mm_button_text hover_color "#fff"
- style mm_button_text selected_color "#fff"
- style mm_button_text insensitive_color "#252525"
- style mm_button_text font "fonts/ADAM.otf"
- screen file_slots:
- viewport:
- scrollbars "vertical"
- xpos 708
- ypos 111
- mousewheel True
- area (710, 111, 525, 504)
- side_yfill True
- vbox:
- spacing 30
- for i in range(0, 30):
- $ slot = i + 1
- button:
- action FileAction(slot)
- hovered ShowTransient("sl_image", img=FileScreenshot(slot))
- unhovered Hide("sl_image")
- style "slott_button"
- has hbox
- spacing 2
- text FileTime(slot, format=_("{#file_time}%b %d —"), empty=_("Empty Slot")):
- style "slot_time_text"
- text FileSaveName(slot):
- style "slot_name_text"
- key "save_delete" action FileDelete(slot)
- screen sl_image(img):
- add img pos (23, 191)
- style page_label is gui_label
- style page_label_text is gui_label_text
- style page_button is gui_button
- style page_button_text is gui_button_text
- style slot_button_text is gui_button_text
- style slot_time_text is slot_button_text
- style slot_name_text is slot_button_text
- init -2:
- style slott_button is button:
- xminimum 500
- ymaximum 60
- left_padding 10
- top_padding 20
- style slott_button background "gui/button/slot_ground_background.png"
- style slott_button idle_background "gui/button/slot_idle_background.png"
- style slott_button hover_background "gui/button/slot_hover_background.png"
- style slott_button focus_mask "gui/button/slot_ground_background.png"
- style slott_button hover_sound "audio/sfx/hover.ogg"
- screen preferences():
- tag menu
- add gui.game_menu_background
- add "gui/sett.png":
- xpos 0
- ypos 65
- use navigation
- if renpy.variant("small"):
- vbox:
- xpos 37
- ypos 128
- spacing 30
- style_prefix "radio"
- label _("Skip")
- hbox:
- textbutton _("READ TEXT") action Preference("skip", "seen")
- textbutton _("ALL TEXT") action Preference("skip", "all")
- textbutton _("TRANSITIONS") action InvertSelected(Preference("transitions", "toggle"))
- label _("Rollback Side")
- hbox:
- style_prefix "radio"
- textbutton _("Disable") action Preference("rollback side", "disable")
- textbutton _("Left") action Preference("rollback side", "left")
- textbutton _("Right") action Preference("rollback side", "right")
- vbox:
- xpos 640
- ypos 128
- style_prefix "slider"
- vbox:
- spacing 15
- label _("Text Speed")
- bar value Preference("text speed")
- label _("Auto-Forward Time")
- bar value Preference("auto-forward time")
- if config.has_music:
- label _("Music Volume")
- hbox:
- bar value Preference("music volume")
- if config.has_sound:
- label _("Sound Volume")
- hbox:
- bar value Preference("sound volume")
- if config.sample_sound:
- textbutton _("Test") action Play("sound", config.sample_sound)
- if config.has_voice:
- label _("Ambient Volume")
- hbox:
- bar value Preference("ambient volume")
- if config.sample_voice:
- textbutton _("Test") action Play("voice", config.sample_voice)
- if config.has_music or config.has_sound or config.has_voice:
- null height gui.pref_spacing
- textbutton _("Mute All"):
- action Preference("all mute", "toggle")
- style "mute_all_button"
- else:
- vbox:
- xpos 37
- ypos 128
- spacing 30
- box_wrap True
- vbox:
- style_prefix "radio"
- label _("Display Type")
- hbox:
- textbutton _("WINDOWED") action Preference("display", "any window")
- textbutton _("FULLSCREEN") action Preference("display", "fullscreen")
- vbox:
- style_prefix "radio"
- label _("Window Size")
- hbox:
- textbutton "SMALL" action Preference("display", 0.6)
- textbutton "MEDIUM" action Preference("display", 0.8)
- textbutton "LARGE" action Preference("display", 1.0)
- vbox:
- style_prefix "radio"
- label _("Skip")
- hbox:
- textbutton _("READ TEXT") action Preference("skip", "seen")
- textbutton _("ALL TEXT") action Preference("skip", "all")
- textbutton _("TRANSITIONS") action InvertSelected(Preference("transitions", "toggle"))
- ## Additional vboxes of type "radio_pref" or "check_pref" can be
- ## added here, to add additional creator-defined preferences.
- #null width (4 * gui.pref_spacing)
- vbox:
- xpos 640
- ypos 128
- style_prefix "slider"
- vbox:
- spacing 15
- label _("Text Speed")
- bar value Preference("text speed")
- label _("Auto-Forward Time")
- bar value Preference("auto-forward time")
- if config.has_music:
- label _("Music Volume")
- hbox:
- bar value Preference("music volume")
- if config.has_sound:
- label _("Sound Volume")
- hbox:
- bar value Preference("sound volume")
- if config.sample_sound:
- textbutton _("Test") action Play("sound", config.sample_sound)
- if config.has_voice:
- label _("Ambient Volume")
- hbox:
- bar value Preference("ambient volume")
- if config.sample_voice:
- textbutton _("Test") action Play("voice", config.sample_voice)
- if config.has_music or config.has_sound or config.has_voice:
- null height gui.pref_spacing
- textbutton _("Mute All"):
- action Preference("all mute", "toggle")
- style "mute_all_button"
- ##And then once you get a handle at customization, you can do stuff like this below
- screen chapterselect:
- add "gui/game_menu.jpg"
- add "gui/arcs/title.png":
- xpos 0
- ypos 65
- vbox:
- xpos 552
- ypos 34
- spacing 74
- imagebutton:
- idle "gui/arcs/rin_idle.png"
- hover "gui/arcs/rin_hover.png"
- hovered ShowTransient("arc_image", img="gui/arcs/rin.png", transition=dissolve)
- unhovered Hide("arc_image", transition=dissolve)
- hover_sound "audio/sfx/hover.ogg"
- activate_sound "audio/sfx/route_select.ogg"
- action Jump("rinroute")
- imagebutton:
- insensitive "gui/arcs/locked.png"
- idle "gui/arcs/ken_idle.png"
- hover "gui/arcs/ken_hover.png"
- hovered ShowTransient("arc_image", img="gui/arcs/ken.png", transition=dissolve)
- unhovered Hide("arc_image", transition=dissolve)
- hover_sound "audio/sfx/hover.ogg"
- activate_sound "audio/sfx/route_select.ogg"
- action [ Return("kenroute"), SensitiveIf(persistent.completed_rin) ]
- imagebutton:
- insensitive "gui/arcs/locked.png"
- idle "gui/arcs/dai_idle.png"
- hover "gui/arcs/dai_hover.png"
- hovered ShowTransient("arc_image", img="gui/arcs/dai.png", transition=dissolve)
- unhovered Hide("arc_image", transition=dissolve)
- hover_sound "audio/sfx/hover.ogg"
- activate_sound "audio/sfx/route_select.ogg"
- action [ Return("shinroute"), SensitiveIf(persistent.completed_ken) ]
- screen arc_image(img):
- add img pos (15, 164)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement