Thread Tools Display Modes
06-14-10, 09:44 AM   #21
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 17
Originally Posted by Grimsin View Post
you mean the Party1 arg's? its just like on the event ADDON_LOADED the name of your addon becomes an arg... all the unit events except the unit args.

i have the onscript handler and everything seems to be working fine but the events dont seem to be registering...
Honestly I vaven't ever heared of that. It's not documented and a quick test shows me, that it doesn't work. Unless you have replaced the :RegisterEvent() func by some other, which I don't belive.
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
  Reply With Quote
06-14-10, 09:46 AM   #22
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
yea i did that... if i put GUIPartyFrame. infront of it it says its not a global... if i remove it i load bug free but the events are not actually registerd
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
06-14-10, 09:58 AM   #23
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 17
Originally Posted by Grimsin View Post
yea i did that... if i put GUIPartyFrame. infront of it it says its not a global... if i remove it i load bug free but the events are not actually registerd
Perhaps you have a problem with your scope then.

Where do you try to do that? Because GUIPartyFrame is only visible in createPartyEventFrame() in your code snipplet.
Also, the returned value of createPartyEventFrame() seems to go nowhere.
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
  Reply With Quote
06-14-10, 10:02 AM   #24
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
how would i make the GUIPartyFrame vis everywhere? because im trying to use those functions inside of another function...
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
06-14-10, 10:03 AM   #25
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 17
Perhaps you should go back to some of the basics

http://www.wowwiki.com/Lua_variable_scoping
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
  Reply With Quote
06-14-10, 01:31 PM   #26
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,917
Originally Posted by Grimsin View Post
how would i make the GUIPartyFrame vis everywhere? because im trying to use those functions inside of another function...
Apart from Chimaine's suggestion .. the route I use allows it to work across the whole addon.


local addonName, addonData = ...

addonData.GUIPartyFrame = CreateFrame(...)
etc


Then all files in the TOC after this file with that first line added at the top of each file will have access to that variable.
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » error more then 60 upvalues

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