LF help with UIErrorsFrame:AddMessage
I my addon i have something like that:
UIErrorsFrame:AddMessage("Casted Cyclone on" .. UnitName("Target") .. "!!", 1.0, 2.0, 1.0, 53, 3); Well i need help with next things: 1. How-to replace Cyclone with icon . 2. How-to print target name colored. 3. How-to make size of text more bigger. Any ideas please? |
The text size is dictated by UIErrorsFrame itself, I don't think you can change the size of an individual line.
As for the icon, I don't think you can dynamically get the file path to use in the texture escape sequence if you were looking to code for any spell, but you can look up the file name on wowhead by finding the icon ID. Code:
Cyclone spell ID is 33786: Code:
local guid,_,class,color=UnitGUID("target") Lua Code:
|
Quote:
|
All times are GMT -6. The time now is 03:12 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI