Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/05/14, 06:18 PM   #1
Kith
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 49
Question About RegisterForUpdate

I'm working on a mod to 'enhance' the stock UI rather than replace it for things like attribute bars and one of the options I want to offer is to set a minimum-fade (alpha) level for the bars out of combat. Now i'm aware of this function:

EVENT_MANAGER:UnregisterForUpdate("ZO_PlayerAttributeMagickaFadeUpdate")

That will stop the bars fading entirely, but then requires that I need to hook a couple of events to manually change alpha levels as I go, and also the method used by 'improvedattributebars' that runs an OnUpdate handler to constantly force the alpha back up to the desired level.

Is there anyway to find out how the FadeUpdate function is working and modify it to set a minimum alpha level, as in, does anybody have a full access to the current UI and would be willing to nudge over a snippet so I could mess with such? I'd like to maintain the current fading in/out that the UI has just without it fading entirely and I don't really want to use OnUpdate for this.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Question About RegisterForUpdate


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