I am using LibRangeCheck for an addon. I created a frame and output the range to this frame. The text is updated via OnUpdate(). The problem I am having is that the text writes on top of the previous text without any clearing of the text. Is there any way to fix this?
Code:
function OrbMaster:CheckHaloRange()
local minRange, maxRange = rc:GetRange('target')
distanceFrame:Show()
if minRange and maxRange then
local t = distanceFrame:CreateFontString(nil, "BACKGROUND")
t:SetFont("Fonts\\FRIZQT__.TTF", 12, "OUTLINE")
t:SetPoint("CENTER")
t:SetJustifyH("CENTER")
t:SetText(minRange .. "-" .. maxRange .. " yds")
end
end