2023-05-12 23:33:32 +00:00
|
|
|
class CTI_LocalMessage extends Object
|
|
|
|
abstract;
|
|
|
|
|
|
|
|
var const String SyncItemsDefault;
|
|
|
|
var private localized String SyncItems;
|
|
|
|
|
|
|
|
var const String WaitingGRIDefault;
|
|
|
|
var private localized String WaitingGRI;
|
|
|
|
|
|
|
|
var const String IncompatibleGRIDefault;
|
|
|
|
var private localized String IncompatibleGRI;
|
|
|
|
|
2023-05-13 23:20:31 +00:00
|
|
|
var const String IncompatibleGRIWarningDefault;
|
|
|
|
var private localized String IncompatibleGRIWarning;
|
2023-05-12 23:33:32 +00:00
|
|
|
|
|
|
|
var const String SecondsShortDefault;
|
|
|
|
var private localized String SecondsShort;
|
|
|
|
|
2023-09-19 19:31:08 +00:00
|
|
|
var const String PleaseWaitDefault;
|
|
|
|
var private localized String PleaseWait;
|
|
|
|
|
2023-05-12 23:33:32 +00:00
|
|
|
enum E_CTI_LocalMessageType
|
|
|
|
{
|
|
|
|
CTI_SyncItems,
|
|
|
|
CTI_WaitingGRI,
|
|
|
|
CTI_IncompatibleGRI,
|
2023-05-13 23:20:31 +00:00
|
|
|
CTI_IncompatibleGRIWarning,
|
2023-09-19 19:31:08 +00:00
|
|
|
CTI_SecondsShort,
|
|
|
|
CTI_PleaseWait
|
2023-05-12 23:33:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
public static function String GetLocalizedString(
|
|
|
|
E_LogLevel LogLevel,
|
|
|
|
E_CTI_LocalMessageType LMT,
|
|
|
|
optional String String1,
|
|
|
|
optional String String2,
|
|
|
|
optional String String3)
|
|
|
|
{
|
|
|
|
`Log_TraceStatic();
|
|
|
|
|
|
|
|
switch (LMT)
|
|
|
|
{
|
|
|
|
case CTI_SyncItems:
|
|
|
|
return (default.SyncItems != "" ? default.SyncItems : default.SyncItemsDefault);
|
|
|
|
|
|
|
|
case CTI_WaitingGRI:
|
|
|
|
return (default.WaitingGRI != "" ? default.WaitingGRI : default.WaitingGRIDefault);
|
|
|
|
|
|
|
|
case CTI_IncompatibleGRI:
|
2023-05-13 23:20:31 +00:00
|
|
|
return (default.IncompatibleGRI != "" ? default.IncompatibleGRI : default.IncompatibleGRIDefault) @ String1;
|
2023-05-12 23:33:32 +00:00
|
|
|
|
2023-05-13 23:20:31 +00:00
|
|
|
case CTI_IncompatibleGRIWarning:
|
|
|
|
return (default.IncompatibleGRIWarning != "" ? default.IncompatibleGRIWarning : default.IncompatibleGRIWarningDefault);
|
2023-05-12 23:33:32 +00:00
|
|
|
|
|
|
|
case CTI_SecondsShort:
|
|
|
|
return (default.SecondsShort != "" ? default.SecondsShort : default.SecondsShortDefault);
|
2023-09-19 19:31:08 +00:00
|
|
|
|
|
|
|
case CTI_PleaseWait:
|
|
|
|
return (default.PleaseWait != "" ? default.PleaseWait : default.PleaseWaitDefault);
|
2023-05-12 23:33:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
2023-05-13 23:20:31 +00:00
|
|
|
SyncItemsDefault = "Sync items:"
|
|
|
|
WaitingGRIDefault = "Waiting GRI..."
|
|
|
|
IncompatibleGRIDefault = "Incompatible GRI:"
|
|
|
|
IncompatibleGRIWarningDefault = "You can enter the game, but the trader may not work correctly.";
|
|
|
|
SecondsShortDefault = "s"
|
2023-09-19 19:31:08 +00:00
|
|
|
PleaseWaitDefault = "Please wait"
|
2022-08-24 15:29:25 +00:00
|
|
|
}
|