WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Developer Chat (https://www.wowinterface.com/forums/forumdisplay.php?f=96)
-   -   Calling Functions (https://www.wowinterface.com/forums/showthread.php?t=25416)

Rhamses 07-13-09 04:52 PM

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
ExecuteWarning_Update();

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

Rhamses

Xrystal 07-14-09 12:20 AM

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.


All times are GMT -6. The time now is 08:44 PM.

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