(beta) Full AceGui3.0 usage

This commit is contained in:
mikx
2018-01-18 09:34:24 -05:00
parent 70e0a3c2e6
commit 7f292e2a7b
9 changed files with 161 additions and 237 deletions

View File

@@ -11,10 +11,11 @@ local ENCOUNTER_LOOT_RECEIVED_Frame = CreateFrame("Frame")
ENCOUNTER_LOOT_RECEIVED_Frame:RegisterEvent("ENCOUNTER_LOOT_RECEIVED")
ENCOUNTER_LOOT_RECEIVED_Frame:SetScript("OnEvent",
function(self, event, ...)
local arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 = ...
name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(arg2)
value = MX.TSM:GetItemValue(arg2, "DBMarket");
if (value ~= nil and value >= Farmer_Logic_MinAlert and quality >= 1) then
MX:SendAlert(arg2,value);
local encounterID, itemID, itemLink, quantity, playerName, className, arg7, arg8, arg9 = ...
name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(itemID)
value = MX.TSM:GetItemValue(itemID, "DBMarket");
local pn = UnitName("player");
if (value ~= nil and value >= Farmer_Logic_MinAlert and quality >= 1 and playerName == pn) then
MX:SendAlert(itemID,value);
end
end)