Here is the code I´ve used:
Code: Select all
label start:
jump tips
# Jump to this label from the main menu with Start("tips")
label tips:
call screen tips
init python:
# Styles for the tips screen
style.didac_button.xminimum = 0
style.didac_button_text.color="#ff0"
style.didac_button_text.hover_color = "#060F2C"
style.didac_button_text.font="Comic Book.otf"
style.didac_button.background=None
style.didac_button_text.size=12
style.didac_button_text.hover_size=14
style.didac_button_text.outlines=[(3, "993399", 0,0)]
style.didac_button_text.selected_color="#fff"
style.didac_button_text.spacing = 200
# Tips screen
screen tips():
tag menu
# Include the navigation.
use navigation
# Show the tips background
add "#2C060F"
screen tips():
#tag menu
## Include the navigation. I don´t really understand the use of tag menu and navigation...
#use navigation
# Put the navigation columns in a three-wide grid.
grid 2 1:
style_group "didac"
xalign 1.0
yalign 0.1
# The left column.
vbox:
frame:
background None
style_group "didac"
has vbox
label _("Prelim.")
textbutton "Beso" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Pektos" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Peñones" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Muslos" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "klitor" action If(persistent.unlock_tip_2, Jump("tip_2"))
vbox:
frame:
background None
style_group "didac"
has vbox
textbutton "Quitar Manos" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Beso Francés" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Azotarlos" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Pellizcarlos" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Azotarlos" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Pellizcarlo" action If(persistent.unlock_tip_2, Jump("tip_2"))
grid 3 2:
style_group "didac"
xalign 1.0
yalign .55
vbox:
frame:
background None
style_group "didac"
has vbox
label _("Vagancia")
textbutton "Dedos" action Jump ("tip_2")
textbutton "Lento" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Rápido" action If(persistent.unlock_tip_2, Jump("tip_2"))
vbox:
frame:
background None
style_group "didac"
has vbox
label _("")
textbutton "pora" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Lento" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Rápido" action If(persistent.unlock_tip_2, Jump("tip_2"))
vbox:
frame:
background None
style_group "didac"
has vbox
label _("")
textbutton "Entera" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Lento" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Rápido" action If(persistent.unlock_tip_2, Jump("tip_2"))
vbox:
frame:
background None
style_group "didac"
has vbox
label _("Anol")
textbutton "Dedos" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Lento" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Rápido" action If(persistent.unlock_tip_2, Jump("tip_2"))
vbox:
frame:
background None
style_group "didac"
has vbox
label _("")
textbutton "pora" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Lento" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Rápido" action If(persistent.unlock_tip_2, Jump("tip_2"))
vbox:
frame:
background None
style_group "didac"
has vbox
label _("")
textbutton "Entera" action If(persistent.unlock_tip_2, Jump("tip_2"))
textbutton "Lento" action If(persistent.unlock_tip_1, Jump("tip_1"))
textbutton "Rápido" action If(persistent.unlock_tip_2, Jump("tip_2"))
label end_tips:
return
label tip_1:
"Perhaps you should have checked to see if that was a carton of oatmeal,
or a carton of rat poison."
jump tips
label tip_2:
"She's a TRAP!"
jump tips
Code: Select all
tag menu
# Include the navigation.
use navigation
But I still don´t understand what "tag menu" does...
Apart from that... I saw buttons are always "CENTERED"... I would like to know how left aligned or right aligned them.
Probably too many questions... But I guess these litle last ones are not so complicated...
Probably I´m wrong.
Thanks for your help!