Forum Discussion

francoismarais's avatar
francoismarais
Community Member
3 years ago

Button with text and image

Hello a tutti

I would like to make a rectangular button containing both an icon and a text underneath



and I don't see how to do it in the same object. the two overlap.
be careful, I want to use an image of mine as an icon

with a button a ST360, impossible to do that even with an icon from the pack icon of ST360

thanks

François

  • You can turn any object into a button by adding triggers to it. Here's how I'd create the button you want: 

    • Insert a rectangle shape, filled with the desired color. 
    • Enter the name (for example, "REPLAY"). 
    • Adjust the text-box margins for the shape so the name appears at the bottom.

    • Go into Edit States mode. Insert an icon, and place it over the shape. (That's right: when you're in Edit States mode, whatever you insert becomes part of that State.)

    • As desired, duplicate that state and make whatever adjustments you want to color, etc. 
  • Yes,

    this is indeed a good solution.
    
    it should be possible to do it in basic objects without having to tinker each time
    
    Thank you very much