It's not there... it's just not!
So I have a custom lag / safezone display for my cast bars, but for some weird reason UNIT_SPELLCAST_SENT event just doesn't fire for objects like Untiled Soil (farm).
and here's the problem:
with normal cast or opening normal objects (like chests or anything else with a cogwheel icon) it's all nice and fancy
http://i.imgur.com/PLiHS.jpg
but when we try to use untiled soil UNIT_SPELLCAST_SENT just never happens
http://i.imgur.com/PaUsc.jpg
lua Code:
cast.OnCastSent = function(self, event, unit, spell, rank)
if self.unit ~= unit or not self.Castbar.SafeZone then return end
self.Castbar.SafeZone.sendTime = GetTime()
--print('DEBUG: sending cast')
end
from
https://github.com/Strigoy/MonoUI/bl...ds/Castbar.lua
lua Code:
lib.gen_castbar = function(f)
local s = CreateFrame("StatusBar", "oUF_monoCastbar"..f.mystyle, f)
...
elseif f.mystyle == "player" then
if cfg.playerCBuserplaced then
s:SetSize(cfg.playerCBwidth,cfg.playerCBheight)
s:SetPoint(unpack(cfg.playerCBposition))
i:SetSize(s:GetHeight()-2,s:GetHeight()-2)
sp:SetHeight(s:GetHeight()*2.5)
else
s:SetPoint("TOPRIGHT",f.Power,"BOTTOMRIGHT",0,-4)
end
--latency only for player unit
local z = s:CreateTexture(nil, "OVERLAY")
z:SetBlendMode("ADD")
z:SetTexture(cfg.statusbar_texture)
-- it should never fill the entire castbar when GetNetStats() returns 0
z:SetVertexColor(.8,.31,.45)
z:SetPoint("TOPRIGHT")
z:SetPoint("BOTTOMRIGHT")
--if UnitInVehicle("player") then z:Hide() end
s.SafeZone = z
--custom latency display
local l = lib.gen_fontstring(s, cfg.font, 10, "THINOUTLINE")
l:SetPoint("CENTER", -2, 16)
l:SetJustifyH("RIGHT")
s.Lag = l
f:RegisterEvent("UNIT_SPELLCAST_SENT", cast.OnCastSent)
elseif f.mystyle == "target" and cfg.targetCBuserplaced then
s:SetSize(cfg.targetCBwidth,cfg.targetCBheight)
s:SetPoint(unpack(cfg.targetCBposition))
i:SetSize(s:GetHeight()-2,s:GetHeight()-2)
sp:SetHeight(s:GetHeight()*2.5)
else
s:SetPoint("TOPRIGHT",f.Power,"BOTTOMRIGHT",0,-4)
end
s.OnUpdate = cast.OnCastbarUpdate
s.PostCastStart = cast.PostCastStart
s.PostChannelStart = cast.PostCastStart
s.PostCastStop = cast.PostCastStop
s.PostChannelStop = cast.PostChannelStop
s.PostCastFailed = cast.PostCastFailed
s.PostCastInterrupted = cast.PostCastFailed
f.Castbar = s
f.Castbar.Text = txt
f.Castbar.Time = t
f.Castbar.Icon = i
f.Castbar.Spark = sp
end
from
https://github.com/Strigoy/MonoUI/bl...F_mono/lib.lua
Am I missing something or is there some workaround for that problem?