Hello all.
Im using a code i found on the web that alows me to adjust nameplate fontsize and also change server Visuals.
Now i want to find a way to
1. change text colour to Always be White
2. move the text offset closer to the nameplate bar (anchor Point)
what is the best way to do this?
Lua Code:
--nameplate font size
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function()
local function SetFont(obj, optSize)
local fontName= obj:GetFont()
obj:SetFont(fontName,optSize,"THINOUTLINE")
end
SetFont(SystemFont_LargeNamePlate,8)
SetFont(SystemFont_NamePlate,8)
SetFont(SystemFont_LargeNamePlateFixed,8)
SetFont(SystemFont_NamePlateFixed,8)
end)
-- no RealmName on nameplates
hooksecurefunc("CompactUnitFrame_UpdateName", function(frame)
if ShouldShowName(frame) then
if frame.optionTable.colorNameBySelection then
frame.name:SetText(GetUnitName(frame.unit))
end
end
end)