From 6603b51edb5ffb9c2479383135c651838f77cae2 Mon Sep 17 00:00:00 2001 From: Jim-Bim Date: Fri, 7 Nov 2008 00:46:15 +0000 Subject: [PATCH] AckisRecipeList: - clear focus of search editbox after search reset - remove unclickable area above and under the editbox - use grey textcolor for disabled sorting button --- ARLFrame.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 10fe96f..b9c4a21 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -3172,7 +3172,7 @@ function addon:CreateFrame( ARL_FilterButton:SetScript("OnClick", addon.ToggleFilters) local ARL_SortButton = addon:GenericCreateButton("ARL_SortButton", addon.Frame, - 25, 90, "TOPLEFT", addon.Frame, "TOPLEFT", 80, -40, "GameFontNormalSmall", + 25, 90, "TOPLEFT", addon.Frame, "TOPLEFT", 80, -40, "GameFontDisableSmall", "GameFontHighlightSmall", L["Sorting"], "CENTER", L["SORTING_DESC"], 1) -- Disable until we have sorting figured out ARL_SortButton:Disable() @@ -3210,11 +3210,14 @@ function addon:CreateFrame( addon:ResetSearch(recipeDB) ARL_SearchText:SetText(L["SEARCH_BOX_DESC"]) - + -- Make sure our expand all button is set to expandall ARL_ExpandButton:SetText(L["EXPANDALL"]) addon:TooltipDisplay(ARL_ExpandButton, L["EXPANDALL_DESC"]) + -- Make sure to clear the focus of the searchbox + ARL_SearchText:ClearFocus() + initDisplayStrings() RecipeList_Update() @@ -3238,7 +3241,7 @@ function addon:CreateFrame( ARL_SearchText:SetAutoFocus(false) ARL_SearchText:SetFontObject(ChatFontNormal) ARL_SearchText:SetWidth(135) - ARL_SearchText:SetHeight(270) + ARL_SearchText:SetHeight(12) ARL_SearchText:SetPoint("RIGHT", ARL_ClearButton, "LEFT", 4, -1) ARL_SearchText:Show() -- 1.7.9.5