10 const ResourceName CONFIG_DIALOGS =
"{471EFCF445C3E9C6}Configs/ServerBrowser/JoiningDialogs.conf";
69 case EJoinDialogState.SEARCHING_SERVER:
76 case EJoinDialogState.JOIN:
83 case EJoinDialogState.REJOIN:
90 case EJoinDialogState.SERVER_NOT_FOUND:
97 case EJoinDialogState.VERSION_MISMATCH:
102 string clientV =
GetGame().GetBuildVersion();
105 string msg =
string.Format(
"%1: %2 \n%3: %4",
"#AR-ServerBrowser_Server", RoomV,
"#AR-Editor_AttributeCategory_GameSettings_Name", clientV);
111 case EJoinDialogState.CHECKING_CONTENT:
118 case EJoinDialogState.MOD_UGC_PRIVILEGE_MISSING:
125 case EJoinDialogState.PASSWORD_REQUIRED:
132 case EJoinDialogState.BACKEND_TIMEOUT:
139 case EJoinDialogState.HIGH_PING_SERVER:
146 case EJoinDialogState.UNRELATED_DOWNLOADS_CANCELING:
175 if (CONFIG_DIALOGS.IsEmpty())
225 case EApiCode.EACODE_ERROR_USER_IS_BANNED_FROM_SHARED_GAME: errorTag =
TAG_BANNED;
break;
239 string strApiError =
typename.EnumToString(
EApiCode, apiError);
255 if (
data.expiresAt < 0)
258 int time =
data.expiresAt -
System.GetUnixTime();
270 int timeMinutes = time / 60;
303 array<ref SCR_WorkshopItem> required =
m_ModManager.GetRoomItemsScripted();
307 if (!item.GetOffline())
ArmaReforgerScripted GetGame()
Get all prefabs that have the spawner data
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
class SCR_ServerBrowserDialogManager MOD_RESTRICTED
class SCR_ServerBrowserDialogManager CHECKING_CONTENT
class SCR_ServerBrowserDialogManager REJOIN
class SCR_ServerBrowserDialogManager PASSWORD_REQUIRED
class SCR_ServerBrowserDialogManager JOIN_FAILED
SCR_EJoinDownloadsConfirmationDialogType
Enum for confirmation dialogs that guide the player through the download processes required to join t...
class SCR_ServerBrowserDialogManager SEARCHING_SERVER
Enum for tracking current state of joining process.
class SCR_ServerBrowserDialogManager BACKEND_TIMEOUT
class SCR_ServerBrowserDialogManager SERVICE_DOWN
class SCR_ServerBrowserDialogManager UNRELATED_DOWNLOADS_CANCELING
class SCR_ServerBrowserDialogManager SERVER_DOWN
class SCR_ServerBrowserDialogManager SERVER_NOT_FOUND
class SCR_ServerBrowserDialogManager HIGH_PING_SERVER
class SCR_ServerBrowserDialogManager MODS_DOWNLOADING
class SCR_ServerBrowserDialogManager JOIN
class SCR_ServerBrowserDialogManager MOD_UGC_PRIVILEGE_MISSING
static SCR_ConfigurableDialogUi CreateFromPreset(ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
Creates a dialog from preset.
static const string BUTTON_CANCEL
static const string BUTTON_CONFIRM
static SCR_DownloadManager GetInstance()
ScriptInvokerVoid GetOnDownloadQueueCompleted()
Configurable editbox dialog base.
ref ScriptInvokerString m_OnWriteModeLeave
void SetErrorDetail(string strDetail)
Show list of reported mods and provide option to cancel reports.
ScriptInvoker GetOnAllReportsCanceled()
ServerBrowserMenuUI m_ServerBrowser
SCR_ConfigurableDialogUi m_CurrentDialog
ref ScriptInvokerRoom m_OnDownloadComplete
SCR_ConfigurableDialogUi GetCurrentDialog()
SCR_ServerFullDialog CreateServerFullDialog()
const string OFFICIAL_SERVER_SCOPE
void SetDialogMessage(string msg)
void UpdateRoomDetailsScenarioImage(MissionWorkshopItem scenario)
void SetModManager(SCR_RoomModsManager modManager)
const string STR_LIGHT_BAN
const string STR_HEAVY_BAN
void UpdateServerFullDialog()
ScriptInvokerRoom GetOnDownloadComplete()
void DisplayJoinDownloadsWarning(array< ref SCR_WorkshopItemActionDownload > downloads, SCR_EJoinDownloadsConfirmationDialogType type)
ref ScriptInvokerVoid m_OnCancel
const string TAG_MOD_UGC_PRIVILEGE_MISSING
ScriptInvokerVoid GetOnConfirm()
SCR_RoomModsManager m_ModManager
void DisplayJoinFail(EApiCode apiError)
Show join fail message in dialog.
void OnPasswordEditboxChanged(string text)
Call this whenever password dialog editbox is being edited.
const string TAG_PASSWORD_REQUIRED
void DisplayDialog(EJoinDialogState state)
Display dialog by state and setup current state.
EJoinDialogState m_iDisplayState
void CloseCurrentDialog()
SCR_ServerDetailsDialog CreateServerDetailsDialog(Room room, array< ref SCR_WorkshopItem > items, ScriptInvokerVoid onFavoritesResponse=null)
const string ERROR_TAG_DEFAULT
void SetDialogByTag(string tag, SCR_ConfigurableDialogUi dialog=null)
Quick short code to open dialog by tag and cache it.
const string TAG_SEARCHING_SERVER
void DisplayJoinBan(RoomJoinData data)
const string TAG_MODS_DOWNLOADING
ScriptInvokerVoid GetOnCancel()
void FillRoomDetailsMods(array< ref SCR_WorkshopItem > items, SCR_RoomModsManager modsManager=null)
ref ScriptInvokerVoid m_OnConfirm
ScriptInvokerVoid GetOnJoinProcessCancel()
const string TAG_VERSION_MISMATCH
ScriptInvokerVoid GetOnDownloadCancelDialogClose()
ref ScriptInvokerVoid m_OnDownloadCancelDialogClose
EJoinDialogState GetDisplayState()
void UpdateServerFullScenarioImage(MissionWorkshopItem scenario)
const string TAG_CHECKING_CONTENT
void OnAllReportsCanceled(SCR_ReportedAddonsDialog dialog)
Call this when all reports from dialog are cancled to clear invoker actions and display download dial...
MultiplayerDialogUI CreateManualJoinDialog()
DECOUPLED DIALOGS.
const string TAG_BACKEND_TIMEOUT
void CreateBlockedPlayersWarningDialog(array< BlockedRoomPlayer > blockedPlayers)
void SetJoinRoom(Room room)
void DisplayPasswordRequired()
Display dialog for password insert whenever password is required.
const string TAG_SERVER_NOT_FOUND
const string TAG_SERVER_FULL
const string TAG_HIGH_PING_SERVER
const string TAG_UNRELATED_DOWNLOADS_CANCELING
ref ScriptInvokerVoid m_OnJoinProcessCancel
void FillModList(array< ref SCR_WorkshopItem > items, SCR_RoomModsManager modsManager)
static SCR_ServerDetailsDialog CreateServerDetailsDialog(Room room, array< ref SCR_WorkshopItem > items, string preset, ResourceName dialogsConfig="", ScriptInvokerVoid onFavoritesResponse=null)
void SetScenarioImage(MissionWorkshopItem scenario)
void SetScenarioImage(MissionWorkshopItem scenario)
Dialog to cancel downloads during to server joining.
static SCR_ServerJoinDownloadsConfirmationDialog Create(array< ref SCR_WorkshopItemActionDownload > actions, SCR_EJoinDownloadsConfirmationDialogType type)
@ ALL
Everything except general switch.