ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [implemented] GetNumUIReloads (https://www.esoui.com/forums/showthread.php?t=6034)

sirinsidiator 01/25/16 07:28 AM

[implemented] GetNumUIReloads
 
Please consider adding a method that returns how often the UI has reloaded since engine start or some other way to reliably determine if the UI has been reloaded instead of freshly started after character selection.

ZOS_ChipHilseberg 01/25/16 01:31 PM

We can supply an event that gets fired at the same time as PLAYER_ACTIVATED that only happens when it's loading into the game from pregame, and never on a reload. Is that fine?

sirinsidiator 01/25/16 01:53 PM

I plan to use it so I can automatically pull up the last opened panel in LibAddonsMenu after a reloadui was issued to apply some settings that cannot be set without one.
I guess I could make it work with some callLater magic, but I think it would be more straight forward if I get the event on UI reload instead of game start. Maybe you can add 2 different events for both cases? I can think of at least one other feature I want to implement that would need the event on first load. :)

EDIT: Or maybe you could change EVENT_PLAYER_ACTIVATED so it passes a parameter which can be used to identify the reason for the event (game start, ui reload, zone change, etc).

ZOS_ChipHilseberg 01/25/16 01:56 PM

How about I add a parameter to the PLAYER_ACTIVATED event indicating if it's the initial load or not.

sirinsidiator 01/25/16 02:06 PM

Lol. Didn't see your message when I edited mine. Yes, that would be perfectly fine.

ZOS_ChipHilseberg 02/02/16 05:37 PM

This is done internally.


All times are GMT -6. The time now is 04:17 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI