modules: make all modules aware of the new borders

This commit is contained in:
shagu
2019-12-18 18:54:09 +01:00
parent a75204540e
commit 3334c7469f
31 changed files with 70 additions and 143 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
pfUI:RegisterModule("addons", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
-- add main menu button
local pfUIAddonButton = CreateFrame("Button", "GameMenuButtonPFUIAddOns", GameMenuFrame, "GameMenuButtonTemplate")
pfUIAddonButton:SetPoint("TOP", 0, -32)
@@ -47,7 +49,7 @@ pfUI:RegisterModule("addons", "vanilla:tbc", function ()
pfUI.addons.caption:SetText(T["Addon List"])
pfUI.addons.close = CreateFrame("Button", "pfBagClose", pfUI.addons)
pfUI.addons.close:SetPoint("TOPRIGHT", -C.appearance.border.default*2,-C.appearance.border.default*2 )
pfUI.addons.close:SetPoint("TOPRIGHT", -border*2,-border*2 )
CreateBackdrop(pfUI.addons.close)
pfUI.addons.close:SetHeight(15)
pfUI.addons.close:SetWidth(15)