From 46a23538ddab38fddaae77a4553b57c64e2d6cf7 Mon Sep 17 00:00:00 2001 From: ckaotik Date: Mon, 1 Mar 2010 21:02:17 +0100 Subject: [PATCH] Add Icon fixed. Too many included items in tooltip fixed. Statistics frame. Ordering of lists added --- Broker_Garbage.toc | 2 +- core.lua | 87 ++++++--- deDE.lua | 47 ++++- enUS.lua | 47 ++++- options.lua | 505 ++++++++++++++++++++++++++++++++++++++++++---------- readme.txt | 2 +- 6 files changed, 560 insertions(+), 130 deletions(-) diff --git a/Broker_Garbage.toc b/Broker_Garbage.toc index 63f3d8f..a73ef09 100644 --- a/Broker_Garbage.toc +++ b/Broker_Garbage.toc @@ -8,7 +8,7 @@ ## Notes: Full bags no more! Find your least valuable item .. and destroy it! ## Notes-deDE: Endlich wieder Platz! Finde dein billigstes Item ... und zerstöre es. ## Author: ckaotik -## Version: 3.3v15 +## Version: 3.3v16 ## X-Embeds: LibPeriodicTable-3.1 ## X-Category: Inventory ## X-Credits: GarbageFu, Tekkub diff --git a/core.lua b/core.lua index ba559e6..dc263a9 100644 --- a/core.lua +++ b/core.lua @@ -34,13 +34,17 @@ BrokerGarbage.defaultGlobalSettings = { neverRepairGuildBank = false, -- default values - moneyLostByDeleting = 0, -- total value - moneyEarned = 0, -- total value tooltipMaxHeight = 220, tooltipNumItems = 9, dropQuality = 0, showMoney = 2, + -- statistic values + moneyLostByDeleting = 0, + moneyEarned = 0, + itemsSold = 0, + itemsDropped = 0, + -- display options showAutoSellIcon = true, reportNothingToSell = true, @@ -312,30 +316,52 @@ end -- joins any number of tables together, one after the other. elements within the input-tables will get mixed, though function BrokerGarbage:JoinTables(...) local result = {} - local table + local tab for i=1,select("#", ...) do - table = select(i, ...) - if table then - for index, value in pairs(table) do + tab = select(i, ...) + if tab then + for index, value in pairs(tab) do result[index] = value end end end + return result end +function BrokerGarbage:SortIcons(a,b) + if type(a) == type(b) then + return a