Floating text with image
Hi!
Is it possible to have floating text with icons? Example display in game: Some title or other text name1 [D], name2 [H], name3 [T], name4 [D], ... [T] should be icon for tank, [H] healer and [D] damage dealer I know how to place controls with texture/icon in ui but i dont know if i can do it without positioning it absolute with x & y coordinates but in text flow? |
to display an image in text, use
Lua Code:
x is x dimension, y is y dimension, path is a path of your image. can be added by your addon. ex : Lua Code:
core textures are listed on http://wiki.esoui.com/Texture_List to create a dds file, use Paint.net |
There are also a few other things you can do inside text. Just take a look at this wiki page.
In case you plan to create your own textures, keep in mind that they won't show up in the game until you have restarted it when you first create the file. Updates to an existing files are shown after you reload the UI. And also make sure that the dimensions of the texture are a power of 2. Otherwise it cannot be loaded. |
Excellent! That's exactly what I was looking for! Thank you very much!
|
Another way to reach your goal (and possible with nicer look) is to create your controls with text and textures and then animate them with ANIMATION_TRANSLATE and ANIMATION_ALPHA.
Look here: Animation |
Is there any difference to your described "manually" text formatting and the function here:
Lua Code:
|
There is no difference. The function is just placing the parameters into a template string for you. The result is the same.
|
All times are GMT -6. The time now is 09:35 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI