Skip to content

H7OptionsManager

Class in MMH7Game · MMH7Game.H7OptionsManager · native

Object › H7OptionsManager

Using it from Lua
h7.find_all("H7OptionsManager")            -- live instances
h7.find_class("MMH7Game.H7OptionsManager")   -- the class
h7.hook("MMH7Game.H7OptionsManager.CreateOptionsFromKeybinds", fn)

Enums

EOptionCategory

OC_VIDEO = 0, OC_SOUND = 1, OC_GAMEPLAY = 2, OC_GUI = 3, OC_KEYBINDINGS = 4, OC_DEBUG = 5, OC_MAX = 6

EOptionChangeMode

OM_LIVE = 0, OM_APPLY = 1, OM_RESTART = 2, OM_MAX = 3

EOptionTypeEnum

OTE_BOOL = 0, OTE_FLOAT = 1, OTE_ENUM = 2, OTE_KEYBIND = 3, OTE_MAX = 4

Structs

OptionBoolStruct

Defaults
SetFunction=None
GetFunction=None

OptionEnumStruct

Defaults
SetFunction=None
GetFunction=None
GetListFunction=None

OptionFloatStruct

Defaults
SetFunction=None
GetFunction=None
GetConstraintsFunction=None

OptionKeyStruct

FieldType
KeyBindH7Keybind
Defaults
KeyBind=(KeyBind=(Name="None",Command="",Control=false,Shift=false,Alt=false,bIgnoreCtrl=false,bIgnoreShift=false,bIgnoreAlt=false),secondaryKeybind=(Name="None",Command="",Control=false,Shift=false,Alt=false,bIgnoreCtrl=false,bIgnoreShift=false,bIgnoreAlt=false),Category=EKeybindCategory.KC_GENE...

OptionStruct

FieldType
IDkeystring
CategoryH7OptionsManager.EOptionCategory
TypeH7OptionsManager.EOptionTypeEnum
ModeH7OptionsManager.EOptionChangeMode
Enabledbool
boolFunctionsOptionBoolStruct
floatFunctionsOptionFloatStruct
enumFunctionsOptionEnumStruct
keybindFunctionsOptionKeyStruct
Defaults
IDkey=""
Category=EOptionCategory.OC_VIDEO
Type=EOptionTypeEnum.OTE_BOOL
Mode=EOptionChangeMode.OM_LIVE
Enabled=true
boolFunctions=(SetFunction=None,GetFunction=None)
floatFunctions=(SetFunction=None,GetFunction=None,GetConstraintsFunction=None)
enumFunctions=(SetFunction=None,GetFunction=None,GetListFunction=None)
keybindFunctions=(KeyBind=(KeyBind=(Name="None",Command="",Control=false,Shift=false,Alt=false,bIgnoreCtrl=false,bIgnoreShift=false,bIgnoreAlt=false),secondaryKeybind=(Name="None",Command="",Control=false,Shift=false,Alt=false,bIgnoreCtrl=false,bIgnoreShift=false,bIgnoreAlt=false),Category=EKeybi...

Properties

NameTypeNotes
mOptionListarray<OptionStruct>protected
mRewardOptionsBuildedboolprotected

Functions

NameDeclaration
CreateOptionsFromKeybindsnative function CreateOptionsFromKeybinds()
CreateRewardOptionsfunction CreateRewardOptions()
CreateSetupfunction CreateSetup()
GetBoolDelegatedelegate bool GetBoolDelegate()
GetEnumDelegatedelegate int GetEnumDelegate()
GetEnumListDelegatedelegate array GetEnumListDelegate()
GetFloatConstraintsDelegatedelegate Vector2D GetFloatConstraintsDelegate()
GetFloatDelegatedelegate float GetFloatDelegate()
GetInstancestatic function H7OptionsManager GetInstance()
GetOptionsfunction array<OptionStruct> GetOptions()
GetOptionStructfunction OptionStruct GetOptionStruct(string optionKey)
GetPanningPercentConstraintsfunction Vector2D GetPanningPercentConstraints()
GetPercentConstraintsfunction Vector2D GetPercentConstraints()
GetSettingfunction OptionStruct GetSetting(string Key)
GetSettingBoolfunction bool GetSettingBool(string Key)
GetSettingConstraintsfunction Vector2D GetSettingConstraints(string Key)
GetSettingEnumfunction int GetSettingEnum(string Key)
GetSettingEnumListfunction array GetSettingEnumList(string Key)
GetSettingFloatfunction float GetSettingFloat(string Key)
GetSettingIndexfunction int GetSettingIndex(string Key)
GetSoundConstraintsfunction Vector2D GetSoundConstraints()
ResetAllOptionsfunction ResetAllOptions()
SaveAllConfigsfunction SaveAllConfigs()
SetBoolDelegatedelegate SetBoolDelegate(bool val)
SetEnumDelegatedelegate SetEnumDelegate(int val)
SetFloatDelegatedelegate SetFloatDelegate(float val)
SetSettingBoolfunction SetSettingBool(string Key, bool val)
SetSettingEnumfunction SetSettingEnum(string Key, int val)
SetSettingFloatfunction SetSettingFloat(string Key, float val)

Inherited

FromMembers
Object13 properties, 308 functions