if this:GetText() == "Search bank..." then
this:SetText("")
this:SetTextColor(1, 1, 1, 1)
end
if this:GetText() == "" then
this:SetText("Search bank...")
this:SetTextColor(0.5, 0.5, 0.5, 1)
Guda_BankFrame_OnSearchChanged(this)
end
Guda_BankFrame_OnSearchChanged(this)
this:SetText("Search bank...")
this:SetTextColor(0.5, 0.5, 0.5, 1)
this:ClearFocus()
Guda_BankFrame_OnSearchChanged(this)
-- Clear search focus when clicking in item area
local searchBox = getglobal("Guda_BankFrame_SearchBar_SearchBox")
if searchBox then
searchBox:ClearFocus()
end
Guda_BankFrame_OnLoad(this)
Guda_BankFrame_OnShow(this)
Guda_BankFrame_OnHide(this)
-- Clear search box focus when clicking on bank frame
local searchBox = getglobal("Guda_BankFrame_SearchBar_SearchBox")
if searchBox then
searchBox:ClearFocus()
end
if (arg1 == "LeftButton") then
this:StartMoving()
end
this:StopMovingOrSizing()