Allow setting locked field of choose-elem-button as an argument to .add()
Allow setting locked field of choose-elem-button as an argument to .add()
LuaGuiElement has a handy boolean option that prevents the user from modifying the value of a choose-elem-button. However, for some reason this can only be set after the element is created by doing element.locked = true. It would be much more convenient if this field could be set by adding locked = true to the argument table passed to parent.add().
Re: Allow setting locked field of choose-elem-button as an argument to .add()
Ok. Added for the next release.
If you want to get ahold of me I'm almost always on Discord.