If i mouse over a dialog-button i want it to show the costs of a unit. In the text file i used the mineral logo, but it's too big, how can i make it smaller?
Text is a formatted string, just append that "<img path="Assets\Textures\icon-mineral.dds" width="32" height="32"/>" part and you're good to go. It will be on the same line and usually good for icon as it cant be stretched too big
If i mouse over a dialog-button i want it to show the costs of a unit. In the text file i used the mineral logo, but it's too big, how can i make it smaller?
Thx in advance!
take example from UI part of actors - texts: mineral text +100
when you put image in text it is something like that:
"img source(?)=[image path here]"
add height and width beetween " " as well:
"img source(?)=[image path here] width=32 height=32"
i've put (?) coz im not sure if it's source but you should have that part already
@Xyfi: Go
Are you trying to have both an image and text in the tooltip at the same time? Cos I've heard that it's not possible. =/
So, you mean i have to do this? Because it doesn't work :S.
<img path="Assets\Textures\icon-mineral.dds width=32 height=32"/>
@FuzzYD It is possible, but didn't manage to change the size yet.
Sry my bad, it should go like this:
<img path="Assets\Textures\icon-mineral.dds" width="32" height="32"/>
You may need to use styles to change text font as well.
@uiasdnmb: Go
Thanks a lot! :D
@Xyfi: Go
Sweet. Whats the string you're using? Just to get a clear idea on how you combined an image with text.
@FuzzYD: Go
Text is a formatted string, just append that "<img path="Assets\Textures\icon-mineral.dds" width="32" height="32"/>" part and you're good to go. It will be on the same line and usually good for icon as it cant be stretched too big
Its not at the same time, what i mean is at the same place, like write text in front of a background image. The image is considered a character