diff --git a/aux-addon.toc b/aux-addon.toc index 320aaeb..85f643e 100644 --- a/aux-addon.toc +++ b/aux-addon.toc @@ -2,7 +2,7 @@ ## Author: shirsig ## Title: aux ## Notes: Auction House replacement -## SavedVariables: aux, aux_scale, aux_post_bid, aux_ignore_owner, aux_items, aux_item_ids, aux_auctionable_items, aux_merchant_buy, aux_merchant_sell +## SavedVariables: aux, aux_scale, aux_post_bid, aux_ignore_owner, aux_crafting_cost, aux_items, aux_item_ids, aux_auctionable_items, aux_merchant_buy, aux_merchant_sell libs\package.lua libs\T.lua diff --git a/core/crafting.lua b/core/crafting.lua index 00eb22a..74cdeab 100644 --- a/core/crafting.lua +++ b/core/crafting.lua @@ -8,6 +8,9 @@ local history = require 'aux.core.history' local search_tab = require 'aux.tabs.search' function aux.handle.LOAD() + if not aux_crafting_cost then + return + end aux.event_listener('ADDON_LOADED', function() if arg1 == 'Blizzard_CraftUI' then craft_ui_loaded() diff --git a/core/slash.lua b/core/slash.lua index 61078b9..4574b90 100644 --- a/core/slash.lua +++ b/core/slash.lua @@ -8,6 +8,7 @@ function aux.handle.LOAD2() end _G.aux_ignore_owner = true +_G.aux_crafting_cost = true function status(enabled) return (enabled and aux.color.green'on' or aux.color.red'off') @@ -28,6 +29,9 @@ function SlashCmdList.AUX(command) elseif arguments[1] == 'post' and arguments[2] == 'bid' then _G.aux_post_bid = not aux_post_bid aux.print('post bid ' .. status(aux_post_bid)) + elseif arguments[1] == 'crafting' and arguments[2] == 'cost' then + _G.aux_crafting_cost = not aux_crafting_cost + aux.print('crafting cost ' .. status(aux_crafting_cost)) elseif arguments[1] == 'tooltip' and arguments[2] == 'value' then tooltip_settings.value = not tooltip_settings.value aux.print('tooltip value ' .. status(tooltip_settings.value)) @@ -58,6 +62,7 @@ function SlashCmdList.AUX(command) aux.print('- scale [' .. aux.color.blue(aux_scale) .. ']') aux.print('- ignore owner [' .. status(aux_ignore_owner) .. ']') aux.print('- post bid [' .. status(aux_post_bid) .. ']') + aux.print('- crafting cost [' .. status(aux_crafting_cost) .. ']') aux.print('- tooltip value [' .. status(tooltip_settings.value) .. ']') aux.print('- tooltip daily [' .. status(tooltip_settings.daily) .. ']') aux.print('- tooltip merchant buy [' .. status(tooltip_settings.merchant_buy) .. ']')