DayZ 1.27
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
71 string.Format(EP_HEADER_FORMAT_STRING, m_Header, ErrorModuleHandler.GetErrorHex(errorCode)),
73#endif
74 }
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
proto native UIManager GetUIManager()
static proto owned 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
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native CGame GetGame()
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(), ErrorModuleHandler::GetErrorHex(), GetGame(), CGame::GetUIManager(), m_DefaultButton, m_DialogButtonType, m_DialogMeaningType, m_DisplayAdditionalInfo, m_Handler, m_Header и UIManager::ShowDialog().