screen oglavlenie_button: # button
imagebutton:
xalign 1.0
yalign 1.0
idle "gui/button/oglavlenie_but.png"
action Show ("oglavlenie") # name of Content screen
screen oglavlenie:
modal True
zorder 101
# Fade the background:
add Color((0, 0, 0, 125)) size (config.screen_width,config.screen_height)
frame:
background ("gui/oglavlenie.png")
xalign .5
yalign .5
xsize 850
ysize 1080
padding(40,120,30,40) # text border
imagebutton: # close button
xalign 1.0
yalign -0.1
idle "gui/button/oglavlenie_close.png"
hover "gui/button/oglavlenie_close_hover.png"
action Hide("oglavlenie")
vbox: # Content screen
xalign .07
hbox:
text "Chapter 1"
textbutton "{b}Title 1{/b} Description." action Jump("chapter_1") padding(15,0,10,20)
hbox:
text "Chapter 2"
textbutton "{b}Title 2{/b} Description." action Jump("chapter_2") padding(15,0,10,20)
# The game starts here.
label start:
show screen oglavlenie_button
label chapter_1:
scene image_001 with dissolve
narrator "Text 1 here {nw}"
narrator "Text 2 here"
nvl clear
label chapter_2:
scene image_002 with dissolve
narrator "Text 1 here {nw}"
narrator "Text 2 here"
# This ends the game.
return