working on module refactoring
This commit is contained in:
+8
-7
@@ -1,12 +1,13 @@
|
||||
module'aux.cache'
|
||||
module 'aux.core.cache'
|
||||
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
include 'green_t'
|
||||
include 'aux'
|
||||
include 'aux.util'
|
||||
include 'aux.control'
|
||||
include 'aux.util.color'
|
||||
|
||||
local info, persistence = M'aux.info', M'aux.persistence'
|
||||
local info = require 'aux.util.info'
|
||||
local persistence = require 'aux.util.persistence'
|
||||
|
||||
local MIN_ITEM_ID = 1
|
||||
local MAX_ITEM_ID = 30000
|
||||
|
||||
+7
-7
@@ -1,12 +1,12 @@
|
||||
module'aux.disenchant'
|
||||
module 'aux.core.disenchant'
|
||||
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
include 'green_t'
|
||||
include 'aux'
|
||||
include 'aux.util'
|
||||
include 'aux.control'
|
||||
include 'aux.util.color'
|
||||
|
||||
local history = M'aux.history'
|
||||
local history = require 'aux.core.history'
|
||||
|
||||
local UNCOMMON, RARE, EPIC = 2, 3, 4
|
||||
|
||||
|
||||
+7
-7
@@ -1,12 +1,12 @@
|
||||
module'aux.history'
|
||||
module 'aux.core.history'
|
||||
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
include 'green_t'
|
||||
include 'aux'
|
||||
include 'aux.util'
|
||||
include 'aux.control'
|
||||
include 'aux.util.color'
|
||||
|
||||
local persistence = M'aux.persistence'
|
||||
local persistence = require 'aux.util.persistence'
|
||||
|
||||
local history_schema = {'record', '#', {next_push='number'}, {daily_min_buyout='number'}, {daily_max_price='number'}, {data_points={'list', ';', {'record', '@', {market_value='number'}, {time='number'}}}} }
|
||||
|
||||
|
||||
+12
-9
@@ -1,10 +1,13 @@
|
||||
module'aux.post'
|
||||
module 'aux.core.post'
|
||||
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
include 'green_t'
|
||||
include 'aux'
|
||||
include 'aux.util'
|
||||
include 'aux.control'
|
||||
include 'aux.util.color'
|
||||
|
||||
local info = require 'aux.util.info'
|
||||
local stack = require 'aux.core.stack'
|
||||
|
||||
local state
|
||||
|
||||
@@ -23,15 +26,15 @@ function private.process()
|
||||
end
|
||||
end)
|
||||
|
||||
return aux_stack.start(state.item_key, state.stack_size, send_signal)
|
||||
return stack.start(state.item_key, state.stack_size, send_signal)
|
||||
end
|
||||
|
||||
return stop()
|
||||
end
|
||||
|
||||
function private.post_auction(slot, k)
|
||||
local item_info = aux_info.container_item(unpack(slot))
|
||||
if item_info.item_key == state.item_key and aux_info.auctionable(item_info.tooltip) and item_info.aux_quantity == state.stack_size then
|
||||
local item_info = info.container_item(unpack(slot))
|
||||
if item_info.item_key == state.item_key and info.auctionable(item_info.tooltip) and item_info.aux_quantity == state.stack_size then
|
||||
|
||||
ClearCursor()
|
||||
ClickAuctionSellItemButton()
|
||||
|
||||
+8
-7
@@ -1,12 +1,13 @@
|
||||
module'aux.scan'
|
||||
module 'aux.core.scan'
|
||||
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
include 'green_t'
|
||||
include 'aux'
|
||||
include 'aux.util'
|
||||
include 'aux.control'
|
||||
include 'aux.util.color'
|
||||
|
||||
local info, history = aux_info, aux_history
|
||||
local info = require 'aux.util.info'
|
||||
local history = require 'aux.core.history'
|
||||
|
||||
local PAGE_SIZE = 50
|
||||
|
||||
|
||||
+9
-8
@@ -1,12 +1,13 @@
|
||||
module'aux.slash'
|
||||
module 'aux.core.slash'
|
||||
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
include 'green_t'
|
||||
include 'aux'
|
||||
include 'aux.util'
|
||||
include 'aux.control'
|
||||
include 'aux.util.color'
|
||||
|
||||
local persistence = M'aux.persistence'
|
||||
local persistence = require 'aux.util.persistence'
|
||||
local cache = require 'aux.core.cache'
|
||||
|
||||
aux_ignore_owner = true
|
||||
|
||||
@@ -35,7 +36,7 @@ function SlashCmdList.AUX(command)
|
||||
aux_auctionable_items = t
|
||||
print 'Item cache cleared.'
|
||||
elseif arguments[1] == 'populate' and arguments[2] == 'wdb' then
|
||||
aux_cache.populate_wdb()
|
||||
cache.populate_wdb()
|
||||
elseif arguments[1] == 'tooltip' and arguments[2] == 'value' then
|
||||
aux_tooltip_value = not aux_tooltip_value
|
||||
print('Historical value in tooltip ' .. (aux_tooltip_value and 'enabled' or 'disabled') .. '.')
|
||||
|
||||
+7
-7
@@ -1,12 +1,12 @@
|
||||
module'aux.stack'
|
||||
module 'aux.core.stack'
|
||||
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
include 'green_t'
|
||||
include 'aux'
|
||||
include 'aux.util'
|
||||
include 'aux.control'
|
||||
include 'aux.util.color'
|
||||
|
||||
local info = M'aux.info'
|
||||
local info = require 'aux.util.info'
|
||||
|
||||
local state
|
||||
|
||||
|
||||
+13
-8
@@ -1,12 +1,17 @@
|
||||
module'aux.tooltip'
|
||||
module 'aux.core.tooltip'
|
||||
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
include 'green_t'
|
||||
include 'aux'
|
||||
include 'aux.util'
|
||||
include 'aux.control'
|
||||
include 'aux.util.color'
|
||||
|
||||
local info, disenchant, cache, money, history = M'aux.info', M'aux.disenchant', M'aux.cache', M'aux.money', M'aux.history'
|
||||
local info = require 'aux.util.info'
|
||||
local money = require 'aux.util.money'
|
||||
local cache = require 'aux.core.cache'
|
||||
local disenchant = require 'aux.core.disenchant'
|
||||
local history = require 'aux.core.history'
|
||||
local auction_listing = require 'aux.gui.auction_listing'
|
||||
|
||||
aux_tooltip_value = true
|
||||
|
||||
@@ -109,7 +114,7 @@ function extend_tooltip(tooltip, link, quantity)
|
||||
end
|
||||
if aux_tooltip_daily then
|
||||
local market_value = history.market_value(item_key)
|
||||
tooltip:AddLine('Today: ' .. (market_value and money.to_string2(market_value * quantity) .. ' (' .. aux_auction_listing.percentage_historical(round(market_value / value * 100)) .. ')' or GRAY_FONT_COLOR_CODE .. '---' .. FONT_COLOR_CODE_CLOSE), color.r, color.g, color.b)
|
||||
tooltip:AddLine('Today: ' .. (market_value and money.to_string2(market_value * quantity) .. ' (' .. auction_listing.percentage_historical(round(market_value / value * 100)) .. ')' or GRAY_FONT_COLOR_CODE .. '---' .. FONT_COLOR_CODE_CLOSE), color.r, color.g, color.b)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user