- Jun 10, 2018
- 6,327
- 22,776
I have an imagebutton to swap scenes (clicked jump), but I want to show dialogue while this button is shown. Any ideas?
Uhh... damn that was too simpledon't call the screen that contains the buttons, just show the screen.
ConditionSwitch()
and:screen k_bj_view:
if pov == True:
textbutton _("change view") action SetVariable("pov", "False")
else:
textbutton _("change view") action SetVariable("pov", "True")
screen k_bj_view:
textbutton _("change view") action ToggleVariable("pov")
define pov = True
screen k_bj_view:
textbutton _("change view") action ToggleVariable("pov") yalign .01 xalign .99
image k_bj = ConditionSwitch(
"pov == 'False'", Movie(play="anim/k_bj2.webm"),
"True", Movie(play="anim/k_bj.webm"))
label bla:
show screen k_bj_view
"some dialogue"
tryHmm, I tried it but the only thing that "toggles" is the button, it's either active or inactive, but the image won't change.
Python:define pov = True screen k_bj_view: textbutton _("change view") action ToggleVariable("pov") yalign .01 xalign .99 image k_bj = ConditionSwitch( "pov == 'False'", Movie(play="anim/k_bj2.webm"), "True", Movie(play="anim/k_bj.webm")) label bla: show screen k_bj_view "some dialogue"
define pov = True
screen k_bj_view:
textbutton _("change view") action ToggleVariable("pov") yalign .01 xalign .99
image k_bj = ConditionSwitch(
"pov is False", Movie(play="anim/k_bj2.webm"),
"True", Movie(play="anim/k_bj.webm"))
label bla:
show screen k_bj_view
show k_bj # you actually have to show your image!
"some dialogue"
Yes, I forgot to include that part here in the post, but it's in the code^^show k_bj # you actually have to show your image!
"pov is False", Movie(play="anim/k_bj2.webm"),
"pov == 'False'", Movie(play="anim/k_bj2.webm"),