Arma Reforger Script API
|
Component for a line which indicates addon download state in the download manager. More...
Public Member Functions | |
override void | HandlerAttached (Widget w) |
override void | HandlerDeattached (Widget w) |
void | InitForDownloadAction (SCR_WorkshopItemActionDownload action) |
Initializes the line in interactive mode. | |
void | InitForCancelDownloadAction (SCR_WorkshopItemActionDownload action) |
Initializes the line in non-interactive mode, shows basic data about a download which is already running. | |
void | InitForServerDownloadAction (SCR_WorkshopItemActionDownload action) |
Initializes the line in non-interactive mode, shows basic data about a download relating to joining servers. | |
void | InitForServerBrowser (SCR_WorkshopItem item, Revision overrideTargetVersion=null, bool showVersionAndSize=true) |
Initializes the line in non-interactive mode, shows basic data about a download. | |
void | InitForWorkshopItem (SCR_WorkshopItem item, Revision versionTo=null, bool showVersionAndSize=true) |
Initializes the line in passive mode. It will just show basic information once. | |
void | DisplayError (string msg, bool positive=false) |
Display error massage, based on positivity message is green or red. | |
SCR_WorkshopItem | GetItem () |
Widget | GetRootWidget () |
SCR_WorkshopItemActionDownload | GetDownloadAction () |
Public Attributes | |
bool | m_bHideButtons |
Protected Member Functions | |
void | Update () |
void | UpdateAllWidgets () |
Updates all widgets. Only relevant in the mode InitForDownloadAction. | |
void | OnPauseButton () |
void | OnCancelButton () |
void | DisplayActionIcon (Revision vFrom, Revision vTo) |
Display icon with action that need to done - download, update, downgrade. | |
Protected Attributes | |
ref SCR_DownloadManager_AddonDownloadLineBaseWidgets | m_Widgets = new SCR_DownloadManager_AddonDownloadLineBaseWidgets() |
ref SCR_WorkshopItemActionDownload | m_Action |
ref SCR_WorkshopItem | m_Item |
ResourceName | m_IconImageSet |
bool | m_bVersionChange = false |
Widget | m_wRoot |
Static Protected Attributes | |
const string | ICON_UP = "up" |
const string | ICON_DOWN = "down" |
const Color | ICON_COLOR_DOWNLOAD = UIColors.CONTRAST_COLOR |
const Color | ICON_COLOR_UP = UIColors.CONFIRM |
const Color | ICON_COLOR_DOWN = UIColors.WARNING |
const Color | TEXT_SIZE_COLOR_DOWNLOAD = UIColors.CONTRAST_COLOR |
const Color | TEXT_SIZE_COLOR_DOWNLOADED = UIColors.NEUTRAL_INFORMATION |
const Color | TEXT_SIZE_COLOR_ERROR = UIColors.WARNING |
Component for a line which indicates addon download state in the download manager.
|
protected |
Display icon with action that need to done - download, update, downgrade.
void SCR_DownloadManager_AddonDownloadLine.DisplayError | ( | string | msg, |
bool | positive = false |
||
) |
Display error massage, based on positivity message is green or red.
SCR_WorkshopItemActionDownload SCR_DownloadManager_AddonDownloadLine.GetDownloadAction | ( | ) |
SCR_WorkshopItem SCR_DownloadManager_AddonDownloadLine.GetItem | ( | ) |
Widget SCR_DownloadManager_AddonDownloadLine.GetRootWidget | ( | ) |
override void SCR_DownloadManager_AddonDownloadLine.HandlerAttached | ( | Widget | w | ) |
override void SCR_DownloadManager_AddonDownloadLine.HandlerDeattached | ( | Widget | w | ) |
void SCR_DownloadManager_AddonDownloadLine.InitForCancelDownloadAction | ( | SCR_WorkshopItemActionDownload | action | ) |
Initializes the line in non-interactive mode, shows basic data about a download which is already running.
void SCR_DownloadManager_AddonDownloadLine.InitForDownloadAction | ( | SCR_WorkshopItemActionDownload | action | ) |
Initializes the line in interactive mode.
It will be able to interact with the download action.
void SCR_DownloadManager_AddonDownloadLine.InitForServerBrowser | ( | SCR_WorkshopItem | item, |
Revision | overrideTargetVersion = null , |
||
bool | showVersionAndSize = true |
||
) |
Initializes the line in non-interactive mode, shows basic data about a download.
void SCR_DownloadManager_AddonDownloadLine.InitForServerDownloadAction | ( | SCR_WorkshopItemActionDownload | action | ) |
Initializes the line in non-interactive mode, shows basic data about a download relating to joining servers.
void SCR_DownloadManager_AddonDownloadLine.InitForWorkshopItem | ( | SCR_WorkshopItem | item, |
Revision | versionTo = null , |
||
bool | showVersionAndSize = true |
||
) |
Initializes the line in passive mode. It will just show basic information once.
|
protected |
|
protected |
|
protected |
|
protected |
Updates all widgets. Only relevant in the mode InitForDownloadAction.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
bool SCR_DownloadManager_AddonDownloadLine.m_bHideButtons |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |