WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Developer Chat (https://www.wowinterface.com/forums/forumdisplay.php?f=96)
-   -   Beta Starting Event Sequence (https://www.wowinterface.com/forums/showthread.php?t=34758)

Xrystal 09-03-10 05:12 AM

Beta Starting Event Sequence
 
1 Attachment(s)
Knowing this area is what tends to kick our butt I thought I would check this part out before doing anything else.

Not only does the generic variables no longer work but the old favorite ... doesn't seem to work either.

So I had to change my event watching addons event watcher function from :

local function OnEvent(self,event,...)
to
local function OnEvent(self,event,arg1,arg2,arg3,arg4,arg5)

Anyway, with that in mind and the addon watching the following events :

ADDON_LOADED
SPELLS_CHANGED
UPDATE_CHAT_WINDOWS
UPDATE_FLOATING_CHAT_WINDOWS
PLAYER_LOGIN
PLAYER_ENTERING_WORLD
PLAYER_ALIVE
VARIABLES_LOADED

On First Login from Character Loading Screen:

ADDON_LOADED XEventWatcher
UPDATE_FLOATING_CHAT_WINDOWS
UPDATE_CHAT_WINDOWS
VARIABLES_LOADED
Hundreds of SPELLS_CHANGED
ADDON_LOADED Blizzard_CombatLog
PLAYER_LOGIN
ADDON_LOADED Blizzard_TimeManager
ADDON_LOADED Blizzard_CombatText
ADDON_LOADED Blizzard_DebugTools
PLAYER_ENTERING_WORLD
PLAYER_ALIVE

/console reloadui - 1,2,3
ADDON_LOADED XEventWatcher
UPDATE_FLOATING_CHAT_WINDOWS
VARIABLES_LOADED
UPDATE_CHAT_WINDOWS
ADDON_LOADED Blizzard_CombatLog
PLAYER_LOGIN
ADDON_LOADED Blizzard_TimeManager
ADDON_LOADED Blizzard_CombatText
ADDON_LOADED Blizzard_DebugTools
PLAYER_ENTERING_WORLD


Adjusted addon to register all events and the resulting wtf file is attached. The counter is the order in which it triggered.

spiel2001 09-03-10 06:28 AM

Yes... one of the *key* changes that has been made is that the global variables event, arg1, arg2, etc. have all been removed from the code base. You must explicitly declare them in *all* "OnEvent" functions.


All times are GMT -6. The time now is 10:05 AM.

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