Quantcast

Changed text on button to toggle profile window (as per request).

Safturento [11-10-11 - 04:21]
Changed text on button to toggle profile window (as per request).
Filename
stAddonManager.lua
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