From c24f75eae3eba684e9552bf0dfefccedd3221da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tekkub=20=3Abear=3A=E2=80=82?= Date: Sun, 20 Nov 2011 16:34:19 -0700 Subject: [PATCH] Add a tooltip so people know how to use the search --- GnomishVendorShrinker.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/GnomishVendorShrinker.lua b/GnomishVendorShrinker.lua index eb06dae..569eb7e 100644 --- a/GnomishVendorShrinker.lua +++ b/GnomishVendorShrinker.lua @@ -1,8 +1,9 @@ -local ItemSearch = LibStub('LibItemSearch-1.0') local myname, ns = ... ns.IHASCAT = select(4, GetBuildInfo()) >= 40000 +local ItemSearch = LibStub('LibItemSearch-1.0') + 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" @@ -373,6 +374,18 @@ editbox:SetScript("OnShow", function(self) self:SetText("Search...") self:SetTextColor(0.75, 0.75, 0.75, 1) 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") scrollbar:SetScript("OnValueChanged", function(self, value, ...)