Thread Tools Display Modes
06/16/15, 09:37 AM   #1
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 120
Event layer pushed

How do I detect what type of layer was pushed to the UI? Do I use SI_GAMECAMERAACTIONTYPE? I'd like to detect when I approach an npc and have the ability to interact with it.
  Reply With Quote
06/16/15, 09:43 AM   #2
XanDDemoX
AddOn Author - Click to view addons
Join Date: May 2015
Posts: 28
Originally Posted by Argusus View Post
How do I detect what type of layer was pushed to the UI? Do I use SI_GAMECAMERAACTIONTYPE? I'd like to detect when I approach an npc and have the ability to interact with it.
I think this might be what your looking for

Code:
local orig_interact = ZO_ReticleContainerInteract:GetHandler("OnShow")

local interact_handler = function(...)

    if orig_interact ~= nil then 
       orig_interact (...)
    end

end

ZO_ReticleContainerInteract:SetHandler("OnShow",interact_handler)
  Reply With Quote
06/16/15, 09:47 AM   #3
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 120
Awesome thanks! Where do I detect the type of interaction this is? Such as if it's a harvest vs a lock pick event?
  Reply With Quote
06/16/15, 10:34 AM   #4
XanDDemoX
AddOn Author - Click to view addons
Join Date: May 2015
Posts: 28
Originally Posted by Argusus View Post
Awesome thanks! Where do I detect the type of interaction this is? Such as if it's a harvest vs a lock pick event?
Have a look at Craft Auto Loot
  Reply With Quote
06/16/15, 11:12 AM   #5
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 120
Originally Posted by XanDDemoX View Post
Have a look at Craft Auto Loot
Thanks, I'll have a look!
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Event layer pushed


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off