comparison Summary.lua @ 17:8f5c02113c5c

Reduced the softmax of most ranges from 1.000 to 100. This should make them actually useful. You can still manually enter an amount below the sliders of up to 100.000. The help text for the ?Replenishing stock? category now includes bonus queue information. Added an option to the ?add items? tab called ?Import premade data? which allows a user to import item data from a premade group shipped with the addon. If this premade data ever changes, the user will be notified and queried for an update. Added a ?mass remove? option to the ?current items? tab. Item data should be imported again when importing a complete group. Added ?DataStore (current account only)?, ?DataStore (with guilds)? and ?DataStore (without guilds)? item count options. One might prefer these over Altoholic for a few reasons. Scroll IDs are now stored in a seperate file in a new ?data? folder. Premade groups data can be found there too. Bonus queue and min crafting queue options should now be fully functional. Enchanting scrolls should now work properly. Text in the summary of the value of items below the price threshold window will now be colored completely grey.
author Zerotorescue
date Wed, 20 Oct 2010 01:30:51 +0200
parents 0fc8a54516d7
children 7d7aaa3fbe94
comparison
equal deleted inserted replaced
16:68958c55c43d 17:8f5c02113c5c
1 local addon = LibStub("AceAddon-3.0"):GetAddon("Inventorium"); 1 local addon = select(2, ...);
2 local mod = addon:NewModule("Summary", "AceEvent-3.0", "AceTimer-3.0"); 2 local mod = addon:NewModule("Summary", "AceEvent-3.0", "AceTimer-3.0");
3 3
4 local AceGUI = LibStub("AceGUI-3.0"); 4 local AceGUI = LibStub("AceGUI-3.0");
5 5
6 function mod:OnEnable() 6 function mod:OnEnable()
564 elseif value == -3 then 564 elseif value == -3 then
565 return "|cffffff00Unknown|r"; 565 return "|cffffff00Unknown|r";
566 elseif value == -4 then 566 elseif value == -4 then
567 return "|cff00ff00-|r"; 567 return "|cff00ff00-|r";
568 elseif value < priceThreshold then 568 elseif value < priceThreshold then
569 return ("|cffff0000%s|r"):format(addon:ReadableMoney(value or 0, true)); 569 return ("|cffaaaaaa%s|r"):format(addon:ReadableMoney(value or 0, true):gsub("|([a-fA-F0-9]+)([gsc]+)|r", "%2"));
570 else 570 else
571 return addon:ReadableMoney(value or 0, true); 571 return addon:ReadableMoney(value or 0, true);
572 end 572 end
573 end 573 end
574 574