I found that I could use a Vbox like this:
Code: Select all
$my_vbox = VBox(image, image2)
imagebutton auto "images/stuff/button_%s.png" foreground my_vbox action
how could I tell it to treat an argument as an image or a text (or I guess as any other displayable supported by vbox?)
Another option I tried was to init my displayable as something, but then how I tell renpy that it should be hidden (not added to scene) unless it is used as the foreground element it was meant to be?
Code: Select all
vbox as my_vbox:
add image
text "the name"
imagebutton auto "images/stuff/button_%s.png" foreground my_vbox action
#doing like this will add my_vbox twice because I am adding 2 children
![Smile :)](./images/smilies/icon_smile.gif)