- Found in:
- SkyUI
Description
GitHub Wiki Description (SkyUI)
Sets the option flags.
Accepted flags are
OPTION_FLAG_NONE, to clear the flags;OPTION_FLAG_DISABLED, to grey out and disable the option.OPTION_FLAG_HIDDEN, to hide an option. It'll behave like an empty option.OPTION_FLAG_WITH_UNMAP, to enable the unmap button for keymap options.
Context
OnOptionSelect, OnOptionSliderAccept, OnOptionMenuAccept, OnOptionColorAccept, OnOptionKeyMapChange, OnOptionDefault
Documentation String
Sets the option flags
Parameters
inta_option
GitHub Wiki Description (SkyUI)
The option ID.
inta_flags
GitHub Wiki Description (SkyUI)
The new option flags.
boola_noUpdate=false
Examples
SetOptionFlags(x, OPTION_FLAG_DISABLED) to disable an option.
SetOptionFlags(x, OPTION_FLAG_NONE) to re-enable it.
Auto-Generated Example
int myInt__a_option
int myInt__a_flags
bool myBool__a_noUpdate
mySKI_ConfigBase__toCallFunctionOn.SetOptionFlags(myInt__a_option, myInt__a_flags, myBool__a_noUpdate)