70 protected const string STR_HIGH_PING =
"#AR-ServerBrowser_HighPingWarning_Title";
100 super.Init(root, preset, proxyMenu);
154 if (dialogsConfig ==
"")
162 dialog.SetTitle(room.Name());
167 if (onFavoritesResponse)
187 array<SCR_WorkshopItem> itemsSorted = {};
189 array<SCR_WorkshopItem> itemsToUpdate = {};
190 array<SCR_WorkshopItem> itemsToDownload = {};
191 array<SCR_WorkshopItem> itemsDownloaded = {};
192 array<SCR_WorkshopItem> itemsOrdered = {};
196 itemsSorted.Insert(item);
199 SCR_Sorting<SCR_WorkshopItem, SCR_CompareWorkshopItemTargetSize>.HeapSort(itemsSorted,
true);
206 versionFrom = item.GetCurrentLocalRevision();
207 versionTo = item.GetItemTargetRevision();
209 if (!item.GetOffline())
210 itemsToDownload.Insert(item);
212 else if (versionFrom && !
Revision.AreEqual(versionFrom, versionTo))
213 itemsToUpdate.Insert(item);
216 itemsDownloaded.Insert(item);
220 itemsOrdered.InsertAll(itemsToDownload);
221 itemsOrdered.InsertAll(itemsToUpdate);
222 itemsOrdered.InsertAll(itemsDownloaded);
230 if (item == itemsOrdered[itemsOrdered.Count() - 1])
324 totalSize += item.GetSizeBytes();
337 array<ref SCR_WorkshopItem> toUpdateMods = modsManager.GetRoomItemsToUpdate();
345 string toUpdateSize = modsManager.GetModListPatchSizeString(toUpdateMods);
356 bool isModded =
s_Room.IsModded();
359 bool wrongVersion =
s_Room.GameVersion() !=
GetGame().GetBuildVersion();
383 bool versionMismatch =
s_Room.GameVersion() !=
GetGame().GetBuildVersion();
385 bool showMessage = versionMismatch || highPing;
ArmaReforgerScripted GetGame()
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
ref array< ref SCR_WorkshopItem > m_aItems
void SCR_AddonListDialog(array< ref SCR_WorkshopItem > items, string preset)
ref array< SCR_DownloadManager_AddonDownloadLine > m_aDownloadLines
bool GetUgcPrivilege()
Returns immediate value of UserPrivilege.USER_GEN_CONTENT.
static SCR_AddonManager GetInstance()
static SCR_ConfigurableDialogUi CreateFromPreset(ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
Creates a dialog from preset.
void BindButtonConfirm(SCR_InputButtonComponent button)
Allows to register a custom button to call OnConfirm (i.e. one not in the conf files but placed by ha...
SCR_InputButtonComponent FindButton(string tag)
Returns a button with given tag.
Configuration for a dialog.
void InitForServerBrowser(SCR_WorkshopItem item, Revision overrideTargetVersion=null, bool showVersionAndSize=true)
Initializes the line in non-interactive mode, shows basic data about a download.
Same as SCR_BackendImageComponent, but implements default image based on scenario.
RichTextWidget m_wModsNumberText
const string WIDGET_DISCORD_TEXT
const string WIDGET_MODS_SIZE_LAYOUT
const string WIDGET_ALERT_WRAPPER
const string IMG_PASSWORD_PROTECTED
void Init(Widget root, SCR_ConfigurableDialogUiPreset preset, MenuBase proxyMenu)
SCR_ScenarioBackendImageComponent m_BackendImageComp
const string WIDGET_SCROLL
const string WIDGET_DETAIL_ICONS_LAYOUT
void FillModList(array< ref SCR_WorkshopItem > items, SCR_RoomModsManager modsManager)
SCR_ModularButtonComponent m_BtnFavorites
void UpdateAlertMessage()
Widget m_wDetailIconsLayout
ref ScriptInvoker m_OnFavorites
const string STR_HIGH_PING
const string STR_VERSION_MISMATCH
Widget m_wBackgroundImageBackend
void UpdateModsAmountMessages(SCR_RoomModsManager modsManager=null)
void SetDiscordText(string text)
const string BTN_COPY_IPADDRESS
const string IMG_VERSION_ALERT
const string IMG_CROSS_PLATFORM
SCR_ButtonComponent m_BtnCopyIPAddress
const string WIDGET_IPADDRESS_TEXT
override void OnMenuOpen(SCR_ConfigurableDialogUiPreset preset)
const string WIDGET_MODS_SIZE_TO_DOWNLOAD_TEXT
const string BTN_FAVORITES_STAR
Widget m_wVersionAlertIcon
void OnRoomSetFavoriteResponseDialog()
const string BTN_FAVORITES
const string WIDGET_MODS_NUMBER_TEXT
const string WIDGET_MODS_SIZE_TEXT
static SCR_ServerDetailsDialog CreateServerDetailsDialog(Room room, array< ref SCR_WorkshopItem > items, string preset, ResourceName dialogsConfig="", ScriptInvokerVoid onFavoritesResponse=null)
float m_fVersionAlertIconPaddingLeft
SCR_InputButtonComponent m_NavConfirm
const string STR_HIGH_PING_ICON
void SetScenarioImage(MissionWorkshopItem scenario)
const string WIDGET_ALERT_TEXT
RichTextWidget m_wModsSizeText
const string WIDGET_ADDON_LIST
SCR_ButtonComponent m_BtnDiscord
const ResourceName ADDON_LINE_LAYOUT_SERVER_BROWSER
void DisplayFavoriteAction(bool isFavorite)
SCR_InputButtonComponent m_NavFavorites
void SetCanJoin(bool canJoin)
RichTextWidget m_wAlertText
const string IMG_WRONG_VERSION
void SetIPAddressText(string text)
RichTextWidget m_wModsSizeToDownloadText
RichTextWidget m_wDiscordText
RichTextWidget m_wIPAddressText
Widget m_wModsSizeToDownloadLayout
const string WIDGET_MODS_SIZE_TO_DOWNLOAD_LAYOUT