Interface IGameConfig
This class represents the game's configuration.
Assembly: Dalamud.dll
View Source
public interface IGameConfig
Properties
System
Gets the collection of config options that persist between characters.
View Source
GameConfigSection System { get; }
UiConfig
Gets the collection of config options that are character specific.
View Source
GameConfigSection UiConfig { get; }
UiControl
Gets the collection of config options that are control mode specific. (Mouse and Keyboard / Gamepad).
View Source
GameConfigSection UiControl { get; }
Methods
TryGet(SystemConfigOption, out bool)
Attempts to get a boolean config value from the System section.
View Source
bool TryGet(SystemConfigOption option, out bool value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Option to get the value of. |
System.Boolean | value | The returned value of the config option. |
TryGet(SystemConfigOption, out uint)
Attempts to get a uint config value from the System section.
View Source
bool TryGet(SystemConfigOption option, out uint value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Option to get the value of. |
System.UInt32 | value | The returned value of the config option. |
TryGet(SystemConfigOption, out float)
Attempts to get a float config value from the System section.
View Source
bool TryGet(SystemConfigOption option, out float value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Option to get the value of. |
System.Single | value | The returned value of the config option. |
TryGet(SystemConfigOption, out string)
Attempts to get a string config value from the System section.
View Source
bool TryGet(SystemConfigOption option, out string value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Option to get the value of. |
System.String | value | The 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
bool TryGet(SystemConfigOption option, out UIntConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Option to get the properties of. |
Dalamud.Game.Config.UIntConfigProperties | properties | Details 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
bool TryGet(SystemConfigOption option, out FloatConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Option to get the properties of. |
Dalamud.Game.Config.FloatConfigProperties | properties | Details 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
bool TryGet(SystemConfigOption option, out PadButtonValue value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Option to get the value of. |
Dalamud.Game.Config.PadButtonValue | value | The 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
bool TryGet(SystemConfigOption option, out StringConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Option to get the properties of. |
Dalamud.Game.Config.StringConfigProperties | properties | Details of the option: Default Value. |
TryGet(UiConfigOption, out bool)
Attempts to get a boolean config value from the UiConfig section.
View Source
bool TryGet(UiConfigOption option, out bool value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Option to get the value of. |
System.Boolean | value | The returned value of the config option. |
TryGet(UiConfigOption, out uint)
Attempts to get a uint config value from the UiConfig section.
View Source
bool TryGet(UiConfigOption option, out uint value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Option to get the value of. |
System.UInt32 | value | The returned value of the config option. |
TryGet(UiConfigOption, out float)
Attempts to get a float config value from the UiConfig section.
View Source
bool TryGet(UiConfigOption option, out float value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Option to get the value of. |
System.Single | value | The returned value of the config option. |
TryGet(UiConfigOption, out string)
Attempts to get a string config value from the UiConfig section.
View Source
bool TryGet(UiConfigOption option, out string value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Option to get the value of. |
System.String | value | The 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
bool TryGet(UiConfigOption option, out UIntConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Option to get the properties of. |
Dalamud.Game.Config.UIntConfigProperties | properties | Details 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
bool TryGet(UiConfigOption option, out FloatConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Option to get the properties of. |
Dalamud.Game.Config.FloatConfigProperties | properties | Details 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
bool TryGet(UiConfigOption option, out StringConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Option to get the properties of. |
Dalamud.Game.Config.StringConfigProperties | properties | Details of the option: Default Value. |
TryGet(UiControlOption, out bool)
Attempts to get a boolean config value from the UiControl section.
View Source
bool TryGet(UiControlOption option, out bool value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Option to get the value of. |
System.Boolean | value | The returned value of the config option. |
TryGet(UiControlOption, out uint)
Attempts to get a uint config value from the UiControl section.
View Source
bool TryGet(UiControlOption option, out uint value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Option to get the value of. |
System.UInt32 | value | The returned value of the config option. |
TryGet(UiControlOption, out float)
Attempts to get a float config value from the UiControl section.
View Source
bool TryGet(UiControlOption option, out float value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Option to get the value of. |
System.Single | value | The returned value of the config option. |
TryGet(UiControlOption, out string)
Attempts to get a string config value from the UiControl section.
View Source
bool TryGet(UiControlOption option, out string value)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Option to get the value of. |
System.String | value | The 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
bool TryGet(UiControlOption option, out UIntConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Option to get the properties of. |
Dalamud.Game.Config.UIntConfigProperties | properties | Details 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
bool TryGet(UiControlOption option, out FloatConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Option to get the properties of. |
Dalamud.Game.Config.FloatConfigProperties | properties | Details 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
bool TryGet(UiControlOption option, out StringConfigProperties? properties)
Returns
System.Boolean
: A value representing the success.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Option to get the properties of. |
Dalamud.Game.Config.StringConfigProperties | properties | Details 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
void Set(SystemConfigOption option, bool value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Name of the config option. |
System.Boolean | value | New 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
void Set(SystemConfigOption option, uint value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Name of the config option. |
System.UInt32 | value | New 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
void Set(SystemConfigOption option, float value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Name of the config option. |
System.Single | value | New 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
void Set(SystemConfigOption option, string value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.SystemConfigOption | option | Name of the config option. |
System.String | value | New 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
void Set(UiConfigOption option, bool value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Name of the config option. |
System.Boolean | value | New 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
void Set(UiConfigOption option, uint value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Name of the config option. |
System.UInt32 | value | New 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
void Set(UiConfigOption option, float value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Name of the config option. |
System.Single | value | New 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
void Set(UiConfigOption option, string value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiConfigOption | option | Name of the config option. |
System.String | value | New 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
void Set(UiControlOption option, bool value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Name of the config option. |
System.Boolean | value | New 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
void Set(UiControlOption option, uint value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Name of the config option. |
System.UInt32 | value | New 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
void Set(UiControlOption option, float value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Name of the config option. |
System.Single | value | New 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
void Set(UiControlOption option, string value)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Game.Config.UiControlOption | option | Name of the config option. |
System.String | value | New 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
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
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
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
event EventHandler<ConfigChangeEvent> UiControlChanged
Event Type
System.EventHandler<Dalamud.Game.Config.ConfigChangeEvent>