Background for Skyrim SE
Member of the SKI_ConfigBase script
voidfunctionSetOptionFlags(inta_option, inta_flags, boola_noUpdate=false)

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

  1. inta_option

    GitHub Wiki Description (SkyUI)

    The option ID.

  2. inta_flags

    GitHub Wiki Description (SkyUI)

    The new option flags.

  3. 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)

Related Pages


Additional References

View this function on the GitHub Wiki for SkyUI

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.