-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain_menu.rpy
233 lines (175 loc) · 6.87 KB
/
main_menu.rpy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
screen navigation():
vbox:
style_prefix "navigation"
xpos gui.navigation_xpos
yalign 0.8
spacing gui.navigation_spacing
#if not persistent.autoload or not main_menu:
if main_menu:
if persistent.playthrough == 1 or persistent.ggwp_monika == -1:
textbutton _("ŔŗñĮ¼»ŧþŀÂŻŕěōì«") action If(persistent.playername, true=Start(), false=Show(screen="name_input", message="Please enter your name", ok_action=Function(FinishEnterName)))
elif persistent.demu_demu:
textbutton _("Just Monika") action If(persistent.playername, true=Start(), false=Show(screen="name_input", message="Just Monika", ok_action=Function(FinishEnterName)))
elif persistent.ggwp_monika > 0:
textbutton _("New Game") action Show(screen="confirm", message="You can load your previous saved game instead of starting over.\nAre you sure you want to start a new game?", yes_action=Function(ModWarningSave), no_action=Hide("confirm"))
else:
textbutton _("New Game") action If(persistent.playername, true=Start(), false=Show(screen="name_input", message="Please enter your name", ok_action=Function(FinishEnterName)))
else:
textbutton _("History") action [ShowMenu("history"), SensitiveIf(renpy.get_screen("history") == None)]
textbutton _("Save Game") action [ShowMenu("save"), SensitiveIf(renpy.get_screen("save") == None)]
if persistent.demu_demu:
textbutton _("Just Monika") action [ShowMenu("load"), SensitiveIf(renpy.get_screen("load") == None)]
else:
textbutton _("Load Game") action [ShowMenu("load"), SensitiveIf(renpy.get_screen("load") == None)]
if _in_replay:
textbutton _("End Replay") action EndReplay(confirm=True)
elif not main_menu:
#if persistent.playthrough != 3:
textbutton _("Main Menu") action MainMenu()
#else:
#textbutton _("Main Menu") action NullAction()
if persistent.demu_demu:
textbutton _("Just Monika") action [ShowMenu("preferences"), SensitiveIf(renpy.get_screen("preferences") == None)]
else:
textbutton _("Settings") action [ShowMenu("preferences"), SensitiveIf(renpy.get_screen("preferences") == None)]
#textbutton _("About") action ShowMenu("about")
if renpy.variant("pc"):
## Help isn't necessary or relevant to mobile devices.
if persistent.demu_demu:
textbutton _("Just Monika") action Help("README.html")
else:
textbutton _("Help") action Help("README.html")
## The quit button is banned on iOS and unnecessary on Android.
if persistent.demu_demu:
textbutton _("Just Monika") action Quit(confirm=not main_menu)
else:
textbutton _("Quit") action Quit(confirm=not main_menu)
#else:
#timer 1.75 action Start("autoload_yurikill")
screen main_menu():
# This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
if persistent.demu_demu:
add "hi_monika"
elif persistent.ggwp_monika == -1:
add "menu_bg"
elif persistent.ggwp_monika >= 0:
add "menu_bg"
add "menu_art_y"
add "menu_art_n"
frame:
pass
## The use statement includes another screen inside this one. The actual
## contents of the main menu are in the navigation screen.
use navigation
add "menu_particles"
add "menu_particles"
add "menu_particles"
if persistent.playthrough > 0:
add "menu_logo_mod"
else:
add "menu_logo"
if persistent.ggwp_monika == -1:
pass
elif persistent.playthrough == 1:
add "menu_art_s_glitch"
elif persistent.playthrough == 0:
add "menu_art_s"
else:
pass
add "menu_particles"
add "menu_art_m"
add "menu_fade"
if gui.show_name:
vbox:
if persistent.demu_demu:
text "Just Monika":
style "main_menu_title"
text "Just Monika":
style "main_menu_version"
elif persistent.playthrough > 0:
text "[config.name!t]":
style "main_menu_title"
text "v. [config.version]-experimental, by firelightning13":
style "main_menu_version"
else:
pass
key "K_ESCAPE" action Quit(confirm=False)
style main_menu_frame is empty
style main_menu_vbox is vbox
style main_menu_text is gui_text
style main_menu_title is main_menu_text
style main_menu_version is main_menu_text:
color "#000000"
size 16
outlines []
style main_menu_frame:
xsize 310
yfill True
background "menu_nav"
style main_menu_vbox:
xalign 1.0
xoffset -20
xmaximum 800
yalign 1.0
yoffset -20
style main_menu_text:
xalign 1.0
layout "subtitle"
text_align 1.0
color gui.accent_color
style main_menu_title:
size gui.title_text_size
############################### Confirmation Box #################################
#image confirm_glitch:
# "gui/overlay/confirm_glitch.png"
# pause 0.02
# "gui/overlay/confirm_glitch2.png"
# pause 0.02
# repeat
screen confirm(message, yes_action, no_action):
## Ensure other screens do not get input while this screen is displayed.
modal True
zorder 200
style_prefix "confirm"
add "gui/overlay/confirm.png"
frame:
vbox:
xalign .5
yalign .5
spacing 30
#if in_sayori_kill and message == layout.QUIT:
#add "confirm_glitch" xalign 0.5
#else:
label _(message):
style "confirm_prompt"
xalign 0.5
hbox:
xalign 0.5
spacing 100
textbutton _("Yes") action yes_action
textbutton _("No") action no_action
## Right-click and escape answer "no".
#key "game_menu" action no_action
style confirm_frame is gui_frame
style confirm_prompt is gui_prompt
style confirm_prompt_text is gui_prompt_text
style confirm_button is gui_medium_button
style confirm_button_text is gui_medium_button_text
style confirm_frame:
background Frame([ "gui/confirm_frame.png", "gui/frame.png"], gui.confirm_frame_borders, tile=gui.frame_tile)
padding gui.confirm_frame_borders.padding
xalign .5
yalign .5
style confirm_prompt_text:
color "#000"
outlines []
text_align 0.5
layout "subtitle"
style confirm_button:
properties gui.button_properties("confirm_button")
hover_sound gui.hover_sound
activate_sound gui.activate_sound
style confirm_button_text is navigation_button_text:
properties gui.button_text_properties("confirm_button")