Jump to content

MCM Menu disable control


Zefire89

Recommended Posts

So i'm struggling with putting together an MCM menu script that disables a sliderbar when you toggle a checkbox and keeps it disabled when the user goes back into the menu. The wiki on that is really sort of vague. Anyone know of any mods that have the scripts unlocked that I could go examine? Or if you know how to do that and have to time to enlighten me, that would be even better. Thanks guys.

Link to comment
Share on other sites

In the OnPageReset where you have the option for the slider put an if statement around it. When the bool for the toggle is true allow the slider else disable the slider.

I am using my phone atm else I would copy paste an example.

 

On the PC now... here is a psuedo example seeing as I do not know your variables

 

If ToggleBool == true

OIDSlider = AddSliderOption(SliderName,SliderBool,OPTION_FLAG_NONE)

Else

OIDSlider = AddSliderOption(SliderName,SliderBool,OPTION_FLAG_DISABLED)

EndIf
Edited by IsharaMeradin
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...