Game.UI.DialogMessage
Assembly:
Assembly-CSharp (in-game)
Namespace:
Game.UI
Type:
static class
Base:
System.Object
Summary:
Container for dialog message ID constants used by the game's UI/dialog localization system, plus a helper to build IDs at runtime. Use these constants (or GetId) when looking up or referencing built-in dialog message keys (for example, when showing dialogs or looking up localized strings).
Fields
-
public const string kBulldozer = "Common.DIALOG_MESSAGE[Bulldozer]"
Contains the dialog message ID for the bulldozer confirmation/notification dialog. -
public const string kProgressLoss = "Common.DIALOG_MESSAGE[ProgressLoss]"
Contains the dialog message ID used when progress might be lost (e.g., unsaved changes). -
public const string kOverwriteSave = "Common.DIALOG_MESSAGE[Overwrite]"
Contains the dialog message ID used when confirming overwrite of a save. -
public const string kOverwriteMap = "Common.DIALOG_MESSAGE[OverwriteMap]"
Contains the dialog message ID used when confirming overwrite of a map. -
public const string kOverwriteAsset = "Common.DIALOG_MESSAGE[OverwriteAsset]"
Contains the dialog message ID used when confirming overwrite of an asset. -
public const string kConfirmWipe = "Common.DIALOG_MESSAGE[ConfirmRemoteStorageWipe]"
Contains the dialog message ID used to confirm wiping remote storage. -
public const string kDisableAchievements = "Common.DIALOG_MESSAGE[DisableAchievements]"
Contains the dialog message ID used when disabling achievements (usually confirming consequences).
Properties
- (none)
This static class exposes only constant fields and a static method; it has no properties.
Constructors
- (none)
Static classes do not expose instance constructors. There is no custom static constructor defined.
Methods
public static string GetId(string value)
Helper that constructs a dialog message ID string in the form "Common.DIALOG_MESSAGE[]". Useful for generating IDs for custom or dynamic dialog message keys that follow the same naming convention as the built-in constants.
Usage Example
// Use an existing constant
string bulldozerId = Game.UI.DialogMessage.kBulldozer;
// Build an ID for a custom message key
string customId = Game.UI.DialogMessage.GetId("MyCustomWarning"); // "Common.DIALOG_MESSAGE[MyCustomWarning]"
// Example: look up a localized string (pseudo-code)
string localized = LocalizationManager.GetString(bulldozerId);
// Example: show a dialog using a built-in ID (pseudo-code)
DialogManager.ShowMessage(bulldozerId);