→Proper Use Example
mNo edit summary |
|||
| Line 12: | Line 12: | ||
... | ... | ||
<Scripts> | <Scripts> | ||
<OnUpdate> MyAddon_OnUpdate( | <OnUpdate> MyAddon_OnUpdate(arg1); </OnUpdate> | ||
</Scripts> | </Scripts> | ||
</Frame> | </Frame> | ||
</Ui> | </Ui> | ||
The important part for us is the "arg1" parameter that we're passing to our function. This is a variable that's being inherited from the WoW system telling us how long it's been since the last update call cycle. | |||
; your_lua_file.lua | ; your_lua_file.lua | ||