34 super.HandlerAttached(w);
57 super.OnTabCreate(menuRoot, buttonsLayout,
index);
75 super.OnMenuFocusGained();
86 Print(
"List widget or widgte resource wasn't set properly!",
LogLevel.WARNING);
108 for (
int i = 0, count =
m_aCategories.Count(); i < count; i++)
127 if (entry.GetParent() !=
m_wList)
129 Print(
"Selected entry is not part of list!",
LogLevel.WARNING);
133 int categoryZOrder = -1;
136 for (
int i = 0, count =
m_aCategories.Count(); i < count; i++)
146 if (categoryZOrder != -1)
147 entry.SetZOrder(categoryZOrder);
153 m_wList.RemoveChild(entry.GetRootWidget());
163 if (entry.GetDownloadAction() == action)
174 for (
int i = 0, count =
m_aAddonLines.Count(); i < count; i++)
187 Widget focused =
GetGame().GetWorkspace().GetFocusedWidget();
212 return m_wList.GetChildren() != null;
249 bool pause, resume, cancel, retry;
302 for (
int i = 0, count =
m_aAddonLines.Count(); i < count; i++)
351class SCR_DownloadManagerListCategory
ArmaReforgerScripted GetGame()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_WorkshopItem GetItem()
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
EDownloadManagerActionState
Enum describing current state of downloading action.
void InitForDownloadAction(SCR_WorkshopItem item, SCR_WorkshopItemActionDownload action)
void CanDoActions(out bool canPause, out bool canResume, out bool canCancel, out bool canRetry)
Store which actions can be used for entry in current state.
static EDownloadManagerActionState DownloadActionState(SCR_WorkshopItemActionDownload action)
SCR_WorkshopItemActionDownload GetDownloadAction()
SCR_InputButtonComponent m_NavPauseResumeAll
void RemoveEntry(notnull SCR_DownloadManagerEntry entry)
void ChangeEntryCategory(notnull Widget entry, EDownloadManagerActionState type)
Change widget in category based based on category type.
bool HasContent()
Return true if there are entries in list.
SCR_InputButtonComponent m_NavCancel
SCR_DownloadManagerEntry DownloadActionLine(notnull SCR_WorkshopItemActionDownload action)
Find line containing selected download action.
void UpdateNavButtons(SCR_DownloadManagerEntry entry)
override void HandlerAttached(Widget w)
SCR_InputButtonComponent m_NavPauseResume
SCR_DownloadManagerEntry FocusedEntry()
Return addon preset line component of currently focused widget if has any.
SCR_DownloadManagerEntry EntryWithItem(notnull SCR_WorkshopItem item)
Find line containing selected item.
override void OnTabShow()
SCR_DownloadManagerEntry m_FocusedEntry
override void OnMenuFocusGained()
void EnablePauseResumeAll()
ScrollLayoutWidget m_ScrollLayout
ref array< ref SCR_DownloadManagerEntry > m_aAddonLines
void OnClickPauseResumeAll()
void ShowFallbackText(bool show)
SCR_InputButtonComponent m_NavRetry
Widget AddEntry(ResourceName entryPath, SCR_WorkshopItemActionDownload action)
Add new widget in category based based on category type.
ref array< ref SCR_DownloadManagerListCategory > m_aCategories
void ShowPauseResumeAllButton(bool show)
void OnClickPauseResume()
override void OnTabCreate(Widget menuRoot, ResourceName buttonsLayout, int index)
Widget m_wFallbackTextWrap
string m_sFallbackTextWrapWidget
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
SCR_FieldOfViewSettings Attribute