Skip to main content
Version: 15.x (API 15) [Legacy]

Interface IGameConfig

This class represents the game's configuration.

Remarks​

Accessing Dalamud.Game.Config.GameConfigSection-typed properties such as Dalamud.Plugin.Services.IGameConfig.System, directly or indirectly via Dalamud.Plugin.Services.IGameConfig.TryGet(Dalamud.Game.Config.SystemConfigOption,System.Boolean@), Dalamud.Plugin.Services.IGameConfig.Set(Dalamud.Game.Config.SystemConfigOption,System.Boolean), or alike will block, if the game is not done loading.

Therefore, avoid accessing configuration from your plugin constructor, especially if your plugin sets Dalamud.Plugin.Internal.Types.PluginManifest.LoadRequiredState to 2 and Dalamud.Plugin.Internal.Types.PluginManifest.LoadSync to true. If property access from the plugin constructor is desired, do the value retrieval asynchronously via Dalamud.Plugin.Services.IFramework.RunOnFrameworkThread``1(System.Func<``0>); do not wait for the result right away.

Assembly: Dalamud.dll​
Declaration
public interface IGameConfig : IDalamudService

Properties​

System​

Gets the collection of config options that persist between characters.

Declaration
GameConfigSection System { get; }

UiConfig​

Gets the collection of config options that are character specific.

Declaration
GameConfigSection UiConfig { get; }

UiControl​

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

Declaration
GameConfigSection UiControl { get; }

Methods​

TryGet(SystemConfigOption, out bool)​

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Declaration
event IGameConfig.ConfigChangeEventDelegate Changed
Event Type​

Dalamud.Plugin.Services.IGameConfig.ConfigChangeEventDelegate

SystemChanged​

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

Declaration
event IGameConfig.ConfigChangeEventDelegate SystemChanged
Event Type​

Dalamud.Plugin.Services.IGameConfig.ConfigChangeEventDelegate

UiConfigChanged​

Event which is fired when a UiConfig option is changed.

Declaration
event IGameConfig.ConfigChangeEventDelegate UiConfigChanged
Event Type​

Dalamud.Plugin.Services.IGameConfig.ConfigChangeEventDelegate

UiControlChanged​

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

Declaration
event IGameConfig.ConfigChangeEventDelegate UiControlChanged
Event Type​

Dalamud.Plugin.Services.IGameConfig.ConfigChangeEventDelegate