DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ HandleError()

override void HandleError ( int errorCode,
string additionalInfo = "" )
protected

См. определение в файле ErrorProperties.c строка 55

56 {
57#ifdef NO_GUI
58 return; //do not display error if GUI is disabled
59#endif
60
61#ifdef SERVER
62 return;
63#else
64 string message;
65 if (m_DisplayAdditionalInfo && additionalInfo != "")
66 message = string.Format(EP_MESSAGE_FORMAT_STRING, m_Message, additionalInfo);
67 else
68 message = m_Message;
69
70 g_Game.GetUIManager().ShowDialog(
71 string.Format(EP_HEADER_FORMAT_STRING, m_Header, ErrorModuleHandler.GetErrorHex(errorCode)),
73#endif
74 }
DayZGame g_Game
Определения DayZGame.c:3942
class ErrorHandlerModule m_Header
This is where to input logic and extend functionality of ErrorHandlerModule.
int m_DialogButtonType
Определения ErrorProperties.c:39
int m_DialogMeaningType
Определения ErrorProperties.c:41
int m_DefaultButton
Определения ErrorProperties.c:40
UIScriptedMenu m_Handler
Определения ErrorProperties.c:42
bool m_DisplayAdditionalInfo
Определения ErrorProperties.c:43
static proto string GetErrorHex(int errorCode)
Returns a formatted string of the error code.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
Определения ErrorModuleHandler.c:29
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.

Перекрестные ссылки string::Format(), g_Game, ErrorModuleHandler::GetErrorHex(), m_DefaultButton, m_DialogButtonType, m_DialogMeaningType, m_DisplayAdditionalInfo, m_Handler и m_Header.