-
Notifications
You must be signed in to change notification settings - Fork 1
/
screens.rpy
1542 lines (1019 loc) · 37 KB
/
screens.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
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
init offset = -1
init python:
def _medicine_reload():
if not main_menu and persistent.savefile:
global p
sh()
newp = None
for i in range(len(persistent.savefile)):
for j in range(len(persistent.savefile[i])):
if persistent.savefile[i][j].p.seed == p.seed:
newp = persistent.savefile[i][j].p
newp.restart += 1
break
if not newp:
newp = persistent.savefile[-1][-1].p
p = dcp(newp)
renpy.jump("afterload")
def _medicine_enablerollback():
if config.developer:
config.rollback_enabled = True
showNotice(['已开启回滚。'])
#def _medicine_save():
config.keymap['progress_screen'].remove('K_F2')
config.keymap['help'].remove('K_F1')
config.keymap['performance'].remove('K_F3')
config.keymap['medicine_reload'] = ['K_F2']
config.keymap['medicine_save'] = ['K_F1']
config.keymap['medicine_enable_rollback'] = ['K_F3']
config.underlay.append(renpy.Keymap(
medicine_reload = _medicine_reload,
medicine_save = ShowMenu("screen_gamemenu_save"),
medicine_enable_rollback = _medicine_enablerollback,
))
style default:
properties gui.text_properties()
language gui.language
style input:
properties gui.text_properties("input", accent=True)
adjust_spacing False
style hyperlink_text:
properties gui.text_properties("hyperlink", accent=True)
hover_underline True
style gui_text:
properties gui.text_properties("interface")
style button:
properties gui.button_properties("button")
style button_text is gui_text:
properties gui.text_properties("button")
yalign 0.5
style label_text is gui_text:
properties gui.text_properties("label", accent=True)
style prompt_text is gui_text:
properties gui.text_properties("prompt")
style bar:
ysize gui.bar_size
left_bar Frame("gui/bar/left.png", gui.bar_borders, tile=gui.bar_tile)
right_bar Frame("gui/bar/right.png", gui.bar_borders, tile=gui.bar_tile)
style solid_bar:
ysize gui.bar_size
left_bar Frame("gui/bar/left.png", gui.bar_borders, tile=gui.bar_tile)
right_bar Frame("gui/bar/right.png", gui.bar_borders, tile=gui.bar_tile)
style vbar:
xsize gui.bar_size
top_bar Frame("gui/bar/top.png", gui.vbar_borders, tile=gui.bar_tile)
bottom_bar Frame("gui/bar/bottom.png", gui.vbar_borders, tile=gui.bar_tile)
style scrollbar:
ysize gui.scrollbar_size
base_bar Frame("gui/scrollbar/horizontal_[prefix_]bar.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
thumb Frame("gui/scrollbar/horizontal_[prefix_]thumb.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
style vscrollbar:
xsize gui.scrollbar_size
base_bar Frame("gui/scrollbar/vertical_[prefix_]bar.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
thumb Frame("gui/scrollbar/vertical_[prefix_]thumb.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
style slider:
ysize gui.slider_size
base_bar Frame("gui/slider/horizontal_[prefix_]bar.png", gui.slider_borders, tile=gui.slider_tile)
thumb "gui/slider/horizontal_[prefix_]thumb.png"
style vslider:
xsize gui.slider_size
base_bar Frame("gui/slider/vertical_[prefix_]bar.png", gui.vslider_borders, tile=gui.slider_tile)
thumb "gui/slider/vertical_[prefix_]thumb.png"
style frame:
padding gui.frame_borders.padding
background Frame("gui/frame.png", gui.frame_borders, tile=gui.frame_tile)
transform change_transform(old_widget, new_widget):
contains:
new_widget
xoffset -100
alpha 0.0
linear 0.2 xoffset 0 alpha 1.0
contains:
old_widget
xoffset 0
alpha 1.0
linear 0.2 xoffset -100 alpha 0.0
define config.side_image_change_transform = change_transform
transform same_transform(old_widget, new_widget):
contains:
old_widget
contains:
new_widget with Dissolve(0.2, alpha=True)
define config.side_image_same_transform = same_transform
screen say(who, what):
style_prefix "say"
window:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
text what id "what"
use quickmenu(p)
init python:
config.character_id_prefixes.append('namebox')
style window is default
style say_label is default
style say_dialogue is default
style say_thought is say_dialogue
style namebox is default
style namebox_label is say_label
style window:
xalign 0.5
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
style namebox:
xpos gui.name_xpos
xanchor gui.name_xalign
xsize gui.namebox_width
ypos gui.name_ypos
ysize gui.namebox_height
background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign)
padding gui.namebox_borders.padding
style say_label:
properties gui.text_properties("name", accent=True)
xalign gui.name_xalign
yalign 0.5
style say_dialogue:
properties gui.text_properties("dialogue")
xpos gui.dialogue_xpos
xsize gui.dialogue_width
ypos gui.dialogue_ypos
screen input(prompt):
style_prefix "input"
window:
has vbox:
xalign gui.dialogue_text_xalign
xpos gui.dialogue_xpos
xsize gui.dialogue_width
ypos gui.dialogue_ypos
text prompt style "input_prompt"
input id "input"
style input_prompt is default
style input_prompt:
xalign gui.dialogue_text_xalign
properties gui.text_properties("input_prompt")
style input:
xalign gui.dialogue_text_xalign
xmaximum gui.dialogue_width
screen choice(items):
style_prefix "choice"
vbox:
for i in items:
textbutton i.caption action i.action
define config.narrator_menu = True
style choice_vbox is vbox
style choice_button is button
style choice_button_text is button_text
style choice_vbox:
xalign 0.5
ypos 405
yanchor 0.5
spacing gui.choice_spacing
style choice_button is default:
properties gui.button_properties("choice_button")
style choice_button_text is default:
properties gui.button_text_properties("choice_button")
screen quickmenu(player):
zorder 100
use replaying_indicator()
if quick_menu or replaying:
hbox:
xcenter 0.8
ycenter 0.75
xalign 0.5
spacing 25
if replaying:
imagebutton auto "gui/quickmenu/stopreplay_%s.png":
action [Hide("info"), Function(sh), Jump('afterreplay')]
hovered Show(screen="info", i=_('结束剧情回顾'), a=_('我的思绪飘荡,而我紧随其后。'))
unhovered Hide("info")
if config.rollback_enabled:
imagebutton auto "gui/quickmenu/rollback_%s.png":
action [Rollback(), Hide("info")]
hovered Show(screen="info", i=_('回退'), a=_('想要回到过去的人太多了,你应该珍惜回退的机会。'))
unhovered Hide("info")
imagebutton auto "gui/quickmenu/history_%s.png":
action [Function(renpy.sound.stop,"chara_voice"),ShowMenu('screen_gamemenu_history', player), Hide("info")]
hovered Show(screen="info", i=_('历史记录'), a=_('这份记录描述着清醒时与睡梦中的世界。'))
unhovered Hide("info")
imagebutton auto "gui/quickmenu/skip_%s.png":
selected_hover "gui/quickmenu/skip_selected_idle.png"
action [Skip(), Hide("info")]
hovered Show(screen="info", i=_('快进'), a=_('在时间之中,无物还能保持原有的姿态。'))
unhovered Hide("info")
imagebutton auto "gui/quickmenu/auto_%s.png":
selected_hover "gui/quickmenu/auto_selected_idle.png"
hovered Show(screen="info", i=_('自动前进'), a=_('懒惰之人的选择。'))
action [Preference("auto-forward", "toggle"), Hide("info")]
unhovered Hide("info")
imagebutton auto "gui/quickmenu/hide_%s.png":
hovered Show(screen="info", i=_('隐藏界面'), a=_('方便大家欣赏美丽的裆部立绘。'))
action [Function(renpy.sound.stop,"chara_voice"),HideInterface(), Hide("info")]
unhovered Hide("info")
imagebutton auto "gui/quickmenu/settings_%s.png":
hovered Show(screen="info", i=_('设置'), a=_('“路?我们要去的地方不需要……路。”'))
action [ShowMenu(screen='screen_gamemenu',player=player), Hide("info")]
unhovered Hide("info")
screen quickmenu(player):
variant "touch"
zorder 100
if quick_menu or replaying:
hbox:
xcenter 0.8
ycenter 0.74
xalign 0.5
spacing 40
if replaying:
imagebutton auto "gui/quickmenu/stopreplay_%s.png":
action [Hide("info"), Jump('afterreplay')]
hovered Show(screen="info", i=_('结束剧情回顾'), a=_('我的思绪飘荡,而我紧随其后。'))
unhovered Hide("info")
if config.rollback_enabled:
imagebutton auto "gui/quickmenu/rollback_%s.png":
action [Rollback(), Hide("info")]
hovered Show(screen="info", i=_('回退'), a=_('想要回到过去的人太多了,你应该珍惜回退的机会。'))
unhovered Hide("info")
imagebutton auto "gui/quickmenu/history_%s.png":
action [ShowMenu('screen_gamemenu_history', player), Hide("info")]
hovered Show(screen="info", i=_('历史记录'), a=_('这份记录描述着清醒时与睡梦中的世界。'))
unhovered Hide("info")
imagebutton auto "gui/quickmenu/skip_%s.png":
selected_hover "gui/quickmenu/skip_selected_idle.png"
action [Skip(), Hide("info")]
hovered Show(screen="info", i=_('快进'), a=_('在时间之中,无物还能保持原有的姿态。'))
unhovered Hide("info")
imagebutton auto "gui/quickmenu/auto_%s.png":
selected_hover "gui/quickmenu/auto_selected_idle.png"
hovered Show(screen="info", i=_('自动前进'), a=_('懒惰之人的选择。'))
action [Preference("auto-forward", "toggle"), Hide("info")]
unhovered Hide("info")
imagebutton auto "gui/quickmenu/hide_%s.png":
hovered Show(screen="info", i=_('隐藏界面'), a=_('方便大家欣赏美丽的裆部立绘。'))
action [HideInterface(), Hide("info")]
unhovered Hide("info")
imagebutton auto "gui/quickmenu/settings_%s.png":
hovered Show(screen="info", i=_('设置'), a=_('“路?我们要去的地方不需要……路。”'))
action [ShowMenu(screen='screen_gamemenu',player=player), Hide("info")]
unhovered Hide("info")
default quick_menu = True
style quick_button is default
style quick_button_text is button_text
style quick_button:
properties gui.button_properties("quick_button")
style quick_button_text:
properties gui.button_text_properties("quick_button")
screen navigation():
$renpy.sound.stop(channel="chara_voice")
$sh()
pass
style navigation_button is gui_button
style navigation_button_text is gui_button_text
style navigation_button:
size_group "navigation"
properties gui.button_properties("navigation_button")
style navigation_button_text:
properties gui.button_text_properties("navigation_button")
screen item_unlocked_screen():
if DecayCookie in Notice.longmessages:
$Notice.longmessages.remove(DecayCookie)
use screen_long_notify('已解锁道具:袋装薄荷味饼干\n可以在零食店中购买。')
elif 'decaypics' in Notice.longmessages:
$Notice.longmessagesiremoveppend('decaypics')
use screen_long_notify('已解锁Decay的私人相册。')
elif 'solituspics' in Notice.longmessages:
$Notice.longmessages.remove('solituspics')
use screen_long_notify('已解锁Solitus的私人相册。')
elif PathosCookie in Notice.longmessages:
$Notice.longmessages.remove(PathosCookie)
use screen_long_notify('已解锁道具:袋装葡萄味饼干\n可以在零食店中购买。')
elif 'pathospics' in Notice.longmessages:
$Notice.longmessages.remove('pathospics')
use screen_long_notify('已解锁Pathos的私人相册。')
elif AcolasCookie in Notice.longmessages:
$Notice.longmessages.remove(AcolasCookie)
use screen_long_notify('已解锁道具:袋装西瓜味饼干\n可以在零食店中购买。')
elif 'acolaspics' in Notice.longmessages:
$Notice.longmessages.remove('acolaspics')
use screen_long_notify('已解锁Acolas的私人相册。')
elif HallukeCookie in Notice.longmessages:
$Notice.longmessages.remove(HallukeCookie)
use screen_long_notify('已解锁道具:袋装奶油味饼干\n可以在零食店中购买。')
elif 'hallukepics' in Notice.longmessages:
$Notice.longmessages.remove('hallukepics')
use screen_long_notify('已解锁Halluke的私人相册。')
elif 'deplinepics' in Notice.longmessages:
$Notice.longmessagesiremoveppend('deplinepics')
use screen_long_notify('已解锁depline的私人相册。')
elif 'destotpics' in Notice.longmessages:
$Notice.longmessages.remove('destotpics')
use screen_long_notify('已解锁Destot的私人相册。')
elif 'arnelpics' in Notice.longmessages:
$Notice.longmessages.remove('arnelpics')
use screen_long_notify('已解锁Arnel的私人相册。')
image movie_se_background = Movie(play="images/cg/movie_se_background.webm", size=(1460,881))
image movie_se_mask = "images/cg/movie_se_mask.webp"
image movie_aco_cg_background = Movie(play="images/cg/aco_cg_back.webm", size=(1920,1080))
image movie_aco_cg_mask:
2
"images/cg/aco_cg_mask2.webp"
0.05
"images/cg/aco_cg_mask3.webp"
0.05
"images/cg/aco_cg_mask4.webp"
0.05
"images/cg/aco_cg_mask5.webp"
0.065
"images/cg/aco_cg_mask4.webp"
0.05
"images/cg/aco_cg_mask3.webp"
0.05
"images/cg/aco_cg_mask2.webp"
0.05
repeat
transform se_transform:
xoffset 0
yoffset 0
parallel:
easein 0.3 xoffset 3
easein 0.2 xoffset -1
easein 0.2 xoffset 0
0.2
easein 0.3 xoffset 1
easein 0.2 xoffset -3
easein 0.3 xoffset 3
easein 0.2 xoffset -1
easein 0.2 xoffset 0
repeat
parallel:
easein 0.2 yoffset 8
easein 0.3 yoffset -4
easein 0.2 yoffset 0
0.2
easein 0.2 yoffset 4
easein 0.3 yoffset -8
easein 0.2 yoffset 8
easein 0.3 yoffset -4
easein 0.2 yoffset 0
repeat
transform movie_aco_cg_mask_transform:
xoffset 0
yoffset 0
parallel:
easein 0.3 xoffset 2
easein 0.2 xoffset -1
0.2
easein 0.3 xoffset 0
easein 0.2 xoffset 1
0.75
repeat
parallel:
easein 0.4 yoffset 4
easein 0.6 yoffset 2
easein 0.4 yoffset 0
easein 0.6 yoffset 2
easein 0.4 yoffset 4
1
repeat
screen main_menu():
tag menu
style_prefix "main_menu"
# 列车背景
if persistent.main_menu_theme == Theme_train:
add "images/cg/se.webp" xalign 1.0
add 'movie_se_background' xalign 1.0
add "movie_se_mask" xcenter 0.5 ycenter 0.5 at se_transform
# aco cg 背景
elif persistent.main_menu_theme == Theme_acolas:
add "images/cg/aco_cg_back.webp"
add 'movie_aco_cg_background'
add "images/cg/aco_cg_mask1.webp" xcenter 0.5 ycenter 0.5 at movie_aco_cg_mask_transform
add "movie_aco_cg_mask" xcenter 0.5 ycenter 0.5 at movie_aco_cg_mask_transform
else:
add persistent.main_menu_theme.bg
$ui_font = persistent.main_menu_theme.ui_font
python:
def getstarttime(x):
return 0.3 + 0.15 * x
add "gui/logo.png" at trans_mainmenu(getstarttime(0))
vbox:
xcenter 0.21
ycenter 0.725
spacing 10
if Saver.get_newest():
textbutton _("继续"):
action Function(Saver.load, Saver.get_newest())
at trans_mainmenu(getstarttime(1))
background Frame("gui/style/select_[prefix_]background.png", tile=gui.frame_tile)
text_style ui_font
text_size 58
text_xpos 0.1
xsize 300
textbutton _("新游戏"):
action ShowMenu("screen_init_select")
background Frame("gui/style/select_[prefix_]background.png", tile=gui.frame_tile)
at trans_mainmenu(getstarttime(2))
text_style ui_font
text_size 58
text_xpos 0.1
xsize 300
else:
textbutton _("继续"):
action NullAction()
at trans_mainmenu(getstarttime(1))
text_style ui_font
text_size 58
text_xpos 0.1
xsize 300
text_color '#8888887f'
textbutton _("新游戏"):
action ShowMenu("screen_init_select")
background Frame("gui/style/select_[prefix_]background.png", tile=gui.frame_tile)
at trans_mainmenu(getstarttime(2))
text_style ui_font
text_size 58
text_xpos 0.1
xsize 300
textbutton _("读取"):
action ShowMenu("screen_gamemenu_save", None)
background Frame("gui/style/select_[prefix_]background.png", tile=gui.frame_tile)
at trans_mainmenu(getstarttime(3))
text_style ui_font
text_size 58
text_xpos 0.1
xsize 300
textbutton _("设置"):
action ShowMenu("screen_gamemenu_preferences", None)
background Frame("gui/style/select_[prefix_]background.png", tile=gui.frame_tile)
at trans_mainmenu(getstarttime(4))
text_style ui_font
text_size 58
text_xpos 0.1
xsize 300
textbutton _("成就"):
action ShowMenu("screen_gamemenu_achievement", None)
background Frame("gui/style/select_[prefix_]background.png", tile=gui.frame_tile)
at trans_mainmenu(getstarttime(5))
text_style ui_font
text_size 58
text_xpos 0.1
xsize 300
textbutton ""
textbutton _("退出"):
action Quit(confirm=not main_menu)
background Frame("gui/style/select_[prefix_]background.png", tile=gui.frame_tile)
at trans_mainmenu(getstarttime(6))
text_style ui_font
text_size 58
text_xpos 0.1
xsize 300
vbox:
xpos 1.01
ypos 1.02
imagebutton idle "gui/new.png" at app_transform,trans_mainmenu(getstarttime(12)):
action ShowMenu("screen_gamemenu_new")
xalign 1.0
textbutton "v[config.version]" at trans_mainmenu(getstarttime(7)):
xalign 1.0
text_size 28
text_style ui_font
textbutton _("药:绝望的解决手段") at trans_mainmenu(getstarttime(8)):
xalign 1.0
text_size 28
text_style ui_font
if Achievement402.has():
action Start('eggs1')
vbox:
xalign 1.0
yalign 0.05
imagebutton idle "gui/qq.png" action OpenURL("http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=ILURTWhqOeD2aSBxb0L_fqccTYv_Wdap&authKey=oWhqP%2BPxzDDPRw5M0W%2FkWcJaQeWYx%2F177xhXyIgc3p80jB84H9kzlFWVOuYphTYE&noverify=0&group_code=797308562") at app_transform,trans_mainmenu(getstarttime(9))
imagebutton idle "gui/pd.png" action OpenURL("https://pd.qq.com/s/heao2f9kp") at app_transform,trans_mainmenu(getstarttime(10))
imagebutton idle "gui/afd.png" action OpenURL("https://afdian.net/a/yuxiu") at app_transform,trans_mainmenu(getstarttime(11))
use item_unlocked_screen()
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
style main_menu_frame:
xsize 420
yfill True
style main_menu_vbox:
xalign 1.0
xoffset -30
xmaximum 1200
yalign 1.0
yoffset -30
style main_menu_text:
properties gui.text_properties("main_menu", accent=True)
style main_menu_title:
properties gui.text_properties("title")
style main_menu_version:
properties gui.text_properties("version")
screen game_menu(title, scroll=None, yinitial=0.0, navi=True):
style_prefix "game_menu"
add persistent.main_menu_theme.bg
frame:
style "game_menu_outer_frame"
has hbox
frame:
style "game_menu_navigation_frame"
frame:
style "game_menu_content_frame"
if scroll == "viewport":
viewport:
yinitial yinitial
scrollbars "vertical"
mousewheel True
draggable True
pagekeys True
side_yfill True
has vbox
transclude
elif scroll == "vpgrid":
vpgrid:
cols 1
yinitial yinitial
scrollbars "vertical"
mousewheel True
draggable True
pagekeys True
side_yfill True
transclude
else:
transclude
if navi:
use navigation
textbutton _("返回"):
style "return_button"
action Return()
label title at trans_Down()
if main_menu:
key "game_menu" action ShowMenu("main_menu")
style game_menu_outer_frame is empty
style game_menu_navigation_frame is empty
style game_menu_content_frame is empty
style game_menu_viewport is gui_viewport
style game_menu_side is gui_side
style game_menu_scrollbar is gui_vscrollbar
style game_menu_label is gui_label
style game_menu_label_text is gui_label_text
style return_button is navigation_button
style return_button_text is navigation_button_text
style game_menu_outer_frame:
bottom_padding 45
top_padding 180
background "gui/overlay/confirm.png"
style game_menu_navigation_frame:
xsize 420
yfill True
style game_menu_content_frame:
left_margin 60
right_margin 30
top_margin 15
style game_menu_viewport:
xsize 1850
style game_menu_vscrollbar:
unscrollable gui.unscrollable
style game_menu_side:
spacing 15
style game_menu_label:
xpos 75
ysize 180
style game_menu_label_text:
size gui.title_text_size
color gui.accent_color
yalign 0.5
style return_button:
xpos gui.navigation_xpos
yalign 1.0
yoffset -45
screen about():
tag menu
pass
style about_label is gui_label
style about_label_text is gui_label_text
style about_text is gui_text
style about_label_text:
size gui.label_text_size
screen load():
tag menu
pass
screen save():
tag menu
pass
screen preferences(player=None):
tag menu
use screen_gamemenu(player)
screen info_i_type(player, item, width=400, pp=renpy.get_mouse_pos()):
style_prefix "info"
zorder 2002
python:
t=item.name
i=item.info
a=item.ad
(xc,trans) = (0.0,trans_toLeft) if pp[0] < 1500 else (1.0,trans_toRight)
yc = 0.0 if pp[1] < 540 else 1.0
if width == 400:
if a:
if len(i) + len(a) > 150:
width = 600
else:
if len(i) > 100:
width = 600
frame:
pos pp
padding (15, 15)
xanchor xc
yanchor yc
at trans()
hbox:
vbox:
align pp
if t is not None:
label '[t!t]\n':
text_style "info_text"
xsize width
if i is not None:
label '{size=-2}[i!t]{/size}':
text_style "info_text"
xsize width
if a is not None:
null height 16
label '{i}[a!t]{/i}':
text_style "admonition_text"
xsize width
null width -75
vbox:
add item.icon()
style pref_label is gui_label
style pref_label_text is gui_label_text
style pref_vbox is vbox
style radio_label is pref_label
style radio_label_text is pref_label_text
style radio_button is gui_button
style radio_button_text is gui_button_text
style radio_vbox is pref_vbox
style check_label is pref_label
style check_label_text is pref_label_text
style check_button is gui_button
style check_button_text is gui_button_text
style check_vbox is pref_vbox
style slider_label is pref_label
style slider_label_text is pref_label_text
style slider_slider is gui_slider
style slider_button is gui_button
style slider_button_text is gui_button_text
style slider_pref_vbox is pref_vbox
style mute_all_button is check_button
style mute_all_button_text is check_button_text
style pref_label:
top_margin gui.pref_spacing
bottom_margin 3
style pref_label_text:
yalign 1.0
style pref_vbox:
xsize 338
style radio_vbox:
spacing gui.pref_button_spacing
style radio_button:
properties gui.button_properties("radio_button")
foreground "gui/button/radio_[prefix_]foreground.png"
style radio_button_text:
properties gui.button_text_properties("radio_button")
style check_vbox:
spacing gui.pref_button_spacing
style check_button:
properties gui.button_properties("check_button")
foreground "gui/button/check_[prefix_]foreground.png"
style check_button_text: