4 const string EP_HEADER_FORMAT_STRING =
"%1 (%2)";
5 const string EP_MESSAGE_FORMAT_STRING =
"%1\n(%2)";
7 protected string m_Message;
8 protected string m_ServerMessage;
13 m_ServerMessage = serverMessage;
16 void HandleError(
int errorCode,
string additionalInfo =
"") {}
18 string GetClientMessage(
string additionalInfo =
"")
20 if ( additionalInfo !=
"" )
21 return string.Format(EP_MESSAGE_FORMAT_STRING, m_Message, additionalInfo);
26 string GetServerMessage(
string additionalInfo =
"")
28 if ( additionalInfo !=
"" )
29 return string.Format(EP_MESSAGE_FORMAT_STRING, m_ServerMessage, additionalInfo);
31 return m_ServerMessage;
45 void DialogueErrorProperties(
string message,
string serverMessage,
string header,
UIScriptedMenu handler =
null,
int dialogButtonType = DBT_OK,
int defaultButton = DBB_OK,
int dialogMeaningType = DMT_EXCLAMATION,
bool displayAdditionalInfo =
true)
55 override void HandleError(
int errorCode,
string additionalInfo =
"")
66 message =
string.Format(EP_MESSAGE_FORMAT_STRING, m_Message, additionalInfo);
70 GetGame().GetUIManager().ShowDialog(