I already has this hook. at line 148-180 ^^ and the problem is the "ms" text is not appearing
Code:
local function UpdateChannelStart(self, event, unit, name, rank, text)
if (self.Castbar.Latency) then
self.Castbar.Latency:ClearAllPoints()
self.Castbar.Latency:SetPoint('LEFT', self.Castbar, 'BOTTOMLEFT', 1, -1)
local _, _, ms = GetNetStats()
self.Castbar.Latency:SetText(ms..'ms')
end
if (self.Castbar.SafeZone) then
self.Castbar.SafeZone:SetDrawLayer('ARTWORK')
self.Castbar.SafeZone:SetPoint('TOPLEFT', self.Castbar)
self.Castbar.SafeZone:SetPoint('BOTTOMLEFT', self.Castbar)
end
end
-- custom casting function
local function UpdateCastStart(self, event, unit, name, rank, text, castid)
if (self.Castbar.Latency and unit == 'player') then
self.Castbar.Latency:ClearAllPoints()
self.Castbar.Latency:SetPoint('RIGHT', self.Castbar, 'BOTTOMRIGHT', -1, -1)
local _, _, ms = GetNetStats()
self.Castbar.Latency:SetText(ms..'ms')
end
if (self.Castbar.SafeZone) then
self.Castbar.SafeZone:SetDrawLayer('BORDER')
self.Castbar.SafeZone:SetPoint('TOPRIGHT', self.Castbar)
self.Castbar.SafeZone:SetPoint('BOTTOMRIGHT', self.Castbar)
end
end