You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
607 B

--Unused
local _, addon = ...
local API = addon.API;
local EL = CreateFrame("Frame");
EL:RegisterEvent("PLAYER_SOFT_INTERACT_CHANGED");
function EL:OnEvent(event, ...)
if event == "PLAYER_SOFT_INTERACT_CHANGED" then
local oldTarget, newTarget = ...; --GUID
if newTarget ~= self.guid then
self.guid = newTarget;
print(newTarget)
if newTarget then
local fileID = API.GetInteractType("softinteract");
print(fileID);
end
end
end
end
EL:SetScript("OnEvent", EL.OnEvent);