Thread Tools Display Modes
02/15/15, 01:10 AM   #1
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Event / callback when reticle over interactible elements ?

Hello,

I would like to make a little addon for a friend, but it requires something that UI doesn't handle very properly, an event or a callback when Reticle is on an interctable object.

If we got EVENT_TARGET_CHANGED / EVENT_RETICLE_TARGET_CHANGED for players or NPC / Monsters. Look like we got nothing for node craft (my need), craft stations, skyshards, collectible items, containers, etc.

Without an answer I could hack ZO_Reticle:TryHandlingInteraction for my need, but maybe someone already looked at this.

Oh yeah. I find another very dirty solution.. an onUpdate xml function which will loop at each frame and use GetGameCameraInteractableActionInfo(). but so dirty, and I couldn't do my stuff.. Because I want to rewrite the text printed at screen.

Maybe someone has an idea?
  Reply With Quote
02/27/15, 06:54 AM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
It sounded like you already thought of this, but if you want something to look at it sounds like what: Votans Fisherman does (except with fishing holes), prehooking into RETICLE.interact, and altering the text that is displayed on the screen.
Lua Code:
  1. ZO_PreHookHandler(RETICLE.interact, "OnEffectivelyShown", NewInteraction)
  2.   ZO_PreHookHandler(RETICLE.interact, "OnHide", NewInteraction)
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Event / callback when reticle over interactible elements ?


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