Add a tooltip so people know how to use the search
This commit is contained in:
parent
700e0e77d9
commit
c24f75eae3
|
@ -1,8 +1,9 @@
|
||||||
|
|
||||||
local ItemSearch = LibStub('LibItemSearch-1.0')
|
|
||||||
local myname, ns = ...
|
local myname, ns = ...
|
||||||
ns.IHASCAT = select(4, GetBuildInfo()) >= 40000
|
ns.IHASCAT = select(4, GetBuildInfo()) >= 40000
|
||||||
|
|
||||||
|
local ItemSearch = LibStub('LibItemSearch-1.0')
|
||||||
|
|
||||||
local NUMROWS, ICONSIZE, GAP, SCROLLSTEP = 14, 17, 4, 5
|
local NUMROWS, ICONSIZE, GAP, SCROLLSTEP = 14, 17, 4, 5
|
||||||
local HONOR_POINTS, ARENA_POINTS = "|cffffffff|Hitem:43308:0:0:0:0:0:0:0:0|h[Honor Points]|h|r", "|cffffffff|Hitem:43307:0:0:0:0:0:0:0:0|h[Arena Points]|h|r"
|
local HONOR_POINTS, ARENA_POINTS = "|cffffffff|Hitem:43308:0:0:0:0:0:0:0:0|h[Honor Points]|h|r", "|cffffffff|Hitem:43307:0:0:0:0:0:0:0:0|h[Arena Points]|h|r"
|
||||||
|
|
||||||
|
@ -373,6 +374,18 @@ editbox:SetScript("OnShow", function(self)
|
||||||
self:SetText("Search...")
|
self:SetText("Search...")
|
||||||
self:SetTextColor(0.75, 0.75, 0.75, 1)
|
self:SetTextColor(0.75, 0.75, 0.75, 1)
|
||||||
end)
|
end)
|
||||||
|
editbox:SetScript("OnEnter", function(self)
|
||||||
|
GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
|
||||||
|
GameTooltip:AddLine("Enter an item name to search")
|
||||||
|
GameTooltip:AddLine(" ")
|
||||||
|
GameTooltip:AddDoubleLine("Type search:", "bop, boe, bou, boa, quest", nil,nil,nil, 255,255,255)
|
||||||
|
GameTooltip:AddDoubleLine(" ", "q=rare, q<4, ilvl>=359, t:shield", 255,255,255, 255,255,255)
|
||||||
|
GameTooltip:AddLine("& - Match both | - Match either ! - Do not match", 255,255,255)
|
||||||
|
GameTooltip:Show()
|
||||||
|
end)
|
||||||
|
editbox:SetScript("OnLeave", function(self)
|
||||||
|
GameTooltip:Hide()
|
||||||
|
end)
|
||||||
|
|
||||||
local f = scrollbar:GetScript("OnValueChanged")
|
local f = scrollbar:GetScript("OnValueChanged")
|
||||||
scrollbar:SetScript("OnValueChanged", function(self, value, ...)
|
scrollbar:SetScript("OnValueChanged", function(self, value, ...)
|
||||||
|
|
Loading…
Reference in New Issue