View Single Post
09-01-18, 03:33 PM   #3
Lyak
A Cyclonian
Join Date: Jul 2018
Posts: 46
Originally Posted by myrroddin View Post
Assuming you set up your saved variable correctly in OnInitialize, in your enable table, change your get and set functions:
Lua Code:
  1. -- code snippet
And delete lines 20-22 because that isn't going to work.

Now to disable size based on enable:
Lua Code:
  1. -- code snippet
Oh, so the disabled function should be registered within an option that I would like to grey out, not in an enable option?

That makes sense!

One more question tho.

In case if there are more than one option (let's say ten options, maybe), should I register disabled function for all of them via for loop or something?

+ What about child groups?
  Reply With Quote