crafting cost label optional with /aux crafting cost (requires /run ReloadUI() to take effect)
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
## Author: shirsig
|
## Author: shirsig
|
||||||
## Title: aux
|
## Title: aux
|
||||||
## Notes: Auction House replacement
|
## 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\package.lua
|
||||||
libs\T.lua
|
libs\T.lua
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ local history = require 'aux.core.history'
|
|||||||
local search_tab = require 'aux.tabs.search'
|
local search_tab = require 'aux.tabs.search'
|
||||||
|
|
||||||
function aux.handle.LOAD()
|
function aux.handle.LOAD()
|
||||||
|
if not aux_crafting_cost then
|
||||||
|
return
|
||||||
|
end
|
||||||
aux.event_listener('ADDON_LOADED', function()
|
aux.event_listener('ADDON_LOADED', function()
|
||||||
if arg1 == 'Blizzard_CraftUI' then
|
if arg1 == 'Blizzard_CraftUI' then
|
||||||
craft_ui_loaded()
|
craft_ui_loaded()
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ function aux.handle.LOAD2()
|
|||||||
end
|
end
|
||||||
|
|
||||||
_G.aux_ignore_owner = true
|
_G.aux_ignore_owner = true
|
||||||
|
_G.aux_crafting_cost = true
|
||||||
|
|
||||||
function status(enabled)
|
function status(enabled)
|
||||||
return (enabled and aux.color.green'on' or aux.color.red'off')
|
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
|
elseif arguments[1] == 'post' and arguments[2] == 'bid' then
|
||||||
_G.aux_post_bid = not aux_post_bid
|
_G.aux_post_bid = not aux_post_bid
|
||||||
aux.print('post bid ' .. status(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
|
elseif arguments[1] == 'tooltip' and arguments[2] == 'value' then
|
||||||
tooltip_settings.value = not tooltip_settings.value
|
tooltip_settings.value = not tooltip_settings.value
|
||||||
aux.print('tooltip value ' .. status(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('- scale [' .. aux.color.blue(aux_scale) .. ']')
|
||||||
aux.print('- ignore owner [' .. status(aux_ignore_owner) .. ']')
|
aux.print('- ignore owner [' .. status(aux_ignore_owner) .. ']')
|
||||||
aux.print('- post bid [' .. status(aux_post_bid) .. ']')
|
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 value [' .. status(tooltip_settings.value) .. ']')
|
||||||
aux.print('- tooltip daily [' .. status(tooltip_settings.daily) .. ']')
|
aux.print('- tooltip daily [' .. status(tooltip_settings.daily) .. ']')
|
||||||
aux.print('- tooltip merchant buy [' .. status(tooltip_settings.merchant_buy) .. ']')
|
aux.print('- tooltip merchant buy [' .. status(tooltip_settings.merchant_buy) .. ']')
|
||||||
|
|||||||
Reference in New Issue
Block a user