diff --git a/GnomishVendorShrinker.lua b/GnomishVendorShrinker.lua index 5af86dd..eb06dae 100644 --- a/GnomishVendorShrinker.lua +++ b/GnomishVendorShrinker.lua @@ -103,7 +103,7 @@ local function SetValue(self, text, icon, link) local id = link and link:match("item:(%d+)") self.link, self.index, self.itemIndex = nil if id then self.link = link end - if id and GetItemCount(id) < text or link and not id and GetCurencyCount(link) < text then + if id and (GetItemCount(id) or 0) < text or link and not id and (GetCurencyCount(link) or 0) < text then color = "|cffff9999" end self.text:SetText(color..text) @@ -250,7 +250,7 @@ local grads = setmetatable({ }, {__index = function(t,i) t[i] = default_grad return default_grad end}) local _, _, _, _, _, _, RECIPE = GetAuctionItemClasses() local quality_colors = setmetatable({}, {__index = function() return "|cffffffff" end}) -for i=1,7 do quality_colors[i] = select(4, GetItemQualityColor(i)) end +for i=1,7 do quality_colors[i] = "|c".. select(4, GetItemQualityColor(i)) end local function ShowMerchantItem(row, i) local name, itemTexture, itemPrice, itemStackCount, numAvailable, isUsable, extendedCost = GetMerchantItemInfo(i) diff --git a/GnomishVendorShrinker.toc b/GnomishVendorShrinker.toc index 30a3e25..571aa0d 100644 --- a/GnomishVendorShrinker.toc +++ b/GnomishVendorShrinker.toc @@ -1,4 +1,4 @@ -## Interface: 40000 +## Interface: 40100 ## Title: GnomishVendorShrinker ## Notes: Compact scrolling vendor frame @@ -7,9 +7,11 @@ ## X-Website: http://www.tekkub.net/ ## X-Email: tekkub-wow@googlegroups.com ## X-Category: Misc +## X-Icon: Interface\Icons\INV_Misc_Toy_07 ## LoadManagers: AddonLoader ## X-LoadOn-Merchant: true +## X-LoadOn-InterfaceOptions: GnomishVendorShrinker tekFunks\gsc.lua tekKonfig\tekKonfig.xml diff --git a/changelog.txt b/changelog.txt index 31011eb..778250a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,9 @@ +4.1.0.11-Release + Tagging stable version + +4.0.0.10-Beta + Some people don't even know what honor points are + 4.0.0.9-Beta Make price text red if we can't afford an item diff --git a/tekKonfig/tekKonfigAboutPanel.lua b/tekKonfig/tekKonfigAboutPanel.lua index f7ea166..80f0a7c 100644 --- a/tekKonfig/tekKonfigAboutPanel.lua +++ b/tekKonfig/tekKonfigAboutPanel.lua @@ -1,9 +1,10 @@ -local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 5) +local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 6) if not lib then return end function lib.new(parent, addonname) + if not parent and AddonLoader and AddonLoader.RemoveInterfaceOptions then AddonLoader:RemoveInterfaceOptions(addonname) end local frame = CreateFrame("Frame", nil, InterfaceOptionsFramePanelContainer) frame.name, frame.parent, frame.addonname = parent and "About" or addonname, parent, addonname frame:Hide()