diff --git a/aux-addon.lua b/aux-addon.lua index 7d3f77b..5389c73 100644 --- a/aux-addon.lua +++ b/aux-addon.lua @@ -388,7 +388,7 @@ end do local function cost_label(cost) local label = LIGHTYELLOW_FONT_COLOR_CODE..'(Total Cost: '..FONT_COLOR_CODE_CLOSE - label = label..(cost and money.to_string2(cost, nil, LIGHTYELLOW_FONT_COLOR_CODE) or GRAY_FONT_COLOR_CODE..'---'..FONT_COLOR_CODE_CLOSE) + label = label..(cost and aux.money.to_string2(cost, nil, LIGHTYELLOW_FONT_COLOR_CODE) or GRAY_FONT_COLOR_CODE..'---'..FONT_COLOR_CODE_CLOSE) label = label..LIGHTYELLOW_FONT_COLOR_CODE..')'..FONT_COLOR_CODE_CLOSE return label end diff --git a/core/slash.lua b/core/slash.lua index d8c48a3..2ff39ed 100644 --- a/core/slash.lua +++ b/core/slash.lua @@ -25,7 +25,7 @@ function _G.SlashCmdList.AUX(command) _G.aux_auctionable_items = {} log 'Item cache cleared.' elseif arguments[1] == 'populate' and arguments[2] == 'wdb' then - cache.populate_wdb() + aux.cache.populate_wdb() elseif arguments[1] == 'tooltip' and arguments[2] == 'value' then _G.aux_tooltip_value = not _G.aux_tooltip_value log('Historical value in tooltip '..(_G.aux_tooltip_value and 'enabled' or 'disabled')..'.') diff --git a/tabs/bids/core.lua b/tabs/bids/core.lua index f04ddc0..c514251 100644 --- a/tabs/bids/core.lua +++ b/tabs/bids/core.lua @@ -83,7 +83,7 @@ do bid_button:SetScript('OnClick', function() if test(record)(index) and listing:ContainsRecord(record) then place_bid('bidder', index, record.bid_price, record.bid_price < record.buyout_price and function() - info.bid_update(record) + aux.info.bid_update(record) listing:SetDatabase() end or L(listing.RemoveAuctionRecord, listing, record)) end diff --git a/tabs/post/core.lua b/tabs/post/core.lua index a5debf0..da40abd 100644 --- a/tabs/post/core.lua +++ b/tabs/post/core.lua @@ -1,4 +1,4 @@ -aux 'post_tab' local scan, scan_util, post, history, info, persistence, item_listing, al, sorting = aux.scan, aux.scan_util, aux.post, aux.history, aux.info, aux.persistence, aux.item_listing, aux.auction_listing, aux.sorting +aux 'post_tab' local scan, scan_util, history, info, persistence, item_listing, al, sorting = aux.scan, aux.scan_util, aux.history, aux.info, aux.persistence, aux.item_listing, aux.auction_listing, aux.sorting local DURATION_4, DURATION_8, DURATION_24 = 120, 480, 1440 @@ -213,7 +213,7 @@ function post_auctions() duration_code = 4 end - post.start( + aux.post.start( key, stack_size, duration, diff --git a/tabs/post/frame.lua b/tabs/post/frame.lua index 75e2b22..1189b61 100644 --- a/tabs/post/frame.lua +++ b/tabs/post/frame.lua @@ -104,7 +104,7 @@ function create_frames() btn:SetHeight(24) btn:SetText('Refresh') btn:SetScript('OnClick', function() - scan.abort(scan_id) + aux.scan.abort(scan_id) refresh_entries() refresh = true end) @@ -226,7 +226,7 @@ function create_frames() unit_buyout_price:SetFocus() end end) - editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and aux.money.GOLD_TEXT or str == 's' and aux.money.SILVER_TEXT or str == 'c' and aux.money.COPPER_TEXT end) end + editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and money.GOLD_TEXT or str == 's' and money.SILVER_TEXT or str == 'c' and money.COPPER_TEXT end) end editbox.formatter = function() return money.to_string(get_unit_start_price(), true, nil, 3) end editbox.change = function() refresh = true end editbox.enter = function() this:ClearFocus() end @@ -261,7 +261,7 @@ function create_frames() stack_size_slider.editbox:SetFocus() end end) - editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and aux.money.GOLD_TEXT or str == 's' and aux.money.SILVER_TEXT or str == 'c' and aux.money.COPPER_TEXT end) end + editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and money.GOLD_TEXT or str == 's' and money.SILVER_TEXT or str == 'c' and money.COPPER_TEXT end) end editbox.formatter = function() return money.to_string(get_unit_buyout_price(), true, nil, 3) end editbox.change = function() refresh = true end editbox.enter = function() this:ClearFocus() end