Commit a2fc9e8b authored by Tukz's avatar Tukz

We don't really need ONENTER script in FPS/MS datatext.

parent 0606d9c4
......@@ -27,27 +27,12 @@ local Update = function(self, t)
tslu = 1
end
local OnEnter = function(self)
if InCombatLockdown() then
return
end
local _, _, HomeLatency, WorldLatency = GetNetStats()
local Latency = MAINMENUBAR_LATENCY_LABEL, HomeLatency, WorldLatency
GameTooltip:SetOwner(self:GetTooltipAnchor())
GameTooltip:ClearLines()
GameTooltip:AddLine(Latency.." "..HomeLatency)
GameTooltip:Show()
end
local OnLeave = function()
GameTooltip:Hide()
end
local Enable = function(self)
self:SetScript("OnUpdate", Update)
self:SetScript("OnEnter", OnEnter)
self:SetScript("OnLeave", OnLeave)
self:Update(1)
end
......@@ -55,7 +40,6 @@ end
local Disable = function(self)
self.Text:SetText("")
self:SetScript("OnUpdate", nil)
self:SetScript("OnEnter", nil)
self:SetScript("OnLeave", nil)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment