api: merge api calls into environment

This commit is contained in:
shagu
2017-02-26 20:55:22 +01:00
parent 1766dd4ba0
commit 6f7a665ffe
30 changed files with 284 additions and 285 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ pfUI:RegisterModule("buff", function ()
local _, _, mainhand, _, _, offhand = GetWeaponEnchantInfo()
if buff then
pfUI.api:CreateBackdrop(buff)
CreateBackdrop(buff)
icon:SetTexCoord(.08, .92, .08, .92)
border:Hide()
end
@@ -111,7 +111,7 @@ pfUI:RegisterModule("buff", function ()
elseif i > 16 then
buff:SetPoint("TOPRIGHT", _G["BuffButton" .. i-1], "TOPLEFT", -7, 0)
end
pfUI.api:CreateBackdrop(buff)
CreateBackdrop(buff)
text:SetPoint("TOP", buff, "BOTTOM", 0 , -C.appearance.border.default*2)
icon:SetTexCoord(.08, .92, .08, .92)
if border then