tbc: add initial version of the tbc compat module

This commit is contained in:
shagu
2018-09-28 22:43:57 +02:00
parent 4f2bfe7385
commit 0d993806e6
2 changed files with 19 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
if GetBuildInfo() ~= "2.4.3" then return end
message("TBC compat module loaded. Good Luck!")
-- load pfUI environment
setfenv(1, pfUI:GetEnvironment())
-- the "MiniMapTrackingFrame" is called "MiniMapTracking"
pfUI.api.MiniMapTrackingFrame = _G.MiniMapTracking
-- blacklist pfUI functions
pfUI.api.hooksecurefunc = nil
pfUI.api.select = nil
-- tbc removed the offset of -1
function pfUI.api.GetPlayerBuff(id, btype)
return _G.GetPlayerBuff(id+1, btype)
end
+1
View File
@@ -34,6 +34,7 @@ env\profiles.lua
# api
api\api.lua
api\tbc.lua
api\config.lua
api\ui-widgets.lua
api\unitframes.lua