Thread: 2.6 Update
View Single Post
09/08/16, 06:28 AM   #18
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Originally Posted by Sounomi View Post
Is there any way you could add the ability to colorize the texture that's embedded in the text string? There's some cases where that could be pretty useful.
This is already possible:
Lua Code:
  1. local function GetColoredIconFormat(texture, size, color)
  2.     local icon = zo_iconFormatInheritColor(texture, size, size)
  3.     return ("|c%s%s|r"):format(color:ToHex(), icon)
  4. end
  Reply With Quote