80 confirmButton.SetVisible(reconnect);
89 string errorStr = kickPreset.m_sMessage;
90 errorDialogComp.SetErrorMessage(errorStr);
94 int attempt = strAttempt.ToInt();
98 errorStr +=
"\n" +
"#AR-ServerBrowser_JoinMessageDefault";
99 errorDialogComp.SetErrorMessage(errorStr);
107 errorDialogComp.
SetTimer(kickPreset.m_iAutomaticReconnectTime);
139 int apiCode = callback.GetApiCode();
141 string apiStr =
typename.EnumToString(
EApiCode, apiCode);
145 case EApiCode.EACODE_ERROR_ASSET_NOT_FOUND:
ArmaReforgerScripted GetGame()
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
GameSessionStorage is used to store data for whole lifetime of game executable run....
ref ScriptInvoker m_OnCancel
static SCR_ConfigurableDialogUi CreateFromPreset(ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
Creates a dialog from preset.
SCR_InputButtonComponent FindButton(string tag)
Returns a button with given tag.
void SetMessage(string text)
ref ScriptInvoker m_OnConfirm
SCR_ConfigurableDialogUiPreset GetDialogPreset()
ref ScriptInvoker m_OnClose
static const string BUTTON_CONFIRM
Server kick message specific dialog.
static ref ScriptInvokerVoid s_OnReconnect
const int MAX_AUTO_REJOINS
static void OnDialogTimerChange(SCR_RejoinDialog dialog, int time)
static SCR_ConfigurableDialogUi GetCurrentKickDialog()
static void SetReconnectEnabled(bool enabled)
static void CreateKickErrorDialog(string msg, string group, string details="")
Set message for error dialog and create it.
static ScriptInvokerVoid GetOnCancel()
static ScriptInvokerVoid GetOnReconnect()
static void DisplayKickErrorDialog()
Create and setup error dialog.
static SCR_ConfigurableDialogUi s_CurrentKickDialog
static string s_sErrorMessageGroup
static void OnDialogClose()
static bool m_bReconnectEnabled
static ref ScriptInvokerVoid s_OnCancel
static void OnProcessLastHostError(BackendCallback callback)
static void CheckLastServerHost()
Check last server hosting to find out if there was a bug.
static ref BackendCallback m_ProcessLastHostCallback
static void ForceMainMenu()
const string TAG_KICK_DEFAULT
static string s_sErrorMessage
static void OnReconnect()
static ref ScriptInvokerVoid s_OnErrorMessageSet
static string s_sErrorMessageDetail
const ResourceName HOSTING_ERROR_DIALOG_CONFIG
const ResourceName KICK_DIALOGS_CONFIG
ScriptInvoker GetEventOnTimerChanged()
void ShowLoading(bool show)
static SCR_RejoinDialog FindRejoinComponent(notnull Widget w)