I've watched the tutorial on screens as well as the passing parameters into screens, but I'm stumped. I have the following code:
Code: Select all
menu:
"What is your hair color?"
"Black":
$ hair_color = "Black"
"Brown":
$ hair_color = "Brown"
"Blonde":
$ hair_color = "Blonde"
"Red":
$ hair_color = "Red"
label after_hair:
menu:
"Are you tall or short?"
"Tall":
$ height = "Tall"
"Short":
$ height = "Short"
"Average":
$ height = "Average"
label after_height:
screen profile_screen(hair_color, height, close=Return(True)):
frame:
xalign 0.5 ypos 50
vbox:
text _("Hair Color: [hair_color]. \nHeight: [height].")
textbutton _("Close"):
action close
call screen profile_screen([hair_color], [height])
"Finished"

If I selected brown hair, the value of "Brown" gets loaded into $ hair_color, so why is it being displayed as [u'Brown']? I tried the same syntax from the tutorial and that yields the same issue. Am I not doing something with the variables correctly? I'm using some variables in my current project, so this would be good to learn and clear up, as maybe I'm missing something.