refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-09-06 21:53:12 +02:00
parent f51d99134e
commit 8cb0b9bf3d
5 changed files with 112 additions and 145 deletions
+3 -2
View File
@@ -67,6 +67,7 @@ do
function env.private.USE_ITEM.set(f) tab.USE_ITEM = f end
function env.private.CLICK_LINK.set(f) tab.CLICK_LINK = f end
function env.public.ACTIVE.get() return tab == active_tab end
p(tab)
tinsert(tab_info, tab)
end
end
@@ -215,7 +216,7 @@ do
end
function ADDON_LOADED.Blizzard_CraftUI()
hook('CraftFrame_SetSelection', function(...) auto[arg] = true
local ret = temp-A0(orig.CraftFrame_SetSelection(unpack(arg)))
local ret = temp-A(orig.CraftFrame_SetSelection(unpack(arg)))
local id = GetCraftSelectionIndex()
local reagent_count = GetCraftNumReagents(id)
local total_cost = 0
@@ -242,7 +243,7 @@ do
end
function ADDON_LOADED.Blizzard_TradeSkillUI()
hook('TradeSkillFrame_SetSelection', function(...) auto[arg] = true
local ret = temp-A0(orig.TradeSkillFrame_SetSelection(unpack(arg)))
local ret = temp-A(orig.TradeSkillFrame_SetSelection(unpack(arg)))
local id = GetTradeSkillSelectionIndex()
local reagent_count = GetTradeSkillNumReagents(id)
local total_cost = 0