Thread Tools Display Modes
09-03-10, 05:12 AM   #1
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Beta Starting Event Sequence

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.
Attached Files
File Type: lua XEventWatcher_Backup.lua (6.1 KB, 1093 views)
__________________
 
09-03-10, 06:28 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
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.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Developer Chat » Beta Starting Event Sequence

Thread Tools
Display Modes

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