Thread Tools Display Modes
Prev Previous Post   Next Post Next
07/07/17, 04:21 PM   #1
rewt3498
Join Date: Jun 2015
Posts: 7
How to prevent changes to HUD being undone during gameplay

I have an addon that makes some changes to the HUD (Note: I am using gamepad mode). Things that happen during play seem to be counteracting these changes I've made (in some cases outright undoing parts of them, or partially undoing some of them, like slightly decreasing transparency).

I would be grateful if anyone could take a look at the script and see if they know a better approach to solve this problem than the solutions I have attempted (at the bottom of the script).

https://pastebin.com/q4pH14QM

I'll briefly outline the structure of the script for anyone who does take a look to hopefully save you some time: Functions in the beginning all change elements of the HUD they are named after. Last function in the script is what is called during EVENT_ADD_ON_LOADED. Below this function are my attempted solutions.

The changes to the compass are partially undone when transitioning from main menu back to playing. The changes in the alpha of the quest tracker title are undone when changing the focused quest. The solutions I attempted were targeted with this in mind.

However, it now seems there are other circumstances that revert these changes that I can't pin down exactly. I'm therefore hoping there is a more elegant solution that I just don't know about.

As a minor sidenote: I would be grateful if anyone could have a look at my use of zo_callLater and suggest a more proper way to accomplish what I've attempted. I found the script didn't work without it.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » How to prevent changes to HUD being undone during gameplay


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