First one is getting my game to use a style.
I have a bright spot in a background under some white text. I would like to give the text box a dark background to make it readable. I've tried setting up a style with the dark background. But the game isn't showing it.
What am I doing wrong?
The styles are in one file while the screen is in another file if that helps.
Code: Select all
init offset = -1
style CharProfile_hbox:
spacing 50
style CharProfile_vbox:
background Solid("#0008")
style CPBack:
background Solid("#0008")
Code: Select all
screen CharacterProfile(pic, name, gender, orientation, description):
tag CharSelection
style_prefix "CharProfile"
default Pronoun = "Her"
if gender == "Male":
$ Pronoun = "Him"
hbox:
yalign 0.5
xalign 0.5
spacing 40
add pic
vbox:
yalign 0.25
xmaximum 0.25
grid 2 3:
text "Name:"
text name
text "Gender:"
text gender
text "Orientation:"
text orientation
text "Description: [description]"
text "Do you want to choose [Pronoun]?"
hbox:
textbutton "Yes" action Return()
textbutton "No" action Jump("Selection")
Example Style:
Code: Select all
style EventButton:
background TintMatrix("#f00")