I have the splashscreen, and I have the content warning screen, and that all works just fine. The issue is that it isn't waiting for the screen's buttons to be clicked before continuing. If I add a pause, it essentially makes you click twice to continue, for some reason. If I include no pause, it just displays the screen for a little bit, then automatically continues to the main menu.
It's also been skipping over the text after the conditional block, for some reason.
Here is the splashscreen:
Code: Select all
label splashscreen:
scene black
$ persistent.shown_warning = False # This is just so I can see it every time it starts up for testing purposes
if not persistent.shown_warning:
# Show warning here
$ persistent.shown_warning = True
show screen content_warning with dissolve
show text "A story by Tetra Yon" at truecenter with dissolve
with Pause(2)
hide text with dissolve
with Pause(1)
returnCode: Select all
screen content_warning:
frame:
xsize 1280 # The BG image takes up the entire screen
ysize 720
xpos 0
ypos 0
padding (0, 0) # Manually reset padding
background Frame("gui/overlay/pause_bg.png")
vbox:
text '{size=33}(Content warnings here, asks if you want to proceed){/size=33}':
pos (370, 40)
xsize 540 # sets line length
text_align 0.5 # align center
imagebutton:
auto "gui/button/pause_button_left_%s.png"
# YES button
focus_mask True
pos (370,440)
action Return(), With(dissolve)
imagebutton:
auto "gui/button/pause_button_right_%s.png"
# NO button
focus_mask True
pos (650,440)
action Quit()
text "{size=35}Yes{/size}":
pos (380, 455)
min_width 240 # sets line length
text_align 0.5 # align center
text "{size=35}No{/size}":
pos (660, 455)
min_width 240 # sets line length
text_align 0.5 # align center