According to this page:
http://www.renpy.org/wiki/renpy/doc/ref ... i.interact
There's that code on bottom, but it doesn't work for some reason with my own code.
Example code:
My own code:
Button is there, but it just vanishes after being clicked. Game gets stuck with blank screen when i try to set results variable, i can go back but can't go past that $ result = ui.interact(). Game does not give any errors.
Anyone know what's going on?
I managed to fix it, you don't need to add "ui.interact()" after button.. looks like i got confused with this one.
http://www.renpy.org/wiki/renpy/doc/ref ... i.interact
There's that code on bottom, but it doesn't work for some reason with my own code.
Example code:
Code: Select all
$ ui.vbox(xalign=0.5, yalign=0.5)
$ ui.textbutton("Choice 1", clicked=ui.returns(1))
$ ui.textbutton("Choice 2", clicked=ui.returns(2))
$ ui.close()
$ result = ui.interact()
if result == 1:
"You picked choice 1!"
else:
"Choice 2 was for you!"Code: Select all
python:
if slot6[1] > 0:
ui.frame(xpos=.5875,ypos=.55)
ui.imagebutton("images/button1.png", "images/button_hover1.png", clicked=ui.returns(6))
ui.interact()
$ result = ui.interact()Anyone know what's going on?
Code: Select all
python:
ui.frame(xalign=.5,yalign=.5)
ui.imagebutton("button.png", "button_hover.png", clicked=ui.returns(1))
ui.interact()
# Tip : You can use the same image twice if you don't want any hover effect.
#