29 if (previous && previous.m_bWaitingResponse)
97 SCR_DownloadManager_Dialog.Create();
128 array<ref SCR_WorkshopItem> dependenciesToLoad = {};
147 m_Item.SetSubscribed(
true);
151 dependency.SetSubscribed(
true);
165 super.OnItemError(item);
178 super.OnAllDependenciesDetailsLoaded();
198 if (item.GetRestricted())
270 m_Item.SetItemTargetRevision(itemTargetRevision);
289 #ifdef WORKSHOP_DEBUG
290 ContentBrowserUI._print(
string.Format(
"SCR_WorkshopDownloadSequence: Delete for: %1",
m_Item.GetName()));
ArmaReforgerScripted GetGame()
void SCR_BackendCallbackWorkshopItem(SCR_WorkshopItem item)
static SCR_ConfigurableDialogUi GetCurrentDialog()
Dialog for confirming multiple downloads in workshop.
static SCR_DownloadConfirmationDialog CreateForAddonAndDependencies(notnull SCR_WorkshopItem mainItem, bool downloadMainItem, notnull array< ref SCR_WorkshopItem > dependencies, bool subscribeToAddons)
static void SelectAddonsForLatestDownload(array< ref SCR_WorkshopItem > arrayIn, array< ref SCR_WorkshopItem > arrayOut)
static bool IsLatestDownloadRequired(SCR_WorkshopItem item)
static SCR_DownloadManager GetInstance()
void AddDownloadManagerEntry(notnull SCR_WorkshopItem item, notnull SCR_WorkshopItemActionDownload action)
array< ref SCR_WorkshopItemActionDownload > DownloadItems(array< ref SCR_WorkshopItem > items)
ref array< ref SCR_WorkshopItem > m_aDependencies
ref array< ref SCR_BackendCallbackWorkshopItem > m_aPatchSizeCallbacks
ScriptInvokerBase< ScriptInvoker_DownloadSequenceDependencies > GetOnRestrictedDependency()
ref ScriptInvokerBase< ScriptInvoker_DownloadSequence > m_OnReady
bool m_bSubscribeToAddons
void LoadDependenciesDetails()
void Cancel()
Cancels this download request.
bool HasAllDetails()
Returns true if all details were loaded successfully.
SCR_ReportedAddonsDialog ShowRestrictedDependenciesDialog()
static SCR_LoadingOverlayDialog Create(string text=string.Empty)
void OnAllDependenciesDetailsLoaded()
Called when finally all the details of all dependencies are loaded.
static SCR_WorkshopDownloadSequence Create(SCR_WorkshopItem item, Revision itemTargetRevision, SCR_WorkshopDownloadSequence previous)
Tries to create a new request if previous doesn't exist or finished. Otherwise returns the previous r...
ref SCR_WorkshopItem m_Item
void OnItemDependenciesLoaded(notnull SCR_WorkshopItem item)
Called from SCR_WorkshopItem.m_OnDependenciesLoaded.
void HandleError()
Unified behavior for error and timeout.
static float LOADING_DELAY
void SCR_WorkshopDownloadSequence(array< ref SCR_WorkshopItem > dependencies, SCR_WorkshopItem item, Revision itemTargetRevision)
void ShowRestrictedItemDialog()
Show main addon restricted dialog.
void CreateLoadingOverlay()
void ~SCR_WorkshopDownloadSequence()
SCR_LoadingOverlayDialog m_LoadingOverlay
void OnItemGetAsset(SCR_WorkshopItem item)
Call when main item (addon) is loaded.
void SetupAddonFail(SCR_WorkshopItemActionDownload action)
Open download manager and set action to fail.
void OnRestrictedDependenciesFound(SCR_DownloadSequence sequence, array< ref SCR_WorkshopItem > dependencies)
ref Revision m_ItemTargetRevision
void AllPatchSizeLoaded()
After all dependencies patch loaded start loading patch size for main item.
void OnItemError(SCR_WorkshopItem item)
void ShowConfirmationUI()
Show download confirm dialog base on main item size and dependencies.