-
Notifications
You must be signed in to change notification settings - Fork 21
/
screens.rpy
1608 lines (869 loc) · 32.5 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 -1 style default:
font gui.default_font
size gui.text_size
color gui.text_color
outlines [(2, "#000000aa", 0, 0)]
line_overlap_split 1
line_spacing 1
init -1 style default_monika is normal:
slow_cps 30
init -1 style edited is default:
font "gui/font/VerilySerifMono.otf"
kerning 8
outlines [(10, "#000", 0, 0)]
xpos gui.text_xpos
xanchor gui.text_xalign
xsize gui.text_width
ypos gui.text_ypos
text_align gui.text_xalign
layout ("subtitle" if gui.text_xalign else "tex")
init -1 style normal is default:
xpos gui.text_xpos
xanchor gui.text_xalign
xsize gui.text_width
ypos gui.text_ypos
text_align gui.text_xalign
layout ("subtitle" if gui.text_xalign else "tex")
init -1 style input:
color gui.accent_color
init -1 style hyperlink_text:
color gui.accent_color
hover_color gui.hover_color
hover_underline True
init -1 style splash_text:
size 24
color "#000"
font gui.default_font
text_align 0.5
outlines []
init -1 style poemgame_text:
yalign 0.5
font "gui/font/Halogen.ttf"
size 30
color "#000"
outlines []
hover_xoffset -3
hover_outlines [(3, "#fef", 0, 0), (2, "#fcf", 0, 0), (1, "#faf", 0, 0)]
init -1 style gui_text:
font gui.interface_font
color gui.interface_text_color
size gui.interface_text_size
init -1 style button:
properties gui.button_properties("button")
init -1 style button_text is gui_text:
properties gui.button_text_properties("button")
yalign 0.5
init -1 style label_text is gui_text:
color gui.accent_color
size gui.label_text_size
init -1 style prompt_text is gui_text:
color gui.text_color
size gui.interface_text_size
init -1 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)
init -1 style bar:
ysize 18
base_bar Frame("gui/scrollbar/horizontal_poem_bar.png", tile=False)
thumb Frame("gui/scrollbar/horizontal_poem_thumb.png", top=6, right=6, tile=True)
init -1 style scrollbar:
ysize 18
base_bar Frame("gui/scrollbar/horizontal_poem_bar.png", tile=False)
thumb Frame("gui/scrollbar/horizontal_poem_thumb.png", top=6, right=6, tile=True)
unscrollable "hide"
bar_invert True
init -1 style vscrollbar:
xsize 18
base_bar Frame("gui/scrollbar/vertical_poem_bar.png", tile=False)
thumb Frame("gui/scrollbar/vertical_poem_thumb.png", left=6, top=6, tile=True)
unscrollable "hide"
bar_invert True
init -1 style slider:
ysize 18
base_bar Frame("gui/scrollbar/horizontal_poem_bar.png", tile=False)
thumb "gui/slider/horizontal_hover_thumb.png"
init -1 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"
init -1 style frame:
padding gui.frame_borders.padding
background Frame("gui/frame.png", gui.frame_borders, tile=gui.frame_tile)
init -501 screen say(who, what): # TO!DONE: screen_say!
style_prefix "say"
window:
id "window"
text what id "what"
if who is not None:
window:
style "namebox"
text who id "who"
#if not renpy.variant("small"):
# add SideImage() xalign 0.0 yalign 1.0
use quick_menu
init -1 style window is default
init -1 style say_label is default
init -1 style say_dialogue is default
init -1 style say_thought is say_dialogue
init -1 style namebox is default
init -1 style namebox_label is say_label
init -1 style window: # TO!DONE: или же здесь?
xalign 0.5
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
init -1 style window_monika is window:
background Image("gui/textbox_monika.png", xalign=0.5, yalign=1.0)
init -1 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
init -1 style say_label:
color gui.accent_color
font gui.name_font
size gui.name_text_size
xalign gui.name_xalign
yalign 0.5
outlines [(3, "#b59", 0, 0), (1, "#b59", 1, 1)]
init -1 style say_dialogue: # TO!DONE: фикс положения должен быть здесь?
xpos gui.text_xpos
xanchor gui.text_xalign
xsize gui.text_width
ypos gui.text_ypos
text_align gui.text_xalign
layout ("subtitle" if gui.text_xalign else "tex")
init 499 image ctc:
xalign 0.81 yalign 0.98 xoffset -5 alpha 0.0 subpixel True
"gui/ctc.png"
block:
easeout 0.75 alpha 1.0 xoffset 0
easein 0.75 alpha 0.5 xoffset -5
repeat
init 499 image input_caret:
Solid("#b59")
size (2,25) subpixel True
block:
linear 0.35 alpha 0
linear 0.35 alpha 1
repeat
init -501 screen input(prompt):
style_prefix "input"
window:
has vbox:
xpos gui.text_xpos
xanchor 0.5
ypos gui.text_ypos
text prompt style "input_prompt"
input id "input"
init -1 style input_prompt is default
init -1 style input_prompt:
xmaximum gui.text_width
xalign gui.text_xalign
text_align gui.text_xalign
init -1 style input:
caret "input_caret"
xmaximum gui.text_width
xalign 0.5
text_align 0.5
init -501 screen choice(items):
style_prefix "choice"
vbox:
for i in items:
textbutton i.caption action i.action
define -1 config.narrator_menu = True
init -1 style choice_vbox is vbox
init -1 style choice_button is button
init -1 style choice_button_text is button_text
init -1 style choice_vbox:
xalign 0.5
ypos 270
yanchor 0.5
spacing gui.choice_spacing
init -1 style choice_button is default:
properties gui.button_properties("choice_button")
hover_sound gui.hover_sound
activate_sound gui.activate_sound
init -1 style choice_button_text is default:
properties gui.button_text_properties("choice_button")
outlines []
init -1 python:
def RigMouse():
currentpos = renpy.get_mouse_pos()
targetpos = [640, 345]
if currentpos[1] < targetpos[1]:
renpy.display.draw.set_mouse_pos((currentpos[0] * 9 + targetpos[0]) / 10.0, (currentpos[1] * 9 + targetpos[1]) / 10.0)
init -501 screen rigged_choice(items):
style_prefix "choice"
vbox:
for i in items:
textbutton i.caption action i.action
timer 1.0/30.0 repeat True action Function(RigMouse)
define -1 config.narrator_menu = True
init -1 style choice_vbox is vbox
init -1 style choice_button is button
init -1 style choice_button_text is button_text
init -1 style choice_vbox:
xalign 0.5
ypos 270
yanchor 0.5
spacing gui.choice_spacing
init -1 style choice_button is default:
properties gui.button_properties("choice_button")
hover_sound gui.hover_sound
activate_sound gui.activate_sound
init -1 style choice_button_text is default:
properties gui.button_text_properties("choice_button")
outlines []
init -501 screen quick_menu():
zorder 100
if quick_menu:
hbox:
style_prefix "quick"
xalign 0.5
yalign 0.995
textbutton _("History") action ShowMenu('history')
textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
textbutton _("Auto") action Preference("auto-forward", "toggle")
textbutton _("Save") action ShowMenu('save')
textbutton _("Load") action ShowMenu('load')
textbutton _("Settings") action ShowMenu('preferences')
if config.developer:
textbutton "Devtools" action ShowMenu('_developer')
default -1 quick_menu = True
init -1 style quick_button:
properties gui.button_properties("quick_button")
activate_sound gui.activate_sound
init -1 style quick_button_text:
properties gui.button_text_properties("quick_button")
outlines []
init -1 python:
def FinishEnterName():
if not player: return
persistent.playername = player
renpy.hide_screen("name_input")
renpy.jump_out_of_context("start")
init -501 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:
textbutton _("ŔŗñĮ¼»ŧþŀÂŻŕěōì«") action If(persistent.playername, true=Start(), false=Show(screen="name_input", message="Please enter your name", ok_action=Function(FinishEnterName)))
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)]
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()
textbutton _("Settings") action [ShowMenu("preferences"), SensitiveIf(renpy.get_screen("preferences") == None)]
#Added by AlexAzumi
textbutton _("Characters") action [ShowMenu("characters"), SensitiveIf(renpy.get_screen("characters") == None)]
if renpy.variant("pc"):
textbutton _("Help") action [Help("README.html"), Show(screen="dialog", message="The help file has been opened in your browser.", ok_action=Hide("dialog"))]
textbutton _("Quit") action Quit(confirm=not main_menu) # TO!DONE: now u can exit even on Android!
else:
timer 1.75 action Start("autoload_yurikill")
init -1 style navigation_button is gui_button
init -1 style navigation_button_text is gui_button_text
init -1 style navigation_button:
size_group "navigation"
properties gui.button_properties("navigation_button")
hover_sound gui.hover_sound
activate_sound gui.activate_sound
init -1 style navigation_button_text:
properties gui.button_text_properties("navigation_button")
font "gui/font/RifficFree-Bold.ttf"
color "#fff"
outlines [(4, "#b59", 0, 0), (2, "#b59", 2, 2)]
hover_outlines [(4, "#fac", 0, 0), (2, "#fac", 2, 2)]
insensitive_outlines [(4, "#fce", 0, 0), (2, "#fce", 2, 2)]
init -501 screen main_menu() tag menu:
style_prefix "main_menu"
if persistent.ghost_menu:
add "white"
add "menu_art_y_ghost"
add "menu_art_n_ghost"
else:
add "menu_bg"
add "menu_art_y"
add "menu_art_n"
frame
use navigation
if gui.show_name:
vbox:
text "[config.name!t]":
style "main_menu_title"
text "[config.version]":
style "main_menu_version"
if not persistent.ghost_menu:
add "menu_particles"
add "menu_particles"
add "menu_particles"
add "menu_logo"
if persistent.ghost_menu:
add "menu_art_s_ghost"
add "menu_art_m_ghost"
else:
if persistent.playthrough == 1 or persistent.playthrough == 2:
add "menu_art_s_glitch"
else:
add "menu_art_s"
add "menu_particles"
if persistent.playthrough != 4:
add "menu_art_m"
add "menu_fade"
key "K_ESCAPE" action Quit(confirm=False)
init -1 style main_menu_frame is empty
init -1 style main_menu_vbox is vbox
init -1 style main_menu_text is gui_text
init -1 style main_menu_title is main_menu_text
init -1 style main_menu_version is main_menu_text:
color "#000000"
size 16
outlines []
init -1 style main_menu_frame:
xsize 310
yfill True
background "menu_nav"
init -1 style main_menu_vbox:
xalign 1.0
xoffset -20
xmaximum 800
yalign 1.0
yoffset -20
init -1 style main_menu_text:
xalign 1.0
layout "subtitle"
text_align 1.0
color gui.accent_color
init -1 style main_menu_title:
size gui.title_text_size
init -501 screen game_menu_m():
$ persistent.menu_bg_m = True
add "gui/menu_bg_m.png"
timer 0.3 action Hide("game_menu_m")
init -501 screen game_menu(title, scroll=None):
if main_menu:
add gui.main_menu_background
else:
key "mouseup_3" action Return()
add gui.game_menu_background
style_prefix "game_menu"
frame:
style "game_menu_outer_frame"
has hbox
frame:
style "game_menu_navigation_frame"
frame:
style "game_menu_content_frame"
if scroll == "viewport":
viewport:
scrollbars "vertical"
mousewheel True
draggable True
yinitial 1.0
side_yfill True
has vbox
transclude
elif scroll == "vpgrid":
vpgrid:
cols 1
yinitial 1.0
scrollbars "vertical"
mousewheel True
draggable True
side_yfill True
transclude
else:
transclude
use navigation
if not main_menu and persistent.playthrough == 2 and not persistent.menu_bg_m and renpy.random.randint(0, 49) == 0:
on "show" action Show("game_menu_m")
textbutton _("Return"):
style "return_button"
action Return()
label title
if main_menu:
key "game_menu" action ShowMenu("main_menu")
init -1 style game_menu_outer_frame is empty
init -1 style game_menu_navigation_frame is empty
init -1 style game_menu_content_frame is empty
init -1 style game_menu_viewport is gui_viewport
init -1 style game_menu_side is gui_side
init -1 style game_menu_scrollbar is gui_vscrollbar
init -1 style game_menu_label is gui_label
init -1 style game_menu_label_text is gui_label_text
init -1 style return_button is navigation_button
init -1 style return_button_text is navigation_button_text
init -1 style game_menu_outer_frame:
bottom_padding 30
top_padding 120
background "gui/overlay/game_menu.png"
init -1 style game_menu_navigation_frame:
xsize 280
yfill True
init -1 style game_menu_content_frame:
left_margin 40
right_margin 20
top_margin 10
init -1 style game_menu_viewport:
xsize 920
init -1 style game_menu_vscrollbar:
unscrollable gui.unscrollable
init -1 style game_menu_side:
spacing 10
init -1 style game_menu_label:
xpos 50
ysize 120
init -1 style game_menu_label_text:
font "gui/font/RifficFree-Bold.ttf"
size gui.title_text_size
color "#fff"
outlines [(6, "#b59", 0, 0), (3, "#b59", 2, 2)]
yalign 0.5
init -1 style return_button:
xpos gui.navigation_xpos
yalign 1.0
yoffset -30
init -501 screen about() tag menu:
use game_menu(_("About"), scroll="viewport"):
style_prefix "about"
vbox:
label "[config.name!t]"
text _("Version [config.version!t]\n")
if gui.about:
text "[gui.about!t]\n"
text _("Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]")
define -1 gui.about = ""
init -1 style about_label is gui_label
init -1 style about_label_text is gui_label_text
init -1 style about_text is gui_text
init -1 style about_label_text:
size gui.label_text_size
init -501 screen save() tag menu:
use file_slots(_("Save"))
init -501 screen load() tag menu:
use file_slots(_("Load"))
init -1 python:
def FileActionMod(name, page=None, **kwargs):
if persistent.playthrough == 1 and not persistent.deleted_saves and renpy.current_screen().screen_name[0] == "load" and FileLoadable(name):
return Show(screen="dialog", message="File error: \"characters/sayori.chr\"\n\nThe file is missing or corrupt.",
ok_action=Show(screen="dialog", message="The save file is corrupt. Starting a new game.", ok_action=Function(renpy.full_restart, label="start")))
elif persistent.playthrough == 3 and renpy.current_screen().screen_name[0] == "save":
return Show(screen="dialog", message="There's no point in saving anymore.\nDon't worry, I'm not going anywhere.", ok_action=Hide("dialog"))
else:
return FileAction(name)
init -501 screen file_slots(title):
default page_name_value = FilePageNameInputValue()
use game_menu(title):
fixed:
order_reverse True
button:
style "page_label"
xalign 0.5
input:
style "page_label_text"
value page_name_value
grid gui.file_slot_cols gui.file_slot_rows:
style_prefix "slot"
xalign 0.5
yalign 0.5
spacing gui.slot_spacing
for i in range(gui.file_slot_cols * gui.file_slot_rows):
$ slot = i + 1
button:
action FileActionMod(slot)
has vbox
add FileScreenshot(slot) xalign 0.5
text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
style "slot_time_text"
text FileSaveName(slot):
style "slot_name_text"
key "save_delete" action FileDelete(slot)
hbox:
style_prefix "page"
xalign 0.5
yalign 1.0
spacing gui.page_spacing
for page in range(1, 10):
textbutton "[page]" action FilePage(page)
init -1 style page_label is gui_label
init -1 style page_label_text is gui_label_text
init -1 style page_button is gui_button
init -1 style page_button_text is gui_button_text
init -1 style slot_button is gui_button
init -1 style slot_button_text is gui_button_text
init -1 style slot_time_text is slot_button_text
init -1 style slot_name_text is slot_button_text
init -1 style page_label:
xpadding 50
ypadding 3
init -1 style page_label_text:
color "#000"
outlines []
text_align 0.5
layout "subtitle"
hover_color gui.hover_color
init -1 style page_button:
properties gui.button_properties("page_button")
init -1 style page_button_text:
properties gui.button_text_properties("page_button")
outlines []
init -1 style slot_button:
properties gui.button_properties("slot_button")
init -1 style slot_button_text:
properties gui.button_text_properties("slot_button")
color "#666"
outlines []
#Added by AlexAzumi
init -501 screen characters() tag menu:
use game_menu(_("Files"), scroll ="viewport"):
vbox:
style_prefix "navigation"
xoffset 50
frame:
xpadding 10
ypadding 10
xalign 1
yalign 1
vbox:
label "Characters":
xalign 0.5
text_size 50
null height 10
textbutton "Restore all characters":
action [Function(restore_all_characters), Show(screen="dialog", message="All characters have been restored", ok_action=Hide("dialog"))]
null height 5
textbutton "Delete Monika":
action [Function(delete_character, "monika"), Show(screen="dialog", message="Monika has been deleted", ok_action=Hide("dialog"))]
null height 5
textbutton "Delete Natsuki":
action [Function(delete_character, "natsuki"), Show(screen="dialog", message="Natsuki has been deleted", ok_action=Hide("dialog"))]
null height 5
textbutton "Delete Sayori":
action [Function(delete_character, "sayori"), Show(screen="dialog", message="Sayori has been deleted", ok_action=Hide("dialog"))]
null height 5
textbutton "Delete Yuri":
action [Function(delete_character, "yuri"), Show(screen="dialog", message="Yuri has been deleted", ok_action=Hide("dialog"))]
init -501 screen preferences() tag menu:
if renpy.mobile:
$ cols = 2
else:
$ cols = 4
use game_menu(_("Settings"), scroll="viewport"):
vbox:
xoffset 50
hbox:
box_wrap True
if renpy.variant("pc"):
vbox:
style_prefix "radio"
label _("Display")
textbutton _("Window") action Preference("display", "window")
textbutton _("Fullscreen") action Preference("display", "fullscreen")
if config.developer:
vbox:
style_prefix "radio"
label _("Rollback Side")
textbutton _("Disable") action Preference("rollback side", "disable")
textbutton _("Left") action Preference("rollback side", "left")
textbutton _("Right") action Preference("rollback side", "right")
vbox:
style_prefix "check"
label _("Skip")
textbutton _("Unseen Text") action Preference("skip", "toggle")
textbutton _("After Choices") action Preference("after choices", "toggle")
null height (4 * gui.pref_spacing)
hbox:
style_prefix "slider"
box_wrap True
vbox:
label _("Text Speed")
bar value FieldValue(_preferences, "text_cps", range=180, max_is_zero=False, style="slider", offset=20)