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 toolbar
local searchBox = getglobal("Guda_BankFrame_SearchBar_SearchBox")
if searchBox then
searchBox:ClearFocus()
end
local text = getglobal(this:GetName().."_Text")
if text then
text:SetText("0 / 0")
text:SetTextColor(0.8, 0.8, 0.8)
end
-- Set tooltip handlers on money button children
Guda_BankFrame_MoneyFrame_OnLoad(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()