View Single Post
04/15/14, 02:16 PM   #12
GetBackYouPansy
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 7
Originally Posted by Ouijan View Post
You will also need to give your function the name of which label you have clicked on so it knows which one to change, have a look at sending parameters to functions in lua for that
The On* event script blocks defined in XML have a "local self" so you don't need to pass names around, you can pass the thing itself

See the ScriptArguments at http://wiki.esoui.com/UI_XML#OnUpdate for example, or an example in the wild here: link.

Last edited by GetBackYouPansy : 04/15/14 at 02:19 PM.
  Reply With Quote