From 04e9fd4c54865ec0e64e9235b33c835f25bd307a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tekkub=20=3Abear=3A=E2=80=82?= Date: Mon, 15 Dec 2014 02:49:28 -0700 Subject: [PATCH] Decat --- GnomishVendorShrinker.lua | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/GnomishVendorShrinker.lua b/GnomishVendorShrinker.lua index 60421b7..488357f 100644 --- a/GnomishVendorShrinker.lua +++ b/GnomishVendorShrinker.lua @@ -1,11 +1,10 @@ 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" for _,f in pairs{MerchantNextPageButton, MerchantPrevPageButton, MerchantPageText} do @@ -141,25 +140,13 @@ end local function AddAltCurrency(frame, i) local lastframe = frame.ItemPrice - local honorPoints, arenaPoints, itemCount = GetMerchantItemCostInfo(i) - if ns.IHASCAT then itemCount, honorPoints, arenaPoints = honorPoints, 0, 0 end - for j=itemCount,1,-1 do + for j=GetMerchantItemCostInfo(i),1,-1 do local f = frame:GetAltCurrencyFrame() local texture, price, link, name = GetMerchantItemCostItem(i, j) f:SetValue(price, texture, link or name) f.index, f.itemIndex, f.link = i, j lastframe = f.text end - if arenaPoints > 0 then - local f = frame:GetAltCurrencyFrame() - f:SetValue(arenaPoints, "Interface\\PVPFrame\\PVP-ArenaPoints-Icon", ARENA_POINTS) - lastframe = f.text - end - if honorPoints > 0 then - local f = frame:GetAltCurrencyFrame() - f:SetValue(honorPoints, "Interface\\PVPFrame\\PVP-Currency-".. UnitFactionGroup("player"), HONOR_POINTS) - lastframe = f.text - end frame.ItemName:SetPoint("RIGHT", lastframe, "LEFT", -GAP, 0) end