From d5b657a8cbddcd228e1287d98bc64094774fd996 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 12 Jul 2010 09:50:06 -0400 Subject: [PATCH] Removed some dead code and adjusted frame anchors. --- Frame.lua | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Frame.lua b/Frame.lua index bc1eb5b..a41d977 100644 --- a/Frame.lua +++ b/Frame.lua @@ -70,8 +70,6 @@ local SetTextColor = private.SetTextColor local GenericCreateButton = private.GenericCreateButton local SetTooltipScripts = private.SetTooltipScripts -local MainPanel - local A = private.acquire_types ------------------------------------------------------------------------------- @@ -143,9 +141,6 @@ function addon:ClosePopups() _G.StaticPopup_Hide("ARL_SEARCHFILTERED") end -------------------------------------------------------------------------------- --- Initializes runtime elements of MainPanel. -------------------------------------------------------------------------------- function private.InitializeFrame() ------------------------------------------------------------------------------- -- Create the MainPanel and set its values @@ -207,14 +202,6 @@ function private.InitializeFrame() end -- do block ------------------------------------------------------------------------------- - -- Widget Container frame. - ------------------------------------------------------------------------------- - local WidgetContainer = CreateFrame("Frame", nil, MainPanel) - WidgetContainer:SetPoint("TOPLEFT", MainPanel, "TOPLEFT", 75, -39) - WidgetContainer:SetHeight(30) - WidgetContainer:SetWidth(275) - - ------------------------------------------------------------------------------- -- MainPanel scripts/functions. ------------------------------------------------------------------------------- MainPanel:SetScript("OnHide", @@ -612,7 +599,7 @@ function private.InitializeFrame() SearchBox:SetFontObject(ChatFontSmall) SearchBox:SetWidth(130) SearchBox:SetHeight(12) - SearchBox:SetPoint("TOPLEFT", WidgetContainer, "TOPLEFT", 0, 0) + SearchBox:SetPoint("TOPLEFT", MainPanel, "TOPLEFT", 75, -39) SearchBox:Show() MainPanel.search_editbox = SearchBox @@ -988,7 +975,7 @@ function private.InitializeFrame() end local filter_toggle = GenericCreateButton(nil, MainPanel, 24, 24, nil, nil, nil, L["FILTER_OPEN_DESC"], 2) - filter_toggle:SetPoint("TOPRIGHT", WidgetContainer, "TOPRIGHT", -2, -2) + filter_toggle:SetPoint("TOPLEFT", MainPanel, "TOPLEFT", 323, -41) filter_toggle:SetScript("OnClick", Toggle_OnClick) -- 1.7.9.5