forked from vaendryl/Sunrider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bonus menus.rpy
196 lines (146 loc) · 7.54 KB
/
bonus menus.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
init -1 python:
bonusPage = 0
doki_doki_space_whale = BonusItem("Background/renpytomback.jpg", " Doki Doki Space Whale:\n Dating Sim 3", "deleted_scene_1", 0.09)
after_ep2 = BonusItem("Background/poll1.jpg", " Beta 2 Post Credits", "aftercreditsep2", 0.205)
after_ep3 = BonusItem("CG/popularity2.jpg", " Beta 3 Post Credits", "aftercreditsep3", 0.155)
#uncomment this before the beta 5 release
#after_ep4 = BonusItem("CG/popularity3.jpg", " Beta 4 Post Credits", "aftercredits4", 0.165)
scenes = [doki_doki_space_whale, after_ep2, after_ep3]
screen deleted_scenes:
modal True
zorder 200
imagemap:
ground "Menu/deleted_scenes_base.png"
hover "Menu/deleted_scenes_hover.png"
# we need to make the screen update when the arrows are clicked
hotspot (1221, 215, 30, 146) action BonusPagePrevious()
hotspot (1221, 724, 30, 146) action BonusPageNext()
hotspot (726, 59, 137, 44) action [ Hide('deleted_scenes'), Show('save', transition=dissolve) ]
hotspot (948, 926, 107, 23) action [ Hide('deleted_scenes'), Show('bonus', transition=dissolve) ]
hotspot (864, 59, 137, 44) action [ Hide('deleted_scenes'), Show('load', transition=dissolve) ]
hotspot (1002, 59, 137, 44) action [ Hide('deleted_scenes'), Show('preferences', transition=dissolve) ]
hotspot (1140, 59, 137, 44) action [ Hide('deleted_scenes'), Show('main_menu', transition=dissolve) ]
#style "file_picker_frame"
$ columns = 1
$ rows = 5
# Display a grid of file slots.
grid columns rows:
transpose True
xfill True
#style_group "file_picker"
xpos 753
ypos 216
if hasattr(store,"BM"):
$BM.phase = 'Player' # This is done to make sure that we can open the menu while in a bonus
# Display five file slots, numbered 1 - 5.
for i in range(1, columns * rows + 1):
button:
xminimum 460
yminimum 130
background None #Solid(0,0,0,255)
has hbox
# Add the image and text.
if bonusPage * columns * rows + i - 1 < len(scenes):
imagebutton:
idle (scenes[i - 1].image)
hover hoverglow(scenes[i - 1].image)
at zoom_button(scenes[i - 1].zoom)
action [Hide('main_menu'),Start(scenes[i - 1].jumpLoc)]
text scenes[i - 1].text
else:
text str(bonusPage * columns * rows + i) + ". Deleted Scene"
init -1 python:
chapter0 = Chapter("CG/cera.jpg", " Prologue", "start", 0.09)
chapter1 = Chapter("Background/captainsoffice.jpg", " Chapter 1", "chap1_start", 0.08, 200, 1)
chapter2 = Chapter("Background/captainsoffice.jpg", " Chapter 2", "chap2_start", 0.08, 4570, 5)
chapter3 = Chapter("CG/avateatime.jpg", " Chapter 3", "ep3_start", 0.09, 11870, 8)
chapter4 = Chapter("CG/asagakidnap_legion.jpg", " Chapter 4", "chap4_start", 0.09, 15710, 10)
chapters = [chapter0, chapter1, chapter2, chapter3, chapter4]
screen chapter_select:
modal True
zorder 200
imagemap:
ground "Menu/chapter_select_base.png"
hover "Menu/chapter_select_hover.png"
# we need to make the screen update when the arrows are clicked
hotspot (1221, 215, 30, 146) action BonusPagePrevious()
hotspot (1221, 724, 30, 146) action BonusPageNext()
hotspot (726, 59, 137, 44) action [ Hide('chapter_select'), Show('save', transition=dissolve) ]
hotspot (948, 926, 107, 23) action [ Hide('chapter_select'), Show('bonus', transition=dissolve) ]
hotspot (864, 59, 137, 44) action [ Hide('chapter_select'), Show('load', transition=dissolve) ]
hotspot (1002, 59, 137, 44) action [ Hide('chapter_select'), Show('preferences', transition=dissolve) ]
hotspot (1140, 59, 137, 44) action [ Hide('chapter_select'), Show('main_menu', transition=dissolve) ]
#style "file_picker_frame"
$ columns = 1
$ rows = 5
# Display a grid of file slots.
grid columns rows:
transpose True
xfill True
#style_group "file_picker"
xpos 753
ypos 216
if hasattr(store,'BM'):
$BM.phase = 'Player' # This is done to make sure that we can open the menu while in a bonus
# Display five file slots, numbered 1 - 5.
for i in range(1, columns * rows + 1):
button:
xminimum 460
yminimum 130
background None #Solid(0,0,0,255)
has hbox
# Add the image and text.
if bonusPage * columns * rows + i - 1 < len(chapters):
imagebutton:
idle (chapters[i - 1].image)
hover hoverglow(chapters[i - 1].image)
at zoom_button(chapters[i - 1].zoom)
action [Hide('main_menu'),chapters[i - 1]]
text chapters[i - 1].text
else:
text str(bonusPage * columns * rows + i) + ". Unwritten Chapter"
init -1 python:
addon_scenes = []
screen mod_scenes:
modal True
zorder 200
imagemap:
ground "Menu/mod_scenes_base.png"
hover "Menu/mod_scenes_hover.png"
# we need to make the screen update when the arrows are clicked
hotspot (1221, 215, 30, 146) action BonusPagePrevious()
hotspot (1221, 724, 30, 146) action BonusPageNext()
hotspot (726, 59, 137, 44) action [ Hide('mod_scenes'), Show('save', transition=dissolve) ]
hotspot (948, 926, 107, 23) action [ Hide('mod_scenes'), Show('bonus', transition=dissolve) ]
hotspot (864, 59, 137, 44) action [ Hide('mod_scenes'), Show('load', transition=dissolve) ]
hotspot (1002, 59, 137, 44) action [ Hide('mod_scenes'), Show('preferences', transition=dissolve) ]
hotspot (1140, 59, 137, 44) action [ Hide('mod_scenes'), Show('main_menu', transition=dissolve) ]
#style "file_picker_frame"
$ columns = 1
$ rows = 5
# Display a grid of file slots.
grid columns rows:
transpose True
xfill True
#style_group "file_picker"
xpos 753
ypos 216
if hasattr(store,"BM"):
$BM.phase = 'Player' # This is done to make sure that we can open the menu while in a bonus
# Display five file slots, numbered 1 - 5.
for i in range(1, columns * rows + 1):
button:
xminimum 460
yminimum 130
background None #Solid(0,0,0,255)
has hbox
# Add the image and text.
if bonusPage * columns * rows + i - 1 < len(addon_scenes):
imagebutton:
idle (addon_scenes[i - 1].image)
hover hoverglow(addon_scenes[i - 1].image)
at zoom_button(addon_scenes[i - 1].zoom)
action [Hide('main_menu'),Start(addon_scenes[i - 1].jumpLoc)]
text addon_scenes[i - 1].text
else:
text str(bonusPage * columns * rows + i) + ". No Scene Found"