Lua Code:
function OnTargetTest()
local NSize = ZO_TargetUnitFramereticleoverName:GetStringWidth(GetUnitName("reticleover"))
d(NSize)
end
EVENT_MANAGER:RegisterForEvent("TargetMaintenance_T", EVENT_RETICLE_TARGET_CHANGED, OnTargetTest)
why does this spit out 49 on a 6 space name lol it seems like its bugged ... i need it to set
***:SetDimensions(NSize,15) for a Name text field
Im looking at an NPC right now with that function the NPC name is "Riina Balen" - 11 Spaces but with the above function its saying its 85?!?!? lol