Imagebuttons and the 'New GUI' [SOLVED]
Posted: Thu Mar 02, 2017 2:27 pm
No matter how hard I try, I can't put an imagebutton on my main menu screen.
If anyone has an idea what I might be doing wrong, please help!
I tried
as I've seen it screen language documentation, but it doesn't work either.
This is what I get:
(Of course I replaced button name and URL name in this post.)
If anyone has an idea what I might be doing wrong, please help!
Code: Select all
screen main_menu():
imagebutton auto "mybutton_%s.png" xalign 1.0 yalign 0.9 action OpenURL("myURL")Code: Select all
screen main_menu():
vbox xalign 1.0 yalign 1.0:
imagebutton auto "mybutton_%s.png" action OpenURL("myURL")This is what I get:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/screens.rpy", line 360, in execute
screen main_menu():
File "game/screens.rpy", line 360, in execute
screen main_menu():
File "game/screens.rpy", line 362, in execute
vbox xalign 1.0 yalign 1.0:
File "game/screens.rpy", line 363, in execute
imagebutton auto "mybutton_%s.png" action OpenURL("myURL")
Exception: Not a displayable: None