- NEW FEATURE
- ButtonMaster can now persist global state.
What This means :
Buttons can have toggle capabilities that persist through play sessions.
The lua env for any button/label/etc will now all contain an _State table which can be be used by any button or label or lua icon setter.
Example:
Lua Label: return _State.Chase and "Chase Off" or "Chase On"
Lua Icon: return _State.Chase and 197 or 196
Button Command:
--lua
if _State.Chase then
mq.cmd("/dgze /rgl chaseoff")
else
mq.cmd("/dgze /rgl chaseon ${Me.Name}")
end
_State.Chase = not _State.Chase
-- end lua
This will create a dynamic button that remembers it's state between restarts of buttonmaster.