[AceConfig] Grey out options when disabled
Hi all,
I am to learn AceConfig and got a question regarding greying options out when disabled. So, I currently have the following: Lua Code:
It seems like I could grey out the size option with enable's disabled function, but I ain't not too sure :confused: Could I please get a help? Thank you in advance! |
Assuming you set up your saved variable correctly in OnInitialize, in your enable table, change your get and set functions:
Lua Code:
Now to disable size based on enable: Lua Code:
|
Quote:
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? |
You can disable options individually or as a whole child group.
https://www.wowace.com/projects/ace3...tables#title-2 |
Quote:
Just needed to put disabled function under the group, not under each individual options. Thanks, Seerah :banana:!! |
All times are GMT -6. The time now is 12:37 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI