GnomishVendorShrinker/frames/SearchField.lua

32 lines
1.1 KiB
Lua
Raw Normal View History

2016-09-09 08:09:57 +00:00
local myname, ns = ...
function ns.MakeSearchField(parent)
local editbox = ns.NewTextInput(parent)
editbox:SetPoint("BOTTOMLEFT", parent, "TOPLEFT", 55, 9)
2016-09-09 08:09:57 +00:00
editbox.placeholder:SetText("Search...")
2016-09-09 08:09:57 +00:00
editbox:SetScript("OnEnter", function(self)
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT")
GameTooltip:AddLine("Enter an item name to search")
GameTooltip:AddLine(" ")
GameTooltip:AddDoubleLine("Type search:", "bop boe bou", nil,nil,nil, 255,255,255)
GameTooltip:AddDoubleLine(" ", "boa quest", 255,255,255, 255,255,255)
GameTooltip:AddDoubleLine(" ", "ilvl>=378 ilvl=359", 255,255,255, 255,255,255)
GameTooltip:AddDoubleLine(" ", "q=rare q<4", 255,255,255, 255,255,255)
GameTooltip:AddDoubleLine(" ", "t:leather t:shield", 255,255,255, 255,255,255)
GameTooltip:AddDoubleLine("Modifiers:", "& Match both", nil,nil,nil, 255,255,255)
GameTooltip:AddDoubleLine(" ", "| Match either", 255,255,255, 255,255,255)
GameTooltip:AddDoubleLine(" ", "! Do not match", 255,255,255, 255,255,255)
GameTooltip:Show()
end)
editbox:SetScript("OnLeave", GameTooltip_Hide)
ns.MakeSearchField = nil
return editbox
2016-09-09 08:09:57 +00:00
end