Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DownloadManager_Dialog.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_DownloadManager_MiniDialog
 

Enumerations

enum  SCR_EDownloadManagerTabs { ACTIVE = 0, HISTORY }
 

Functions

override void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 
override void OnMenuClose ()
 
override void OnMenuUpdate (float tDelta)
 
protected void UpdateProgressWidgets ()
 
protected void UpdateDownloadingSpeedWidget (bool display, bool showFallback)
 
protected void InitList ()
 
protected SCR_WorkshopItemActionDownload GetSelectedAction ()
 
protected void OnNewDownload (SCR_WorkshopItem item, SCR_WorkshopItemActionDownload action)
 
protected void OnNewActionActivate (SCR_WorkshopItemActionDownload action)
 
protected void OnDownloadComplete (SCR_WorkshopItemActionDownload action)
 
protected void OnDownloadFailed (SCR_WorkshopItemActionDownload action, int reason)
 
protected void ShowFailedModsDialog (SCR_WorkshopItemActionDownload action, int reason)
 
protected void OnFullStorageError (SCR_WorkshopItemActionDownload action, float size)
 Call on full addons storage reached to display storage limit reached error. More...
 
protected void CreateStoraLimitError ()
 
protected void OnStorageLimitDialogClosed ()
 
protected void OnDownloadFailDialogClose ()
 
protected void OnDownloadCanceled (SCR_WorkshopItemActionDownload action)
 
protected void OnBackButton ()
 
protected void OnPauseAllButton ()
 
protected void OnPauseButton ()
 
protected void OnCancelButton ()
 
protected void OnAutoenableButton ()
 
void SCR_DownloadManager_Dialog ()
 
void ~SCR_DownloadManager_Dialog ()
 

Variables

enum SCR_EDownloadManagerTabs STATE_DOWNLOADING = "#AR-Workshop_TabName_Downloaded"
 
const protected string STATE_ALL_PAUSE = "#AR-DownloadManager_State_AllDownloadsPaused"
 
const protected string STATE_NO_ACTIVE_DOWNLOADS = "#AR-DownloadManager_State_NoActiveDownloads"
 
const protected string STR_AFFECTED_MODS = "#AR-Workshop_FailedModsDownload"
 
const protected ResourceName DOWNLOAD_LINE_LAYOUT = "{FB196DBC0ABA6AE4}UI/layouts/Menus/ContentBrowser/DownloadManager/DownloadManagerEntry.layout"
 
const protected string DOWNLOAD_SUMMARY_FORMAT = "%1 / %2"
 
const protected string DOWNLOAD_SUMMARY_COLORED_FORMAT = "<color rgba=%1>%2</color>"
 
const protected string FAILED_ADDON_FORMAT = "- %1 \n"
 
const protected string FAILED_ADDON_LIST_DIALOG = "failed_dialogs_list"
 
protected ref SCR_DownloadManagerDialogWidgets m_Widgets = new SCR_DownloadManagerDialogWidgets()
 
protected SCR_ConfigurableDialogUi m_DownloadFailDialog
 
protected SCR_MessageDialogContent m_DownloadFailDialogContent
 
protected SCR_NotEnoughStorageDialog m_StorageLimitDialog
 
protected float m_fStorageLimitErrorSize = 0
 
protected ref SCR_DownloadManagerListComponent m_ActiveDownloads
 
protected ref SCR_DownloadManagerListComponent m_HistoryDownloads
 

Enumeration Type Documentation

◆ SCR_EDownloadManagerTabs

Enumerator
ACTIVE 
HISTORY 

Definition at line 10 of file SCR_DownloadManager_Dialog.c.

Function Documentation

◆ CreateStoraLimitError()

protected void CreateStoraLimitError ( )

Definition at line 405 of file SCR_DownloadManager_Dialog.c.

◆ InitList()

protected void InitList ( )

Definition at line 245 of file SCR_DownloadManager_Dialog.c.

◆ OnAutoenableButton()

protected void OnAutoenableButton ( )

Definition at line 483 of file SCR_DownloadManager_Dialog.c.

◆ OnBackButton()

protected void OnBackButton ( )

Definition at line 437 of file SCR_DownloadManager_Dialog.c.

◆ OnCancelButton()

protected void OnCancelButton ( )

Definition at line 472 of file SCR_DownloadManager_Dialog.c.

◆ OnDownloadCanceled()

protected void OnDownloadCanceled ( SCR_WorkshopItemActionDownload  action)

Definition at line 428 of file SCR_DownloadManager_Dialog.c.

◆ OnDownloadComplete()

protected void OnDownloadComplete ( SCR_WorkshopItemActionDownload  action)

Definition at line 320 of file SCR_DownloadManager_Dialog.c.

◆ OnDownloadFailDialogClose()

protected void OnDownloadFailDialogClose ( )

Definition at line 420 of file SCR_DownloadManager_Dialog.c.

◆ OnDownloadFailed()

protected void OnDownloadFailed ( SCR_WorkshopItemActionDownload  action,
int  reason 
)

Call when download are not running Move view to failed downlaods and show dialog with listed downloads

Definition at line 332 of file SCR_DownloadManager_Dialog.c.

◆ OnFullStorageError()

protected void OnFullStorageError ( SCR_WorkshopItemActionDownload  action,
float  size 
)

Call on full addons storage reached to display storage limit reached error.

Definition at line 387 of file SCR_DownloadManager_Dialog.c.

◆ OnMenuClose()

override void OnMenuClose ( )

Definition at line 94 of file SCR_DownloadManager_Dialog.c.

◆ OnMenuOpen()

override void OnMenuOpen ( SCR_ConfigurableDialogUiPreset  preset)

Definition at line 61 of file SCR_DownloadManager_Dialog.c.

◆ OnMenuUpdate()

override void OnMenuUpdate ( float  tDelta)

Definition at line 107 of file SCR_DownloadManager_Dialog.c.

◆ OnNewActionActivate()

protected void OnNewActionActivate ( SCR_WorkshopItemActionDownload  action)

Definition at line 313 of file SCR_DownloadManager_Dialog.c.

◆ OnNewDownload()

protected void OnNewDownload ( SCR_WorkshopItem  item,
SCR_WorkshopItemActionDownload  action 
)

Definition at line 290 of file SCR_DownloadManager_Dialog.c.

◆ OnPauseAllButton()

protected void OnPauseAllButton ( )

Definition at line 444 of file SCR_DownloadManager_Dialog.c.

◆ OnPauseButton()

protected void OnPauseButton ( )

Definition at line 456 of file SCR_DownloadManager_Dialog.c.

◆ OnStorageLimitDialogClosed()

protected void OnStorageLimitDialogClosed ( )

Definition at line 413 of file SCR_DownloadManager_Dialog.c.

◆ SCR_DownloadManager_Dialog()

void SCR_DownloadManager_Dialog ( )

Definition at line 491 of file SCR_DownloadManager_Dialog.c.

◆ ShowFailedModsDialog()

protected void ShowFailedModsDialog ( SCR_WorkshopItemActionDownload  action,
int  reason 
)

Definition at line 351 of file SCR_DownloadManager_Dialog.c.

◆ UpdateDownloadingSpeedWidget()

protected void UpdateDownloadingSpeedWidget ( bool  display,
bool  showFallback 
)

Definition at line 211 of file SCR_DownloadManager_Dialog.c.

◆ UpdateProgressWidgets()

protected void UpdateProgressWidgets ( )

Definition at line 151 of file SCR_DownloadManager_Dialog.c.

◆ ~SCR_DownloadManager_Dialog()

Definition at line 497 of file SCR_DownloadManager_Dialog.c.

Variable Documentation

◆ DOWNLOAD_LINE_LAYOUT

const protected ResourceName DOWNLOAD_LINE_LAYOUT = "{FB196DBC0ABA6AE4}UI/layouts/Menus/ContentBrowser/DownloadManager/DownloadManagerEntry.layout"

Definition at line 24 of file SCR_DownloadManager_Dialog.c.

◆ DOWNLOAD_SUMMARY_COLORED_FORMAT

const protected string DOWNLOAD_SUMMARY_COLORED_FORMAT = "<color rgba=%1>%2</color>"

Definition at line 26 of file SCR_DownloadManager_Dialog.c.

◆ DOWNLOAD_SUMMARY_FORMAT

const protected string DOWNLOAD_SUMMARY_FORMAT = "%1 / %2"

Definition at line 25 of file SCR_DownloadManager_Dialog.c.

◆ FAILED_ADDON_FORMAT

const protected string FAILED_ADDON_FORMAT = "- %1 \n"

Definition at line 28 of file SCR_DownloadManager_Dialog.c.

◆ FAILED_ADDON_LIST_DIALOG

const protected string FAILED_ADDON_LIST_DIALOG = "failed_dialogs_list"

Definition at line 29 of file SCR_DownloadManager_Dialog.c.

◆ m_ActiveDownloads

protected ref SCR_DownloadManagerListComponent m_ActiveDownloads

Definition at line 40 of file SCR_DownloadManager_Dialog.c.

◆ m_DownloadFailDialog

protected SCR_ConfigurableDialogUi m_DownloadFailDialog

Definition at line 34 of file SCR_DownloadManager_Dialog.c.

◆ m_DownloadFailDialogContent

protected SCR_MessageDialogContent m_DownloadFailDialogContent

Definition at line 35 of file SCR_DownloadManager_Dialog.c.

◆ m_fStorageLimitErrorSize

protected float m_fStorageLimitErrorSize = 0

Definition at line 37 of file SCR_DownloadManager_Dialog.c.

◆ m_HistoryDownloads

protected ref SCR_DownloadManagerListComponent m_HistoryDownloads

Definition at line 41 of file SCR_DownloadManager_Dialog.c.

◆ m_StorageLimitDialog

protected SCR_NotEnoughStorageDialog m_StorageLimitDialog

Definition at line 36 of file SCR_DownloadManager_Dialog.c.

◆ m_Widgets

Definition at line 31 of file SCR_DownloadManager_Dialog.c.

◆ STATE_ALL_PAUSE

const protected string STATE_ALL_PAUSE = "#AR-DownloadManager_State_AllDownloadsPaused"

Definition at line 20 of file SCR_DownloadManager_Dialog.c.

◆ STATE_DOWNLOADING

enum SCR_EDownloadManagerTabs STATE_DOWNLOADING = "#AR-Workshop_TabName_Downloaded"

◆ STATE_NO_ACTIVE_DOWNLOADS

const protected string STATE_NO_ACTIVE_DOWNLOADS = "#AR-DownloadManager_State_NoActiveDownloads"

Definition at line 21 of file SCR_DownloadManager_Dialog.c.

◆ STR_AFFECTED_MODS

const protected string STR_AFFECTED_MODS = "#AR-Workshop_FailedModsDownload"

Definition at line 22 of file SCR_DownloadManager_Dialog.c.