-
Notifications
You must be signed in to change notification settings - Fork 0
/
four_aesthetics_common.rpy
663 lines (567 loc) · 27.7 KB
/
four_aesthetics_common.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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
init:
image four_aesthetics_arrow = im.Scale("image/ui/filepicker/Btn_Next.png", 450, 960)
image four_aesthetics_arrow flip = im.Flip(im.Scale("image/ui/filepicker/Btn_Next.png", 450, 960), horizontal=True)
####
# Main cast
####
image four_aesthetics_lunchboxbanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 74, 93, 136),
(0,0), "ui/four_aesthetics/lunchbox.png",
)
image four_aesthetics_adinebanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 74, 93, 136),
(-20,121), im.Crop("cr/adine_normal_b.png",(0,0,420,839)),
)
image four_aesthetics_adinebanner good = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 74, 93, 136),
(75,121), im.Crop("cr/adine_giggle_b.png",(95,0,325,839)),
(-20,121), im.Crop("cr/adine_giggle_b.png",(0,0,420,460)),
)
image four_aesthetics_adinec5door = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 74, 93, 136),
(45,121), im.Crop("cr/adine_disappoint_b.png",(0,0,700,837)),
)
image four_aesthetics_adinec5door selected = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 74, 93, 136),
(45,121), im.Crop("cr/adine_normal_b.png",(0,0,700,837)),
)
image four_aesthetics_adinec5door selected good = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 74, 93, 136),
(45,121), im.Crop("cr/adine_giggle_b.png",(0,0,700,837)),
)
image four_aesthetics_annabanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 121, 77, 128),
(0,133), im.Crop("cr/anna_normal_b.png",(0,0,400,827)),
(0,133), im.Crop("cr/anna_normal_b.png",(0,0,455,140)),
)
image four_aesthetics_annabanner good = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 121, 77, 128),
(0,133), im.Crop("cr/anna_smirk_b.png",(0,0,400,827)),
(0,133), im.Crop("cr/anna_smirk_b.png",(0,0,455,140)),
)
image four_aesthetics_annac5door neutral = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 121, 77, 128),
(45,133), im.Crop("cr/anna_cry.png", (0,0,700,825)),
)
image four_aesthetics_annac5door neutral selected = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 121, 77, 128),
(45,133), im.Crop("cr/anna_normal.png", (0,0,700,825)),
)
image four_aesthetics_annac5door good = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 121, 77, 128),
(45,133), im.Crop("cr/anna_sad.png", (0,0,700,825)),
)
image four_aesthetics_annac5door good selected = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 121, 77, 128),
(45,133), im.Crop("cr/anna_normal.png", (0,0,700,825)),
)
image four_aesthetics_annac5door good selected good = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 121, 77, 128),
(45,133), im.Crop("cr/anna_smirk.png", (0,0,700,825)),
)
image four_aesthetics_brycebanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 94, 132, 85),
(-40,70), im.Crop("cr/bryce_normal_b.png", (0,0,440,960)),
(-40,70), im.Crop("cr/bryce_normal_b.png", (0,0,545,230)),
)
image four_aesthetics_brycebanner good = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 94, 132, 85),
(-40,70), im.Crop("cr/bryce_smirk_b.png", (0,0,440,960)),
(-40,70), im.Crop("cr/bryce_smirk_b.png", (0,0,545,230)),
)
image four_aesthetics_brycec5door = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 94, 132, 85),
(45,70), im.Crop("cr/bryce_sad.png", (0,0,700,958)),
)
image four_aesthetics_brycec5door neutral= im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 94, 132, 85),
(45,70), im.Crop("cr/bryce_normal.png", (0,0,700,958)),
)
image four_aesthetics_brycec5door good = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 94, 132, 85),
(45,70), im.Crop("cr/bryce_flirty.png", (0,0,700,958)),
)
image four_aesthetics_lorembanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 224, 188, 129),
(75,310), im.Crop("cr/lorem_normal.png", (455,0,325,650)),
(0,310), im.Crop("cr/lorem_normal.png", (380,0,80,200)),
)
image four_aesthetics_lorembanner good = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 224, 188, 129),
(75,310), im.Crop("cr/lorem_happy.png", (455,0,325,650)),
(0,310), im.Crop("cr/lorem_happy.png", (380,0,80,200)),
)
image four_aesthetics_loremc5door neutral = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 224, 188, 129),
(-155,308), im.Crop("cr/lorem_relieved.png", (0,0,900,650)),
)
image four_aesthetics_loremc5door good = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 224, 188, 129),
(-155,308), im.Crop("cr/lorem_normal.png", (0,0,900,650)),
)
image four_aesthetics_loremc5door neutral selected = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 224, 188, 129),
(-155,308), im.Crop("cr/lorem_normal.png", (0,0,900,650)),
)
image four_aesthetics_loremc5door good selected = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 224, 188, 129),
(-155,308), im.Crop("cr/lorem_happy.png", (0,0,900,650)),
)
image four_aesthetics_remybanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 147, 54, 62),
(0,108), im.Crop("cr/remy_normal.png", (0,0,400,960)),
(0,108), im.Crop("cr/remy_normal.png", (0,0,515,450)),
)
image four_aesthetics_remybanner good = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 147, 54, 62),
(0,108), im.Crop("cr/remy_smile.png", (0,0,400,960)),
(0,108), im.Crop("cr/remy_smile.png", (0,0,515,450)),
)
image four_aesthetics_remyc5door neutral = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 147, 54, 62),
(45,0), im.Crop("cr/remy_sad.png", (0,0,700,958)),
)
image four_aesthetics_remyc5door neutral selected = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 147, 54, 62),
(45,0), im.Crop("cr/remy_normal.png", (0,0,700,958)),
)
image four_aesthetics_remyc5door good = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 147, 54, 62),
(45,0), im.Crop("cr/remy_normal.png", (0,0,700,958)),
)
image four_aesthetics_remyc5door good selected = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 147, 54, 62),
(45,0), im.Crop("cr/remy_smile.png", (0,0,700,958)),
)
####
# Side cast
####
image four_aesthetics_emerabanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 181, 190, 131),
(0,115), im.Crop("cr/emera_normal.png", (0,0,400,845)),
)
image four_aesthetics_katsubanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 198, 198, 198),
(0,0), im.Crop("cr/katsu_normal.png", (0,30,400,960)),
)
image four_aesthetics_katsubanner good = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 198, 198, 198),
(0,0), im.Crop("cr/katsu_smile.png", (0,30,400,960)),
)
image four_aesthetics_kevinbanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 105, 105, 105),
(0,100), im.Crop("cr/kevin_normal.png", (115,0,400,895)),
(0,100), im.Crop("cr/kevin_normal.png", (115,0,410,650)),
)
image four_aesthetics_sebastianbanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 142, 112, 78),
(0,236), im.Crop("cr/sebastian_normal_b.png", (70,0,420,300)),
(75,236), im.Crop("cr/sebastian_normal_b.png", (145,0,325,724)),
)
image four_aesthetics_sebastianbanner good = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 142, 112, 78),
(0,236), im.Crop("cr/sebastian_smile_b.png", (70,0,420,300)),
(75,236), im.Crop("cr/sebastian_smile_b.png", (145,0,325,724)),
)
image four_aesthetics_clerkbanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 126, 145, 71),
(0,90), im.Crop("cr/zhong_normal_c.png", (30,0,400,340)),
(75,90), im.Crop("cr/zhong_normal_c.png", (105,0,325,872)),
)
image four_aesthetics_zhongbanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 126, 145, 71),
(0,90), im.Crop("cr/zhong_normal_b.png", (30,0,400,340)),
(75,90), im.Crop("cr/zhong_normal_b.png", (105,0,325,872)),
)
####
# Mod cast
####
image four_aesthetics_naomibanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 190, 116, 164),
(0,60), im.Crop("cr/naomi_normal_b.png", (65,0,400,903)),
(0,60), im.Crop("cr/naomi_normal_b.png", (65,0,500,220)),
)
image four_aesthetics_naomibanner good = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 190, 116, 164),
(0,60), im.Crop("cr/naomi_smile_b.png", (65,0,400,903)),
(0,60), im.Crop("cr/naomi_smile_b.png", (65,0,500,220)),
)
image four_aesthetics_naomic5door worstend = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 190, 116, 164),
(45,55), im.Crop("cr/naomi_cry.png", (65,0,700,903)),
)
image four_aesthetics_naomic5door neutral = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 190, 116, 164),
(45,55), im.Crop("cr/naomi_hurt.png", (65,0,700,903)),
)
image four_aesthetics_naomic5door selected = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 190, 116, 164),
(45,55), im.Crop("cr/naomi_normal.png", (65,0,700,903)),
)
image four_aesthetics_naomic5door good = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 190, 116, 164),
(45,55), im.Crop("cr/naomi_normal.png", (65,0,700,903)),
)
image four_aesthetics_naomic5door selected good = im.Composite(
(820,960),
(0,0), im.Recolor( "ui/four_aesthetics/c5door.png", 190, 116, 164),
(45,55), im.Crop("cr/naomi_shy.png", (65,0,700,903)),
)
init python in four_aesthetics:
import jz_magmalink as ml
import four_aesthetics_banners
from four_aesthetics_banners import select_banners, select_c5doors
select_banners = renpy.pure(select_banners)
select_c5doors = renpy.pure(select_c5doors)
n_banner = 5
n_non_banner = 3
n_c5door = 3
n_non_c5door = 3
init:
image four_aesthetics_pillowbanner neutral = four_aesthetics.four_aesthetics_banners.blue_to_playercolor_displayable(
im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 0, 0, 255),
(0,0), "ui/four_aesthetics/pillow.png",
(0,0), "ui/four_aesthetics/skipmark.png",
)
)
image four_aesthetics_bookbanner neutral = four_aesthetics.four_aesthetics_banners.blue_to_playercolor_displayable(
im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner.png", 0, 0, 255),
(0,0), "ui/four_aesthetics/books.png",
(0,0), "ui/four_aesthetics/skipmark.png",
)
)
image four_aesthetics_recordplayerbanner neutral = im.Composite(
(515,960),
(0,0), im.Recolor("ui/four_aesthetics/banner_swoopbottom.png", 126, 145, 71),
(0,0), "ui/four_aesthetics/record_player.png",
)
image four_aesthetics_alonec5door playercolorborder = "ui/four_aesthetics/c5door.png"
image four_aesthetics_alonec5door playercolorborder evil = im.Composite(
(820, 960),
(0,0), "ui/four_aesthetics/c5door.png",
(375,600), im.Crop(im.Recolor("cr/reza_gunpoint.png", 25, 25, 25), (0,250,400,130)),
)
image four_aesthetics_alonec5door playercolorborder evil selected = im.Composite(
(820, 960),
(0,0), "ui/four_aesthetics/c5door.png",
(375,600), im.Crop(im.Recolor("cr/reza_gunpoint.png", 35, 35, 35), (0,250,400,130)),
)
image four_aesthetics_everyonec5door playercolorborder = im.Composite(
(820, 960),
(0,0), "ui/four_aesthetics/c5doorx.png",
(210,598), im.Crop(im.Recolor("cr/reza_angry.png", 15, 15, 15), (430,0,400,360)),
)
image four_aesthetics_everyonec5door playercolorborder selected = im.Composite(
(820, 960),
(0,0), "ui/four_aesthetics/c5doorx2.png",
(210,598), im.Crop(im.Recolor("cr/reza_angry.png", 45, 45, 45), (430,0,400,360)),
)
image four_aesthetics_c5door_border = four_aesthetics.four_aesthetics_banners.recolor_to_playercolor_displayable(
"ui/four_aesthetics/c5doorborder.png"
)
init python:
style.four_aesthetics_banners_menu_window = Style(style.nvl_window)
style.four_aesthetics_banners_menu_window.yfill = False
style.four_aesthetics_banners_menu_window.xpadding = 20
style.four_aesthetics_banners_menu_window.ypadding = 30
style.four_aesthetics_banners_menu_banner = Style(style.menu_choice_button)
style.four_aesthetics_banners_menu_banner.xminimum = 0
style.four_aesthetics_banners_menu_banner.xmaximum = 225
style.four_aesthetics_c5doors_menu_window = Style(style.nvl_window)
style.four_aesthetics_c5doors_menu_window.yfill = False
style.four_aesthetics_c5doors_menu_window.xpadding = 20
style.four_aesthetics_c5doors_menu_window.ypadding = 30
style.four_aesthetics_c5doors_menu_c5door = Style(style.menu_choice_button)
style.four_aesthetics_c5doors_menu_c5door.xminimum = 0
style.four_aesthetics_c5doors_menu_c5door.xmaximum = 410
style.four_aesthetics_c5doors_menu_c5door.ymaximum = 550
transform four_aesthetics_banners_menu_selection_alpha:
on idle:
linear 0.25 alpha 0.7
on hover:
alpha 1.0
transform four_aesthetics_c5doors_menu_selection_alpha:
on idle:
linear 0.25 alpha 0.5
linear 0.25 zoom 1.0
on hover:
alpha 1.0
zoom 1.02
screen four_aesthetics_banners_choice(items):
default banneroffset = 0
default nonbanneroffset = 0
window:
style "four_aesthetics_banners_menu_window"
background (Frame("image/ui/nvlscreen.png" if persistent.four_aesthetics_disable_character_trim_color else four_aesthetics.four_aesthetics_banners.BlueMap("image/ui/nvlscreen.png", persistent.playercolor or '#FFF'), 195, 195, tile=True))
xalign 0.5
yalign 0.0
has vbox at zoom_fade_in:
style "nvl_vbox"
xalign 0.5
if renpy.get_screen("say"):
ysize 700
else:
yfill True
$ banner_items, non_banners = four_aesthetics.select_banners(items)
if banner_items:
hbox:
yalign 0.0
xalign 0.5
if len(banner_items) > four_aesthetics.n_banner:
button at four_aesthetics_banners_menu_selection_alpha:
action [
SetScreenVariable('banneroffset', banneroffset-four_aesthetics.n_banner if banneroffset >= four_aesthetics.n_banner else len(banner_items)-(len(banner_items) % four_aesthetics.n_banner)),
Play("audio", "se/sounds/select3.ogg")
]
hovered Play("audio", "se/sounds/select.ogg")
style "four_aesthetics_banners_menu_banner"
add 'four_aesthetics_arrow flip':
zoom 0.5
for caption, action, _ in banner_items[banneroffset:banneroffset+four_aesthetics.n_banner]:
if caption not in ["[[Show more banners.]","[[Show prev banners.]"]:
python:
banner_image, banner_status = four_aesthetics.four_aesthetics_banners.banners[caption]
banner_status_label = " good" if getattr(renpy.store, banner_status, None) == "good" else " neutral"
button at four_aesthetics_banners_menu_selection_alpha:
action [action, Play("audio", "se/sounds/select3.ogg")]
hovered Play("audio", "se/sounds/select.ogg")
style "four_aesthetics_banners_menu_banner"
has vbox:
add (banner_image+banner_status_label):
zoom 0.5
text caption style "menu_choice"
if len(banner_items) > four_aesthetics.n_banner:
button at four_aesthetics_banners_menu_selection_alpha:
action [
SetScreenVariable('banneroffset', 0 if banneroffset+four_aesthetics.n_banner>=len(banner_items) else banneroffset+four_aesthetics.n_banner),
Play("audio", "se/sounds/select3.ogg")
]
hovered Play("audio", "se/sounds/select.ogg")
style "four_aesthetics_banners_menu_banner"
add 'four_aesthetics_arrow':
zoom 0.5
if banner_items and non_banners:
fixed:
xfill True
ysize 5
add 'white'
if non_banners:
vbox:
style "menu"
xalign 0.5
for caption, action, _ in non_banners[nonbanneroffset:nonbanneroffset+four_aesthetics.n_non_banner]:
if action:
button:
action [action, Play("audio", "se/sounds/select3.ogg")]
hovered Play("audio", "se/sounds/select.ogg")
style "menu_choice_button"
text caption style "menu_choice"
else:
text caption style "menu_caption"
if len(non_banners) > four_aesthetics.n_non_banner + 1:
button:
action [
SetScreenVariable('nonbanneroffset', 0 if nonbanneroffset+four_aesthetics.n_non_banner>=len(non_banners) else nonbanneroffset+four_aesthetics.n_non_banner),
Play("audio", "se/sounds/select3.ogg")
]
hovered Play("audio", "se/sounds/select.ogg")
style "menu_choice_button"
text "[[Show more options.]" style "menu_choice"
label four_bannermod_test_scene:
python:
print(renpy.display_menu(
[ (p,p) for p in four_aesthetics.four_aesthetics.banners.keys()]+
[ ("Spend the day reading.","read") ],
screen='four_aesthetics_banners_choice'
))
$ renpy.quit()
screen four_aesthetics_c5doors_choice(items):
default c5dooroffset = 0
default nonc5dooroffset = 0
default button_hovered = None
window:
style "four_aesthetics_c5doors_menu_window"
background (Frame("image/ui/nvlscreen.png" if persistent.four_aesthetics_disable_character_trim_color else four_aesthetics.four_aesthetics_banners.BlueMap("image/ui/nvlscreen.png", persistent.playercolor or '#FFF'), 195, 195, tile=True))
xalign 0.5
yalign 0.0
has vbox at zoom_fade_in:
style "nvl_vbox"
xalign 0.5
if renpy.get_screen("say"):
ysize 700
else:
yfill True
$ c5door_items, non_c5doors, c5doors_data = four_aesthetics.select_c5doors(items)
if c5door_items:
hbox:
yalign 0.0
xalign 0.5
if len(c5door_items) > four_aesthetics.n_c5door:
button at four_aesthetics_banners_menu_selection_alpha:
action [
SetScreenVariable('c5dooroffset', c5dooroffset-four_aesthetics.n_c5door if c5dooroffset >= four_aesthetics.n_c5door else len(c5door_items)-(len(c5door_items) % four_aesthetics.n_c5door)),
Play("audio", "se/sounds/select3.ogg")
]
hovered Play("audio", "se/sounds/select.ogg")
style "four_aesthetics_banners_menu_banner"
add 'four_aesthetics_arrow flip':
zoom 0.5
for caption, action, _ in c5door_items[c5dooroffset:c5dooroffset+four_aesthetics.n_c5door]:
if caption not in ["[[Show more c5doors.]","[[Show prev c5doors.]"]:
python:
c5door_image, c5door_status = c5doors_data[caption]
button at four_aesthetics_c5doors_menu_selection_alpha:
action [action, Play("audio", "se/sounds/select3.ogg")]
hovered [Play("audio", "se/sounds/select.ogg"), SetScreenVariable('button_hovered', caption)]
unhovered SetScreenVariable('button_hovered', None)
style "four_aesthetics_c5doors_menu_c5door"
if button_hovered == caption:
add (c5door_image+(c5door_status(True) if c5door_status else "")):
zoom 0.5
else:
add (c5door_image+(c5door_status(False) if c5door_status else "")):
zoom 0.5
if "playercolorborder" in c5door_image:
add 'four_aesthetics_c5door_border':
zoom 0.5
text caption style "menu_choice":
xalign 0.5
yanchor 0.0
ypos 480
if len(c5door_items) > four_aesthetics.n_c5door:
button at four_aesthetics_banners_menu_selection_alpha:
action [
SetScreenVariable('c5dooroffset', 0 if c5dooroffset+four_aesthetics.n_c5door>=len(c5door_items) else c5dooroffset+four_aesthetics.n_c5door),
Play("audio", "se/sounds/select3.ogg")
]
hovered Play("audio", "se/sounds/select.ogg")
style "four_aesthetics_banners_menu_banner"
add 'four_aesthetics_arrow':
zoom 0.5
if c5door_items and non_c5doors:
fixed:
xfill True
ysize 5
add 'white'
if non_c5doors:
vbox:
style "menu"
xalign 0.5
for caption, action, _ in non_c5doors[nonc5dooroffset:nonc5dooroffset+four_aesthetics.n_non_c5door]:
if action:
button:
action [action, Play("audio", "se/sounds/select3.ogg")]
hovered Play("audio", "se/sounds/select.ogg")
style "menu_choice_button"
text caption style "menu_choice"
else:
text caption style "menu_caption"
if len(non_c5doors) > four_aesthetics.n_non_c5door + 1:
button:
action [
SetScreenVariable('nonc5dooroffset', 0 if nonc5dooroffset+four_aesthetics.n_non_c5door>=len(non_c5doors) else nonc5dooroffset+four_aesthetics.n_non_c5door),
Play("audio", "se/sounds/select3.ogg")
]
hovered Play("audio", "se/sounds/select.ogg")
style "menu_choice_button"
text "[[Show more options.]" style "menu_choice"
label four_c5doorsmod_test_scene:
show black with dissolve
show o3 with dissolve
$ renpy.pause(0.5)
python:
print(renpy.display_menu(
[ (p,p) for p in four_aesthetics.four_aesthetics_banners.c5doors.keys()],
screen='four_aesthetics_c5doors_choice'
))
$ renpy.quit()
define four_aesthetics_trimrecolor_installed = hasattr(four_aesthetics.ml.find_screen('say').search_if(), 'branch')
screen four_aesthetics_modsettings():
tag smallscreen2
modal True
window id "four_aesthetics_modsettings" at popup2:
style "smallwindow"
vbox:
align (0.5, 0.5)
if four_aesthetics_trimrecolor_installed:
hbox:
align (0.5, 0.5)
spacing 10
imagebutton:
xcenter 0.5
ycenter 0.5
idle im.Scale("ui/nsfw_chbox-unchecked.png", 70, 70)
hover im.Recolor(im.Scale("ui/nsfw_chbox-unchecked.png", 70, 70), 64, 64, 64)
selected_idle im.Scale("ui/nsfw_chbox-checked.png", 70, 70)
selected_hover im.Recolor(im.Scale("ui/nsfw_chbox-checked.png", 70, 70), 64, 64, 64)
action [MTSTogglePersistentBool("four_aesthetics_disable_character_trim_color"),
Play("audio", "se/sounds/yes.wav")]
hovered Play("audio", "se/sounds/select.ogg")
focus_mask None
text _("Disable menu trim recoloring")
hbox:
align (0.5, 0.5)
spacing 10
imagebutton:
xcenter 0.5
ycenter 0.5
idle im.Scale("ui/nsfw_chbox-unchecked.png", 70, 70)
hover im.Recolor(im.Scale("ui/nsfw_chbox-unchecked.png", 70, 70), 64, 64, 64)
selected_idle im.Scale("ui/nsfw_chbox-checked.png", 70, 70)
selected_hover im.Recolor(im.Scale("ui/nsfw_chbox-checked.png", 70, 70), 64, 64, 64)
action [MTSTogglePersistentBool("four_aesthetics_disable_scale_color"),
Play("audio", "se/sounds/yes.wav")]
hovered Play("audio", "se/sounds/select.ogg")
focus_mask None
text _("Disable say box scale recoloring")
else:
text _("WARNING: MagmaLink version too old to support menu trim recoloring. Please update.")
imagebutton idle "image/ui/close_idle.png" hover "image/ui/close_hover.png" action [Show("_ml_mod_settings"), Play("audio", "se/sounds/close.ogg")] hovered Play("audio", "se/sounds/select.ogg") style "smallwindowclose" at nav_button