Hi guyz.
I want to show and change the color of the Threat Region of nameplates, that texture that glows with aggro changes etc.
Once I have intercepted the nameplate, I get the Threat Region and then I do a SetVertexColor(0, 1, 0, 1) on it and a Show() to show it in green, but when I do it, nothing happens, the texture doesn't appears. I'm sure I get the region correctly (I saw it on LibNameplate's source code). I also get other regions correctly (name, level, etc).
This is basically what I do
Lua Code:
local function GetThreatRegion(Plate)
return select(1, (Plate:GetChildren()):GetRegions())
end
TheNameplate:SetScript("OnShow", function(Plate)
GetThreatRegion(Plate):SetVertexColor(0, 1, 0, 1)
GetThreatRegion(Plate):Show()
)
Anybody that has worked with nameplates knows why?