Thread Tools Display Modes
Unread 07-13-09, 04:52 PM   #1
A Theradrim Guardian
Join Date: Jun 2009
Posts: 61
Calling Functions

What I write below works. I am trying to figure out why

in the Lua
function ExecuteWarning_Update(name, health, maxhealth)

When I go back to the xml

I see the button has an on load script
this:RegisterEvent("UNIT_HEALTH"); this:RegisterEvent("UNIT_MAXHEALTH"); this:RegisterEvent("UNIT_NAME_UPDATE");

with on_event

How much wiggle room is there or are there some variable definitions that I missed somewhere?

Rhamses is offline  
Unread 07-14-09, 12:20 AM   #2
nUI User and Supporter
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,073
Hmm, I am guessing that functions can have parameters as long as they are not called with parameters if they don't exist in reality. *shrugs* Just a guess mind you.
Xrystal is offline  

Go BackWoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Developer Chat » Calling Functions

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