Skip to main content

Interface IGameConfig

This class represents the game's configuration.

Assembly: Dalamud.dll
View Source
Declaration
public interface IGameConfig

Properties

System

Gets the collection of config options that persist between characters.

View Source
Declaration
GameConfigSection System { get; }

UiConfig

Gets the collection of config options that are character specific.

View Source
Declaration
GameConfigSection UiConfig { get; }

UiControl

Gets the collection of config options that are control mode specific. (Mouse and Keyboard / Gamepad).

View Source
Declaration
GameConfigSection UiControl { get; }

Methods

TryGet(SystemConfigOption, out bool)

Attempts to get a boolean config value from the System section.

View Source
Declaration
bool TryGet(SystemConfigOption option, out bool value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionOption to get the value of.
System.BooleanvalueThe returned value of the config option.

TryGet(SystemConfigOption, out uint)

Attempts to get a uint config value from the System section.

View Source
Declaration
bool TryGet(SystemConfigOption option, out uint value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionOption to get the value of.
System.UInt32valueThe returned value of the config option.

TryGet(SystemConfigOption, out float)

Attempts to get a float config value from the System section.

View Source
Declaration
bool TryGet(SystemConfigOption option, out float value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionOption to get the value of.
System.SinglevalueThe returned value of the config option.

TryGet(SystemConfigOption, out string)

Attempts to get a string config value from the System section.

View Source
Declaration
bool TryGet(SystemConfigOption option, out string value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionOption to get the value of.
System.StringvalueThe returned value of the config option.

TryGet(SystemConfigOption, out UIntConfigProperties?)

Attempts to get the properties of a UInt option from the System section.

View Source
Declaration
bool TryGet(SystemConfigOption option, out UIntConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionOption to get the properties of.
Dalamud.Game.Config.UIntConfigPropertiespropertiesDetails of the option: Minimum, Maximum, and Default values.

TryGet(SystemConfigOption, out FloatConfigProperties?)

Attempts to get the properties of a Float option from the System section.

View Source
Declaration
bool TryGet(SystemConfigOption option, out FloatConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionOption to get the properties of.
Dalamud.Game.Config.FloatConfigPropertiespropertiesDetails of the option: Minimum, Maximum, and Default values.

TryGet(SystemConfigOption, out PadButtonValue)

Attempts to get a string config value as a gamepad button enum value from the UiConfig section.

View Source
Declaration
bool TryGet(SystemConfigOption option, out PadButtonValue value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionOption to get the value of.
Dalamud.Game.Config.PadButtonValuevalueThe returned value of the config option.

TryGet(SystemConfigOption, out StringConfigProperties?)

Attempts to get the properties of a String option from the System section.

View Source
Declaration
bool TryGet(SystemConfigOption option, out StringConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionOption to get the properties of.
Dalamud.Game.Config.StringConfigPropertiespropertiesDetails of the option: Default Value.

TryGet(UiConfigOption, out bool)

Attempts to get a boolean config value from the UiConfig section.

View Source
Declaration
bool TryGet(UiConfigOption option, out bool value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionOption to get the value of.
System.BooleanvalueThe returned value of the config option.

TryGet(UiConfigOption, out uint)

Attempts to get a uint config value from the UiConfig section.

View Source
Declaration
bool TryGet(UiConfigOption option, out uint value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionOption to get the value of.
System.UInt32valueThe returned value of the config option.

TryGet(UiConfigOption, out float)

Attempts to get a float config value from the UiConfig section.

View Source
Declaration
bool TryGet(UiConfigOption option, out float value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionOption to get the value of.
System.SinglevalueThe returned value of the config option.

TryGet(UiConfigOption, out string)

Attempts to get a string config value from the UiConfig section.

View Source
Declaration
bool TryGet(UiConfigOption option, out string value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionOption to get the value of.
System.StringvalueThe returned value of the config option.

TryGet(UiConfigOption, out UIntConfigProperties?)

Attempts to get the properties of a UInt option from the UiConfig section.

View Source
Declaration
bool TryGet(UiConfigOption option, out UIntConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionOption to get the properties of.
Dalamud.Game.Config.UIntConfigPropertiespropertiesDetails of the option: Minimum, Maximum, and Default values.

TryGet(UiConfigOption, out FloatConfigProperties?)

Attempts to get the properties of a Float option from the UiConfig section.

View Source
Declaration
bool TryGet(UiConfigOption option, out FloatConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionOption to get the properties of.
Dalamud.Game.Config.FloatConfigPropertiespropertiesDetails of the option: Minimum, Maximum, and Default values.

TryGet(UiConfigOption, out StringConfigProperties?)

Attempts to get the properties of a String option from the UiConfig section.

View Source
Declaration
bool TryGet(UiConfigOption option, out StringConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionOption to get the properties of.
Dalamud.Game.Config.StringConfigPropertiespropertiesDetails of the option: Default Value.

TryGet(UiControlOption, out bool)

Attempts to get a boolean config value from the UiControl section.

View Source
Declaration
bool TryGet(UiControlOption option, out bool value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionOption to get the value of.
System.BooleanvalueThe returned value of the config option.

TryGet(UiControlOption, out uint)

Attempts to get a uint config value from the UiControl section.

View Source
Declaration
bool TryGet(UiControlOption option, out uint value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionOption to get the value of.
System.UInt32valueThe returned value of the config option.

TryGet(UiControlOption, out float)

Attempts to get a float config value from the UiControl section.

View Source
Declaration
bool TryGet(UiControlOption option, out float value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionOption to get the value of.
System.SinglevalueThe returned value of the config option.

TryGet(UiControlOption, out string)

Attempts to get a string config value from the UiControl section.

View Source
Declaration
bool TryGet(UiControlOption option, out string value)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionOption to get the value of.
System.StringvalueThe returned value of the config option.

TryGet(UiControlOption, out UIntConfigProperties?)

Attempts to get the properties of a UInt option from the UiControl section.

View Source
Declaration
bool TryGet(UiControlOption option, out UIntConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionOption to get the properties of.
Dalamud.Game.Config.UIntConfigPropertiespropertiesDetails of the option: Minimum, Maximum, and Default values.

TryGet(UiControlOption, out FloatConfigProperties?)

Attempts to get the properties of a Float option from the UiControl section.

View Source
Declaration
bool TryGet(UiControlOption option, out FloatConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionOption to get the properties of.
Dalamud.Game.Config.FloatConfigPropertiespropertiesDetails of the option: Minimum, Maximum, and Default values.

TryGet(UiControlOption, out StringConfigProperties?)

Attempts to get the properties of a String option from the UiControl section.

View Source
Declaration
bool TryGet(UiControlOption option, out StringConfigProperties? properties)
Returns

System.Boolean: A value representing the success.

Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionOption to get the properties of.
Dalamud.Game.Config.StringConfigPropertiespropertiesDetails of the option: Default Value.

Set(SystemConfigOption, bool)

Set a boolean config option in the System config section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(SystemConfigOption option, bool value)
Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionName of the config option.
System.BooleanvalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(SystemConfigOption, uint)

Set a unsigned integer config option in the System config section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(SystemConfigOption option, uint value)
Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionName of the config option.
System.UInt32valueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(SystemConfigOption, float)

Set a float config option in the System config section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(SystemConfigOption option, float value)
Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionName of the config option.
System.SinglevalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(SystemConfigOption, string)

Set a string config option in the System config section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(SystemConfigOption option, string value)
Parameters
TypeNameDescription
Dalamud.Game.Config.SystemConfigOptionoptionName of the config option.
System.StringvalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(UiConfigOption, bool)

Set a boolean config option in the UiConfig section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(UiConfigOption option, bool value)
Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionName of the config option.
System.BooleanvalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(UiConfigOption, uint)

Set a unsigned integer config option in the UiConfig section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(UiConfigOption option, uint value)
Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionName of the config option.
System.UInt32valueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(UiConfigOption, float)

Set a float config option in the UiConfig section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(UiConfigOption option, float value)
Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionName of the config option.
System.SinglevalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(UiConfigOption, string)

Set a string config option in the UiConfig section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(UiConfigOption option, string value)
Parameters
TypeNameDescription
Dalamud.Game.Config.UiConfigOptionoptionName of the config option.
System.StringvalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(UiControlOption, bool)

Set a boolean config option in the UiControl config section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(UiControlOption option, bool value)
Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionName of the config option.
System.BooleanvalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(UiControlOption, uint)

Set a uint config option in the UiControl config section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(UiControlOption option, uint value)
Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionName of the config option.
System.UInt32valueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(UiControlOption, float)

Set a float config option in the UiControl config section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(UiControlOption option, float value)
Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionName of the config option.
System.SinglevalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Set(UiControlOption, string)

Set a string config option in the UiControl config section. Note: Not all config options will be be immediately reflected in the game.

View Source
Declaration
void Set(UiControlOption option, string value)
Parameters
TypeNameDescription
Dalamud.Game.Config.UiControlOptionoptionName of the config option.
System.StringvalueNew value of the config option.
Exceptions

Dalamud.Game.Config.ConfigOptionNotFoundException
Throw if the config option is not found. System.Diagnostics.UnreachableException
Thrown if the name of the config option is found, but the struct was not.

Events

Changed

Event which is fired when any game config option is changed.

View Source
Declaration
event EventHandler<ConfigChangeEvent> Changed
Event Type

System.EventHandler<Dalamud.Game.Config.ConfigChangeEvent>

SystemChanged

Event which is fired when a system config option is changed.

View Source
Declaration
event EventHandler<ConfigChangeEvent> SystemChanged
Event Type

System.EventHandler<Dalamud.Game.Config.ConfigChangeEvent>

UiConfigChanged

Event which is fired when a UiConfig option is changed.

View Source
Declaration
event EventHandler<ConfigChangeEvent> UiConfigChanged
Event Type

System.EventHandler<Dalamud.Game.Config.ConfigChangeEvent>

UiControlChanged

Event which is fired when a UiControl config option is changed.

View Source
Declaration
event EventHandler<ConfigChangeEvent> UiControlChanged
Event Type

System.EventHandler<Dalamud.Game.Config.ConfigChangeEvent>