Code: Select all
screen warning():
add "BG/Menus/splash_warning.png"
modal True
hbox:
xalign 0.5
yalign 0.85
spacing 20
imagebutton auto "BG/Menus/warn_continue_%s.png" action [Hide("warning", transition=dissolve), Return()]
imagebutton auto "BG/Menus/warn_quit_%s.png" action Quit(confirm=False)
screen seizure_warning():
add "BG/Menus/splash_seizure_warning.png"
modal True
label splashscreen:
scene black with dissolve
$ renpy.pause (2, hard=True)
show logo with dissolve
$ renpy.pause (1, hard=True)
show mattmal at slideleft
show gameby at slideright
$ renpy.pause (3, hard=True)
scene black with dissolve
$ renpy.pause (2, hard=True)
show artby at slideright
show bull at slideleft
$ renpy.pause (3, hard=True)
scene black with dissolve
show seizure_warning
with dissolve
$ renpy.pause(3, hard=True)
scene black with dissolve
call screen warning()
with dissolve
$ renpy.pause(hard=True)
Also, there is another issue I am having later in the game where I've added an imagebutton to the quickmenu that pulls up a screen that shows various in-game info. The button works as intended, however it has the same issue of the game still skipping behind the screen since modal no longer does anything seemingly.
Code: Select all
screen palbutton():
hbox xalign 0.85 yalign 0.70:
spacing 10
imagebutton auto "Pal/Icons/gem_%s.png" action [SetVariable("myLoc", "stats"), SelectedIf(myLoc== "stats"), Show("stats_screen")]:
focus_mask True
imagebutton auto "Pal/Icons/load_%s.png" action ShowMenu("load"):
focus_mask True
imagebutton auto "Pal/Icons/save_%s.png" action ShowMenu("save"):
focus_mask True
imagebutton auto "Pal/Icons/settings_%s.png" action ShowMenu("preferences"):
focus_mask True
screen stats_screen():
add "Pal/Screens/stats_screen.png"
zorder 100
modal True
vbox xalign 0.99:
spacing 10
imagebutton auto "Pal/Buttons/stats_button_%s.png" action [SetVariable("myLoc", "stats"), SelectedIf(myLoc== "stats"), Hide("stats_screen"),Show("stats_screen")]:
focus_mask True
# imagebutton auto "Pal/Buttons/inventory_button_%s.png" action NullAction():
# focus_mask True
imagebutton auto "Pal/Buttons/characters_button_%s.png" action [SetVariable("myLoc", "contacts"), SelectedIf(myLoc== "contacts"), Hide("stats_screen"),Show("contacts")]:
focus_mask True
# imagebutton auto "Pal/Buttons/lore_button_%s.png" action [SetVariable("myLoc", "lore"), SelectedIf(myLoc== "lore"), Hide("stats_screen"),Show("lore")]:
# focus_mask True
imagebutton auto "Pal/Buttons/return_button_%s.png" action [Hide("stats_screen"), SetVariable("myLoc", None), Return()]:
xalign 0.99 yalign 0.99
focus_mask True