mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-19 11:00:50 +00:00
tbc: override libdebuff by native api call
This commit is contained in:
+10
-1
@@ -34,12 +34,21 @@ function pfUI.api.CreateFrame(f, n, p, t)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- tbc changed the return values
|
-- fake vanilla UnitBuff return values
|
||||||
function pfUI.api.UnitBuff(unitstr, i)
|
function pfUI.api.UnitBuff(unitstr, i)
|
||||||
local name, rank, icon, count = _G.UnitBuff(unitstr, i)
|
local name, rank, icon, count = _G.UnitBuff(unitstr, i)
|
||||||
return icon, count
|
return icon, count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- fake vanilla UnitDebuff return values
|
||||||
|
function pfUI.api.UnitDebuff(unitstr, i)
|
||||||
|
local name, rank, texture, stacks, dtype, duration, timeLeft = _G.UnitDebuff(unitstr, i)
|
||||||
|
return texture, stacks, dtype
|
||||||
|
end
|
||||||
|
|
||||||
|
-- use native UnitDebuff instead of libdebuff emulation
|
||||||
|
pfUI.api.libdebuff = { ["UnitDebuff"] = _G.UnitDebuff }
|
||||||
|
|
||||||
-- blacklist unrequired modules
|
-- blacklist unrequired modules
|
||||||
pfUI.module.autoshift = true
|
pfUI.module.autoshift = true
|
||||||
pfUI.module.itemclick = true
|
pfUI.module.itemclick = true
|
||||||
|
|||||||
Reference in New Issue
Block a user