17 SetupDownloadDialogAddons(dlg, addonsAndVersions, subscribeToAddons);
21 dlg.SetStyleDownloadAddons();
27 protected override void CreateAddonList()
38 CreateAddonWidget(missing,
m_Widgets.m_OtherAddonsList);
42 array<ref SCR_WorkshopItem> versionDifferences =
SCR_AddonManager.SelectItemsAnd(
46 int vDifCount = versionDifferences.Count();
47 bool hasDifference = vDifCount > 0;
50 m_Widgets.m_UpdateAddonsList.SetVisible(hasDifference);
51 m_Widgets.m_UpdateAddonsMessage.SetVisible(hasDifference);
52 m_Widgets.m_UpdateSpacer.SetVisible(hasDifference && missingAddons.IsEmpty());
59 if (!addon.IsDownloadRunning())
60 CreateAddonWidget(addon,
m_Widgets.m_UpdateAddonsList);
64 m_Widgets.m_UpdateAddonsMessage.SetTextFormat(
"#AR-Workshop_Dialog_ConfirmDownload_VersionDifferences", vDifCount);
71 protected override void CreateAddonWidget(notnull
SCR_WorkshopItem dep, Widget listRoot)
77 Revision revision = dep.GetLatestRevision();
80 comp.InitForWorkshopItem(dep, revision);