However it doesn't seem to work for me, and I'm not sure if this is outdated information. This is what I have:
Code: Select all
init python:
style.window.background = ConditionSwitch(
"frame == 1", Frame("images/textbox1.png", 616, 216),
"frame == 2", Frame("images/textbox2.png", 616, 216),
"frame == 3", Frame("images/textbox3.png", 616, 216),
)
label start:
$ frame = 1
"This uses the first frame"
$ frame = 2
"This uses the second frame"
$ frame = 3
"This uses the third frame"
return
I have also put the images in gui/, but this does not work either.
What am I doing wrong?