I'm missing something, neither of these worked for me. Could you show the code you got to work to display text over an imagebutton, please?
[UPDATE:]
After going back to it with a less weary brain, I finally got it to work using remix's method, as it required almost zero modification to my preexisting code.
The 2 following variations worked out just fine and dandy. And a screenshot to show it in use, if anyone else needs to see an example. Oh, and I used "textbutton" instead of "text", because I have it set to use a certain font.
A big thank you to everyone here!
Code: Select all
screen booty2():
fixed:
imagebutton xalign 0.01 ypos 650:
idle "gui/treasure_chest_gui_idle.png"
hover "gui/treasure_chest_gui_hover.png"
action [Show ("booty"), Hide ("booty2")]
textbutton _("{color=#000000}{size=-20}$[money]{/size}{/color}") xalign 0.085 ypos 760
OR, using the auto variant for imagebutton:
Code: Select all
screen booty2():
fixed:
imagebutton auto "gui/treasure_chest_gui_%s.png":
xalign 0.01
ypos 650
action [Show ("booty"), Hide ("booty2")]
textbutton _("{color=#000000}{size=-20}$[money]{/size}{/color}") xalign 0.085 ypos 760