From 2bbe32b1be73cbb38ff854aed17e04b5eb5cfa73 Mon Sep 17 00:00:00 2001 From: Safturento Date: Wed, 9 Nov 2011 22:21:16 -0600 Subject: [PATCH] Changed text on button to toggle profile window (as per request). --- stAddonManager.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stAddonManager.lua b/stAddonManager.lua index c37c9ae..2d5b77d 100644 --- a/stAddonManager.lua +++ b/stAddonManager.lua @@ -237,7 +237,7 @@ function stAddonManager:LoadProfileWindow() self:SetScript("OnHide", function(self) if self.SaveProfile.editbox then self.SaveProfile.editbox:Hide() end window:Hide() - self.profileButton.text:SetText(">") + -- self.profileButton.text:SetText(">") end) local buttons = {} @@ -528,7 +528,7 @@ function stAddonManager:LoadWindow() local searchBar = CreateFrame("EditBox", window:GetName().."_SearchBar", window) searchBar:SetFrameLevel(window:GetFrameLevel()+1) searchBar:SetPoint("TOPLEFT", header, "BOTTOMLEFT", 10, -5) - searchBar:SetWidth(190) + searchBar:SetWidth(130) searchBar:SetHeight(20) SkinFrame(searchBar) searchBar:SetFont(unpack(font)) @@ -559,14 +559,14 @@ function stAddonManager:LoadWindow() searchBar.clear = sbClear stAddonManager.searchBar = searchBar - local profileButton = CreateMenuButton(window, 20, 20, ">", "TOPRIGHT", header, "BOTTOMRIGHT", -10, -5) + local profileButton = CreateMenuButton(window, 80, 20, "Profiles", "TOPRIGHT", header, "BOTTOMRIGHT", -10, -5) profileButton:SetScript("OnClick", function(self) stAddonManager:LoadProfileWindow() - if stAddonManager.ProfileWindow:IsShown() then - self.text:SetText("<") - else - self.text:SetText(">") - end + -- if stAddonManager.ProfileWindow:IsShown() then + -- self.text:SetText("<") + -- else + -- self.text:SetText(">") + -- end end) stAddonManager.profileButton = profileButton -- 1.7.9.5