Game.UI.Dialog
Assembly: Game (inferred from namespace/file path)
Namespace: Game.UI
Type: public static class
Base: System.Object (static classes do not inherit beyond System.Object)
Summary:
Static container of string constants that identify built-in UI dialogs used by the game's UI/window manager. These constants are intended to be used when requesting, finding, or referencing dialogs (for example, to open the Load/Save dialogs or the in-game Debug menu) so callers avoid hardcoding literal strings throughout mod code.
Fields
-
public const string kLoadGame = "LoadGame"
Identifier for the "Load Game" dialog. Use this constant when opening or querying the load-game UI. -
public const string kSaveGame = "SaveGame"
Identifier for the "Save Game" dialog. Use this constant when opening or querying the save-game UI. -
public const string kDebugMenu = "DebugMenu"
Identifier for the in-game "Debug Menu" dialog. Use this constant when opening or querying the debug menu UI.
Properties
- None. This static class exposes only compile-time string constants and has no properties.
Constructors
- None. As a static class, it has no instance constructors (and no explicit static constructor is defined in the source).
Methods
- None. The class only defines constants and provides no methods.
Usage Example
// Example usage: request the game's UI manager to open a dialog by id.
// (Replace UIManager.ShowDialog with the actual API your modding environment provides.)
// Open the Load Game dialog
UIManager.ShowDialog(Game.UI.Dialog.kLoadGame);
// Open the Save Game dialog
UIManager.ShowDialog(Game.UI.Dialog.kSaveGame);
// Open the Debug Menu
UIManager.ShowDialog(Game.UI.Dialog.kDebugMenu);