Originally Posted by Ouijan
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.