From cfc074f9512b34521602a19c212c058734944313 Mon Sep 17 00:00:00 2001 From: Eric Mauser Date: Fri, 17 Jun 2016 23:24:43 +0200 Subject: [PATCH] use proper and different frame names --- modules/actionbar.lua | 10 +++++----- modules/bags.lua | 6 +++--- modules/chat.lua | 4 ++-- modules/minimap.lua | 2 +- modules/panel.lua | 6 +++--- modules/pet.lua | 2 +- modules/player.lua | 2 +- modules/target.lua | 2 +- modules/targettarget.lua | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 8c9a972c..3deb5566 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -35,11 +35,11 @@ pfUI:RegisterModule("actionbar", function () pfUI.bars:RegisterEvent("PET_BAR_SHOWGRID") pfUI.bars:RegisterEvent("PET_BAR_HIDEGRID") - pfUI.bars.shapeshift = CreateFrame("Frame", "pfBarBottom", UIParent) - pfUI.bars.bottomleft = CreateFrame("Frame", "pfBarBottom", UIParent) - pfUI.bars.bottomright = CreateFrame("Frame", "pfBarBottom", UIParent) - pfUI.bars.vertical = CreateFrame("Frame", "pfBarBottom", UIParent) - pfUI.bars.pet = CreateFrame("Frame", "pfBarBottom", UIParent) + pfUI.bars.shapeshift = CreateFrame("Frame", "pfBarShapeshift", UIParent) + pfUI.bars.bottomleft = CreateFrame("Frame", "pfBarBottomLeft", UIParent) + pfUI.bars.bottomright = CreateFrame("Frame", "pfBarBottomRight", UIParent) + pfUI.bars.vertical = CreateFrame("Frame", "pfBarVertical", UIParent) + pfUI.bars.pet = CreateFrame("Frame", "pfBarPet", UIParent) PetActionBarFrame:SetParent(pfUI.bars.pet) diff --git a/modules/bags.lua b/modules/bags.lua index d5845eb2..9a086ae7 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -1,19 +1,19 @@ pfUI:RegisterModule("bags", function () - pfUI.bag = CreateFrame("Frame", "pfBagFrame") + pfUI.bag = CreateFrame("Frame", "pfBag") pfUI.bag:SetFrameStrata("MEDIUM") pfUI.bag:SetPoint("BOTTOMLEFT", pfUI.chat.right, "BOTTOMLEFT", 0, 0) pfUI.bag:SetPoint("BOTTOMRIGHT", pfUI.chat.right, "BOTTOMRIGHT", 0, 0) pfUI.bag:SetBackdrop(pfUI.backdrop) pfUI.bag:Hide() - pfUI.bank = CreateFrame("Frame", "pfBankFrame") + pfUI.bank = CreateFrame("Frame", "pfBank") pfUI.bank:SetFrameStrata("MEDIUM") pfUI.bank:SetPoint("BOTTOMLEFT", pfUI.chat.left, "BOTTOMLEFT", 0, 0) pfUI.bank:SetPoint("BOTTOMRIGHT", pfUI.chat.left, "BOTTOMRIGHT", 0, 0) pfUI.bank:SetBackdrop(pfUI.backdrop) pfUI.bank:Hide() - tinsert(UISpecialFrames,"pfBagFrame"); + tinsert(UISpecialFrames,"pfBag"); function OpenAllBags() if pfUI.bag:IsShown() then diff --git a/modules/chat.lua b/modules/chat.lua index 7d750a16..454c03f8 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -1,7 +1,7 @@ pfUI:RegisterModule("chat", function () pfUI.chat = CreateFrame("Frame",nil,UIParent) - pfUI.chat.left = CreateFrame("Frame", "leftChat", UIParent) + pfUI.chat.left = CreateFrame("Frame", "pfChatLeft", UIParent) pfUI.chat.left:SetFrameStrata("BACKGROUND") pfUI.chat.left:SetWidth(350) pfUI.chat.left:SetHeight(150) @@ -17,7 +17,7 @@ pfUI:RegisterModule("chat", function () pfUI.chat.left.panelTop:SetBackdrop(pfUI.backdrop) pfUI.chat.left.panelTop:SetBackdropColor(0,0,0,.75) - pfUI.chat.right = CreateFrame("Frame", "leftChat", UIParent) + pfUI.chat.right = CreateFrame("Frame", "pfChatRight", UIParent) pfUI.chat.right:SetFrameStrata("BACKGROUND") pfUI.chat.right:SetWidth(350) pfUI.chat.right:SetHeight(150) diff --git a/modules/minimap.lua b/modules/minimap.lua index 75143f5e..56432ee4 100644 --- a/modules/minimap.lua +++ b/modules/minimap.lua @@ -14,7 +14,7 @@ pfUI:RegisterModule("minimap", function () if(arg1 > 0) then Minimap_ZoomIn() else Minimap_ZoomOut() end end) - pfUI.minimap = CreateFrame("Frame",nil,UIParent) + pfUI.minimap = CreateFrame("Frame","pfMinimap",UIParent) pfUI.minimap:SetBackdrop(pfUI.backdrop) pfUI.minimap:SetBackdropColor(0,0,0,0) pfUI.minimap:SetPoint("TOPRIGHT", UIParent, -5, -5) diff --git a/modules/panel.lua b/modules/panel.lua index 34dff2a5..c427ae99 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -174,7 +174,7 @@ pfUI:RegisterModule("panel", function () end end - pfUI.panel.left = CreateFrame("Frame", "leftChatPanelBottom", pfUI.panel) + pfUI.panel.left = CreateFrame("Frame", "pfPanelLeft", pfUI.panel) pfUI.panel.left:ClearAllPoints() pfUI.panel.left:SetHeight(19) pfUI.panel.left:SetPoint("BOTTOMLEFT", pfUI.chat.left, "BOTTOMLEFT", 2, 2) @@ -238,7 +238,7 @@ pfUI:RegisterModule("panel", function () pfUI.panel.left.right.text:SetFontObject(GameFontWhite) pfUI.panel.left.right.text:SetText("[DUMMY]") - pfUI.panel.right = CreateFrame("Frame", "rightChatPanelBottom", pfUI.panel) + pfUI.panel.right = CreateFrame("Frame", "pfPanelRight", pfUI.panel) pfUI.panel.right:ClearAllPoints() pfUI.panel.right:SetHeight(19) pfUI.panel.right:SetPoint("BOTTOMLEFT", pfUI.chat.right, "BOTTOMLEFT", 2, 2) @@ -302,7 +302,7 @@ pfUI:RegisterModule("panel", function () pfUI.panel.right.right.text:SetFontObject(GameFontWhite) pfUI.panel.right.right.text:SetText("[DUMMY]") - pfUI.panel.minimap = CreateFrame("Frame", nil, UIParent) + pfUI.panel.minimap = CreateFrame("Frame", "pfPanelMinimap", UIParent) pfUI.panel.minimap:SetBackdrop(pfUI.backdrop) pfUI.panel.minimap:SetPoint("TOPRIGHT",UIParent, -5, -7 - Minimap:GetHeight()) pfUI.panel.minimap:SetHeight(20) diff --git a/modules/pet.lua b/modules/pet.lua index 6013b66c..c188e570 100644 --- a/modules/pet.lua +++ b/modules/pet.lua @@ -1,5 +1,5 @@ pfUI:RegisterModule("pet", function () - pfUI.uf.pet = CreateFrame("Button",nil,UIParent) + pfUI.uf.pet = CreateFrame("Button","pfPet",UIParent) pfUI.uf.pet:SetWidth(100) pfUI.uf.pet:SetHeight(23) diff --git a/modules/player.lua b/modules/player.lua index b08b166b..53a88626 100644 --- a/modules/player.lua +++ b/modules/player.lua @@ -2,7 +2,7 @@ pfUI:RegisterModule("player", function () PlayerFrame:Hide() PlayerFrame:UnregisterAllEvents() - pfUI.uf.player = CreateFrame("Button",nil,UIParent) + pfUI.uf.player = CreateFrame("Button","pfPlayer",UIParent) pfUI.uf.player:SetWidth(pfUI_config.unitframes.player.width) pfUI.uf.player:SetHeight(pfUI_config.unitframes.player.height+pfUI_config.unitframes.player.pheight) pfUI.uf.player:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOM", -75, 125) diff --git a/modules/target.lua b/modules/target.lua index d7f77df4..623a3120 100644 --- a/modules/target.lua +++ b/modules/target.lua @@ -7,7 +7,7 @@ pfUI:RegisterModule("target", function () ComboFrame:Hide() ComboFrame:UnregisterAllEvents() - pfUI.uf.target = CreateFrame("Button",nil,UIParent) + pfUI.uf.target = CreateFrame("Button","pfTarget",UIParent) pfUI.uf.target:Hide() pfUI.uf.target:RegisterEvent("PLAYER_TARGET_CHANGED") pfUI.uf.target:SetScript("OnEvent", function() diff --git a/modules/targettarget.lua b/modules/targettarget.lua index e10d1306..2ac7e303 100644 --- a/modules/targettarget.lua +++ b/modules/targettarget.lua @@ -4,7 +4,7 @@ pfUI:RegisterModule("targettarget", function () if UnitExists("targettarget") then pfUI.uf.targettarget:Show() else pfUI.uf.targettarget:Hide() end end) - pfUI.uf.targettarget = CreateFrame("Button",nil,UIParent) + pfUI.uf.targettarget = CreateFrame("Button","pfTargetTarget",UIParent) pfUI.uf.targettarget:Hide() pfUI.uf.targettarget:SetWidth(100)