Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DownloadFailDialog.c
Go to the documentation of this file.
1 
5 //------------------------------------------------------------------------------------------------
7 {
8  //------------------------------------------------------------------------------------------------
9  static SCR_DownloadFailDialog CreateFailedAddonsDialog(notnull array<ref Tuple2<SCR_WorkshopItem, ref Revision>> addonsAndVersions, bool subscribeToAddons)
10  {
12 
13  SetupAddons(dlg, addonsAndVersions, subscribeToAddons);
14 
15  SCR_ConfigurableDialogUi.CreateFromPreset(SCR_WorkshopUiCommon.DIALOGS_CONFIG, "download_failed", dlg);
16 
17  return dlg;
18  }
19 
20  //------------------------------------------------------------------------------------------------
21  protected static void SetupAddons(notnull out SCR_DownloadFailDialog dialog, notnull array<ref Tuple2<SCR_WorkshopItem, ref Revision>> addonsAndVersions, bool subscribeToAddons)
22  {
23  dialog.m_bDownloadMainItem = false;
24  dialog.m_bSubscribeToAddons = subscribeToAddons;
25  dialog.m_aDependencies = new array<ref SCR_WorkshopItem>;
26  dialog.m_aDependencyVersions = new array<ref Revision>;
27 
28  foreach (Tuple2<SCR_WorkshopItem, ref Revision> i : addonsAndVersions)
29  {
30  dialog.m_aDependencies.Insert(i.param1);
31  dialog.m_aDependencyVersions.Insert(i.param2);
32  }
33  }
34 
35  //------------------------------------------------------------------------------------------------
36  override void OnMenuOpen(SCR_ConfigurableDialogUiPreset preset)
37  {
38  super.OnMenuOpen(preset);
39  m_Widgets.m_UpdateSpacer.SetVisible(false);
40  }
41 };
SCR_DownloadConfirmationDialog
Dialog for confirming multiple downloads in workshop.
Definition: SCR_DownloadConfirmationDialog.c:3
SCR_DownloadFailDialog
Definition: SCR_DownloadFailDialog.c:6
m_Widgets
ref SCR_VoNOverlay_ElementWidgets m_Widgets
Definition: SCR_VonDisplay.c:3
SCR_ConfigurableDialogUiPreset
Configuration for a dialog.
Definition: SCR_ConfigurableDialogUI.c:809
SCR_ConfigurableDialogUi
Definition: SCR_ConfigurableDialogUI.c:13
SCR_WorkshopUiCommon
Definition: SCR_WorkshopUiCommon.c:5