mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-11 16:10:01 +00:00
rename config variable
This commit is contained in:
+36
-36
@@ -44,8 +44,8 @@ PetActionBarFrame:SetParent(pfUI.bars.pet)
|
||||
|
||||
pfUI.bars:SetScript("OnEvent", function()
|
||||
local bpc = 1; if MultiBarBottomLeft:IsShown() then bpc = bpc + 1 end -- bottom panel count
|
||||
pfUI.bars.bottom:SetWidth(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 12 + pfUI.config.bars.border * 12)
|
||||
pfUI.bars.bottom:SetHeight(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * bpc + pfUI.config.bars.border * bpc)
|
||||
pfUI.bars.bottom:SetWidth(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 12 + pfUI_config.bars.border * 12)
|
||||
pfUI.bars.bottom:SetHeight(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * bpc + pfUI_config.bars.border * bpc)
|
||||
|
||||
PetActionBar_Update()
|
||||
if (PetHasActionBar()) then
|
||||
@@ -55,21 +55,21 @@ pfUI.bars:SetScript("OnEvent", function()
|
||||
pfUI.bars.pet:SetFrameStrata("LOW")
|
||||
pfUI.bars.pet:SetPoint("BOTTOM", pfUI.bars.bottom, "TOP", 0, 5)
|
||||
pfUI.bars.pet:SetBackdrop(pfUI.backdrop)
|
||||
pfUI.bars.pet:SetWidth(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 10 + pfUI.config.bars.border * 10)
|
||||
pfUI.bars.pet:SetHeight(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 1 + pfUI.config.bars.border)
|
||||
pfUI.bars.pet:SetWidth(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 10 + pfUI_config.bars.border * 10)
|
||||
pfUI.bars.pet:SetHeight(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 1 + pfUI_config.bars.border)
|
||||
|
||||
PetActionBarFrame:ClearAllPoints()
|
||||
PetActionBarFrame:SetAllPoints(pfUI.bars.pet)
|
||||
|
||||
PetActionButton1:ClearAllPoints()
|
||||
PetActionButton1:SetParent(pfUI.bars.pet)
|
||||
PetActionButton1:SetPoint("BOTTOMLEFT", pfUI.config.bars.border*2, pfUI.config.bars.border*2)
|
||||
PetActionButton1:SetPoint("BOTTOMLEFT", pfUI_config.bars.border*2, pfUI_config.bars.border*2)
|
||||
for i=2, 10 do
|
||||
local b = getglobal("PetActionButton"..i)
|
||||
local b2 = getglobal("PetActionButton"..i-1)
|
||||
b:SetAllPoints(pfUI.bars.pet)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI.config.bars.border, 0)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI_config.bars.border, 0)
|
||||
end
|
||||
else
|
||||
pfUI.bars.pet:Hide()
|
||||
@@ -80,7 +80,7 @@ pfUI.bars:SetScript("OnEvent", function()
|
||||
|
||||
ShapeshiftButton1:ClearAllPoints()
|
||||
ShapeshiftButton1:SetParent(pfUI.bars.shapeshift)
|
||||
ShapeshiftButton1:SetPoint("BOTTOMLEFT", pfUI.config.bars.border*2, pfUI.config.bars.border*2)
|
||||
ShapeshiftButton1:SetPoint("BOTTOMLEFT", pfUI_config.bars.border*2, pfUI_config.bars.border*2)
|
||||
local shapeshiftbuttons = 0
|
||||
if ShapeshiftButton1:IsShown() then
|
||||
shapeshiftbuttons = 1
|
||||
@@ -94,15 +94,15 @@ pfUI.bars:SetScript("OnEvent", function()
|
||||
b:SetAllPoints(pfUI.bars.shapeshift)
|
||||
b:SetParent(pfUI.bars.shapeshift)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI.config.bars.border, 0)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI_config.bars.border, 0)
|
||||
if b:IsShown() then shapeshiftbuttons = shapeshiftbuttons + 1 end
|
||||
end
|
||||
|
||||
pfUI.bars.shapeshift:SetFrameStrata("LOW")
|
||||
pfUI.bars.shapeshift:SetPoint("BOTTOM", pfUI.bars.bottom, "TOP", 0, 5)
|
||||
pfUI.bars.shapeshift:SetBackdrop(pfUI.backdrop)
|
||||
pfUI.bars.shapeshift:SetWidth(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * shapeshiftbuttons + pfUI.config.bars.border * shapeshiftbuttons)
|
||||
pfUI.bars.shapeshift:SetHeight(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 1 + pfUI.config.bars.border)
|
||||
pfUI.bars.shapeshift:SetWidth(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * shapeshiftbuttons + pfUI_config.bars.border * shapeshiftbuttons)
|
||||
pfUI.bars.shapeshift:SetHeight(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 1 + pfUI_config.bars.border)
|
||||
|
||||
if SHOW_MULTI_ACTIONBAR_1 then
|
||||
MultiBarBottomLeft:SetParent(pfUI.bars.bottom)
|
||||
@@ -110,12 +110,12 @@ pfUI.bars:SetScript("OnEvent", function()
|
||||
MultiBarBottomLeft:SetAllPoints(pfUI.bars.bottom)
|
||||
|
||||
MultiBarBottomLeftButton1:ClearAllPoints()
|
||||
MultiBarBottomLeftButton1:SetPoint("BOTTOM", ActionButton1, "TOP", 0, pfUI.config.bars.border)
|
||||
MultiBarBottomLeftButton1:SetPoint("BOTTOM", ActionButton1, "TOP", 0, pfUI_config.bars.border)
|
||||
for i=2, 12 do
|
||||
local b = getglobal("MultiBarBottomLeftButton"..i)
|
||||
local b2 = getglobal("MultiBarBottomLeftButton"..i-1)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI.config.bars.border, 0)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI_config.bars.border, 0)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -124,26 +124,26 @@ pfUI.bars:SetScript("OnEvent", function()
|
||||
pfUI.bars.bottomleft:SetFrameStrata("LOW")
|
||||
pfUI.bars.bottomleft:SetPoint("BOTTOMRIGHT", pfUI.bars.bottom, "BOTTOMLEFT", -5, 0)
|
||||
pfUI.bars.bottomleft:SetBackdrop(pfUI.backdrop)
|
||||
pfUI.bars.bottomleft:SetWidth(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 6 + pfUI.config.bars.border * 6)
|
||||
pfUI.bars.bottomleft:SetHeight(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 2 + pfUI.config.bars.border * 2)
|
||||
pfUI.bars.bottomleft:SetWidth(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 6 + pfUI_config.bars.border * 6)
|
||||
pfUI.bars.bottomleft:SetHeight(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 2 + pfUI_config.bars.border * 2)
|
||||
|
||||
MultiBarBottomRight:SetParent(pfUI.bars.bottomleft)
|
||||
MultiBarBottomRight:ClearAllPoints()
|
||||
MultiBarBottomRight:SetAllPoints(pfUI.bars.bottomleft)
|
||||
|
||||
MultiBarBottomRightButton1:ClearAllPoints()
|
||||
MultiBarBottomRightButton1:SetPoint("BOTTOMLEFT", pfUI.config.bars.border*2, pfUI.config.bars.border*2)
|
||||
MultiBarBottomRightButton1:SetPoint("BOTTOMLEFT", pfUI_config.bars.border*2, pfUI_config.bars.border*2)
|
||||
for i=2, 6 do
|
||||
local b = getglobal("MultiBarBottomRightButton"..i)
|
||||
local b2 = getglobal("MultiBarBottomRightButton"..i-1)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI.config.bars.border, 0)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI_config.bars.border, 0)
|
||||
end
|
||||
for i=7, 12 do
|
||||
local b = getglobal("MultiBarBottomRightButton"..i)
|
||||
local b2 = getglobal("MultiBarBottomRightButton"..i-6)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", -pfUI.config.bars.icon_size, pfUI.config.bars.icon_size + pfUI.config.bars.border)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", -pfUI_config.bars.icon_size, pfUI_config.bars.icon_size + pfUI_config.bars.border)
|
||||
end
|
||||
else
|
||||
pfUI.bars.bottomleft:Hide()
|
||||
@@ -154,26 +154,26 @@ pfUI.bars:SetScript("OnEvent", function()
|
||||
pfUI.bars.bottomright:SetFrameStrata("LOW")
|
||||
pfUI.bars.bottomright:SetPoint("BOTTOMLEFT", pfUI.bars.bottom, "BOTTOMRIGHT", 5, 0)
|
||||
pfUI.bars.bottomright:SetBackdrop(pfUI.backdrop)
|
||||
pfUI.bars.bottomright:SetWidth(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 6 + pfUI.config.bars.border * 6)
|
||||
pfUI.bars.bottomright:SetHeight(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 2 + pfUI.config.bars.border * 2)
|
||||
pfUI.bars.bottomright:SetWidth(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 6 + pfUI_config.bars.border * 6)
|
||||
pfUI.bars.bottomright:SetHeight(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 2 + pfUI_config.bars.border * 2)
|
||||
|
||||
MultiBarRight:SetParent(pfUI.bars.bottomright)
|
||||
MultiBarRight:ClearAllPoints()
|
||||
MultiBarRight:SetAllPoints(pfUI.bars.bottomright)
|
||||
|
||||
MultiBarRightButton1:ClearAllPoints()
|
||||
MultiBarRightButton1:SetPoint("BOTTOMLEFT", pfUI.config.bars.border*2, pfUI.config.bars.border*2)
|
||||
MultiBarRightButton1:SetPoint("BOTTOMLEFT", pfUI_config.bars.border*2, pfUI_config.bars.border*2)
|
||||
for i=2, 6 do
|
||||
local b = getglobal("MultiBarRightButton"..i)
|
||||
local b2 = getglobal("MultiBarRightButton"..i-1)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI.config.bars.border, 0)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI_config.bars.border, 0)
|
||||
end
|
||||
for i=7, 12 do
|
||||
local b = getglobal("MultiBarRightButton"..i)
|
||||
local b2 = getglobal("MultiBarRightButton"..i-6)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", -pfUI.config.bars.icon_size, pfUI.config.bars.icon_size + pfUI.config.bars.border)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", -pfUI_config.bars.icon_size, pfUI_config.bars.icon_size + pfUI_config.bars.border)
|
||||
end
|
||||
else
|
||||
pfUI.bars.bottomright:Hide()
|
||||
@@ -184,20 +184,20 @@ pfUI.bars:SetScript("OnEvent", function()
|
||||
pfUI.bars.vertical:SetFrameStrata("LOW")
|
||||
pfUI.bars.vertical:SetPoint("RIGHT", -5, 0)
|
||||
pfUI.bars.vertical:SetBackdrop(pfUI.backdrop)
|
||||
pfUI.bars.vertical:SetWidth(pfUI.config.bars.border*4 + pfUI.config.bars.icon_size)
|
||||
pfUI.bars.vertical:SetHeight(pfUI.config.bars.border*3 + pfUI.config.bars.icon_size * 12 + pfUI.config.bars.border * 12)
|
||||
pfUI.bars.vertical:SetWidth(pfUI_config.bars.border*4 + pfUI_config.bars.icon_size)
|
||||
pfUI.bars.vertical:SetHeight(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 12 + pfUI_config.bars.border * 12)
|
||||
|
||||
MultiBarLeft:SetParent(pfUI.bars.vertical)
|
||||
MultiBarLeft:ClearAllPoints()
|
||||
MultiBarLeft:SetAllPoints(pfUI.bars.vertical)
|
||||
|
||||
MultiBarLeftButton1:ClearAllPoints()
|
||||
MultiBarLeftButton1:SetPoint("TOPLEFT", pfUI.config.bars.border*2, -pfUI.config.bars.border*2)
|
||||
MultiBarLeftButton1:SetPoint("TOPLEFT", pfUI_config.bars.border*2, -pfUI_config.bars.border*2)
|
||||
for i=2, 12 do
|
||||
local b = getglobal("MultiBarLeftButton"..i)
|
||||
local b2 = getglobal("MultiBarLeftButton"..i-1)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("TOP", b2, "BOTTOM", 0, -pfUI.config.bars.border)
|
||||
b:SetPoint("TOP", b2, "BOTTOM", 0, -pfUI_config.bars.border)
|
||||
end
|
||||
else
|
||||
pfUI.bars.vertical:Hide()
|
||||
@@ -212,13 +212,13 @@ pfUI.bars.bottom:SetBackdrop(pfUI.backdrop)
|
||||
|
||||
ActionButton1:SetParent(pfUI.bars.bottom)
|
||||
ActionButton1:ClearAllPoints()
|
||||
ActionButton1:SetPoint("BOTTOMLEFT", pfUI.config.bars.border*2, pfUI.config.bars.border*2)
|
||||
ActionButton1:SetPoint("BOTTOMLEFT", pfUI_config.bars.border*2, pfUI_config.bars.border*2)
|
||||
for i=2, 12 do
|
||||
local b = getglobal("ActionButton"..i)
|
||||
local b2 = getglobal("ActionButton"..i-1)
|
||||
b:SetParent(pfUI.bars.bottom)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI.config.bars.border, 0)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI_config.bars.border, 0)
|
||||
end
|
||||
|
||||
BonusActionBarFrame:SetParent(pfUI.bars.bottom)
|
||||
@@ -226,20 +226,20 @@ BonusActionBarFrame:ClearAllPoints()
|
||||
BonusActionBarFrame:SetAllPoints(pfUI.bars.bottom)
|
||||
|
||||
BonusActionButton1:ClearAllPoints()
|
||||
BonusActionButton1:SetPoint("BOTTOMLEFT", pfUI.config.bars.border*2 -4, pfUI.config.bars.border*2)
|
||||
BonusActionButton1:SetPoint("BOTTOMLEFT", pfUI_config.bars.border*2 -4, pfUI_config.bars.border*2)
|
||||
for i=2, 12 do
|
||||
local b = getglobal("BonusActionButton"..i)
|
||||
local b2 = getglobal("BonusActionButton"..i-1)
|
||||
b:ClearAllPoints()
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI.config.bars.border, 0)
|
||||
b:SetPoint("LEFT", b2, "RIGHT", pfUI_config.bars.border, 0)
|
||||
end
|
||||
|
||||
for i = 1, 10 do
|
||||
getglobal("ShapeshiftButton"..i):SetBackdrop(pfUI.backdrop)
|
||||
getglobal("ShapeshiftButton"..i):SetBackdropColor(0,0,0,0)
|
||||
|
||||
getglobal("ShapeshiftButton"..i):SetWidth(pfUI.config.bars.icon_size)
|
||||
getglobal("ShapeshiftButton"..i):SetHeight(pfUI.config.bars.icon_size)
|
||||
getglobal("ShapeshiftButton"..i):SetWidth(pfUI_config.bars.icon_size)
|
||||
getglobal("ShapeshiftButton"..i):SetHeight(pfUI_config.bars.icon_size)
|
||||
getglobal("ShapeshiftButton"..i):Show()
|
||||
getglobal("ShapeshiftButton"..i).showgrid = 1
|
||||
getglobal("ShapeshiftButton"..i..'Icon'):SetAllPoints(getglobal("ShapeshiftButton"..i))
|
||||
@@ -264,8 +264,8 @@ end
|
||||
for i = 1, 10 do
|
||||
getglobal("PetActionButton"..i):SetBackdrop(pfUI.backdrop)
|
||||
getglobal("PetActionButton"..i):SetBackdropColor(0,0,0,0)
|
||||
getglobal("PetActionButton"..i):SetWidth(pfUI.config.bars.icon_size)
|
||||
getglobal("PetActionButton"..i):SetHeight(pfUI.config.bars.icon_size)
|
||||
getglobal("PetActionButton"..i):SetWidth(pfUI_config.bars.icon_size)
|
||||
getglobal("PetActionButton"..i):SetHeight(pfUI_config.bars.icon_size)
|
||||
getglobal("PetActionButton"..i):Show()
|
||||
getglobal("PetActionButton"..i).showgrid = 1
|
||||
getglobal("PetActionButton"..i..'AutoCast'):SetScale(.75)
|
||||
@@ -303,8 +303,8 @@ for i = 1, 12 do
|
||||
getglobal(button..i):SetBackdrop(pfUI.backdrop)
|
||||
getglobal(button..i):SetBackdropColor(0,0,0,0)
|
||||
|
||||
getglobal(button..i):SetWidth(pfUI.config.bars.icon_size)
|
||||
getglobal(button..i):SetHeight(pfUI.config.bars.icon_size)
|
||||
getglobal(button..i):SetWidth(pfUI_config.bars.icon_size)
|
||||
getglobal(button..i):SetHeight(pfUI_config.bars.icon_size)
|
||||
getglobal(button..i):Show()
|
||||
getglobal(button..i).showgrid = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user