From d09ee4c57d76fe82522c5faeac55629276090fef Mon Sep 17 00:00:00 2001 From: Lag Date: Mon, 3 Oct 2022 23:14:32 +0200 Subject: [PATCH] move contentPhaseButton --- AtlasLootClassic/GUI/GUI.lua | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/AtlasLootClassic/GUI/GUI.lua b/AtlasLootClassic/GUI/GUI.lua index e8792021..e11405e7 100644 --- a/AtlasLootClassic/GUI/GUI.lua +++ b/AtlasLootClassic/GUI/GUI.lua @@ -1283,6 +1283,20 @@ function GUI:Create() frame.contentFrame.modelButton:SetScript("OnClick", ModelButtonOnClick) frame.contentFrame.modelButton:Hide() + -- ContentPhase + frame.contentFrame.contentPhaseButton = CreateFrame("Button", frameName.."-contentPhaseButton") + frame.contentFrame.contentPhaseButton:SetParent(frame.contentFrame) + frame.contentFrame.contentPhaseButton:RegisterForClicks("LeftButtonUp", "RightButtonUp"); + frame.contentFrame.contentPhaseButton:SetWidth(25) + frame.contentFrame.contentPhaseButton:SetHeight(25) + frame.contentFrame.contentPhaseButton:SetPoint("RIGHT", frame.contentFrame.modelButton, "LEFT", -5, 0) + frame.contentFrame.contentPhaseButton:SetScript("OnClick", ContentPhaseButton_OnClick) + --frame.contentFrame.contentPhaseButton:SetScript("OnShow", ContentPhaseButton_OnShow) + --frame.contentFrame.contentPhaseButton:SetScript("OnEnter", ContentPhaseButton_OnEnter) + --frame.contentFrame.contentPhaseButton:SetScript("OnLeave", ContentPhaseButton_OnLeave) + frame.contentFrame.contentPhaseButton.mainButton = true + --frame.contentFrame.clasFilterButton:Hide() + --[[ AtlasMapButton frame.contentFrame.AtlasMapButton = CreateFrame("Button", frameName.."-AtlasMapButton") frame.contentFrame.AtlasMapButton:SetParent(frame.contentFrame) @@ -1366,20 +1380,6 @@ function GUI:Create() frame.contentFrame.clasFilterButton.texture:SetAllPoints(frame.contentFrame.clasFilterButton) --frame.contentFrame.clasFilterButton.texture:SetTexture(CLASS_ICON_PATH[PLAYER_CLASS_FN]) - -- ContentPhase - frame.contentFrame.contentPhaseButton = CreateFrame("Button", frameName.."-contentPhaseButton") - frame.contentFrame.contentPhaseButton:SetParent(frame.contentFrame) - frame.contentFrame.contentPhaseButton:RegisterForClicks("LeftButtonUp", "RightButtonUp"); - frame.contentFrame.contentPhaseButton:SetWidth(25) - frame.contentFrame.contentPhaseButton:SetHeight(25) - frame.contentFrame.contentPhaseButton:SetPoint("LEFT", frame.contentFrame.clasFilterButton, "RIGHT", 5, 0) - frame.contentFrame.contentPhaseButton:SetScript("OnClick", ContentPhaseButton_OnClick) - --frame.contentFrame.contentPhaseButton:SetScript("OnShow", ContentPhaseButton_OnShow) - --frame.contentFrame.contentPhaseButton:SetScript("OnEnter", ContentPhaseButton_OnEnter) - --frame.contentFrame.contentPhaseButton:SetScript("OnLeave", ContentPhaseButton_OnLeave) - frame.contentFrame.contentPhaseButton.mainButton = true - --frame.contentFrame.clasFilterButton:Hide() - frame.contentFrame.contentPhaseButton.texture = frame.contentFrame.contentPhaseButton:CreateTexture(frameName.."-contentPhaseButton-texture","ARTWORK") frame.contentFrame.contentPhaseButton.texture:SetAllPoints(frame.contentFrame.contentPhaseButton) frame.contentFrame.contentPhaseButton.texture:SetTexture(AtlasLoot.Data.ContentPhase:GetActivePhaseTexture())