6 static const ResourceName s_sLayout =
"{FB196DBC0ABA6AE4}UI/layouts/Menus/ContentBrowser/DownloadManager/DownloadManagerEntry.layout";
7 ResourceName GetLayout() {
return s_sLayout; }
9 ImageWidget m_AddonImg;
11 TextWidget m_NameText;
13 HorizontalLayoutWidget m_HorizontalButtons;
15 ButtonWidget m_RetryBtn;
16 SCR_ModularButtonComponent m_RetryBtnComponent;
18 ButtonWidget m_CancelBtn;
19 SCR_ModularButtonComponent m_CancelBtnComponent;
21 ButtonWidget m_PauseBtn;
22 SCR_ModularButtonComponent m_PauseBtnComponent;
24 ButtonWidget m_ResumeBtn;
25 SCR_ModularButtonComponent m_ResumeBtnComponent;
27 ImageWidget m_DownloadIcon;
29 ImageWidget m_DownloadIconShadow;
31 ImageWidget m_ProcessingSpinner;
33 TextWidget m_DownloadStateText;
35 TextWidget m_DownloadedText;
37 TextWidget m_VersionText;
39 SizeLayoutWidget m_Progress;
42 bool Init(Widget root)
44 m_AddonImg = ImageWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.SizeImg.ScaleImg.m_AddonImg"));
46 m_NameText = TextWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalLayout.m_NameText"));
48 m_HorizontalButtons = HorizontalLayoutWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalLayout.SizeLayout0.m_HorizontalButtons"));
50 m_RetryBtn = ButtonWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalLayout.SizeLayout0.m_HorizontalButtons.m_RetryBtn"));
51 m_RetryBtnComponent = SCR_ModularButtonComponent.Cast(m_RetryBtn.FindHandler(SCR_ModularButtonComponent));
53 m_CancelBtn = ButtonWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalLayout.SizeLayout0.m_HorizontalButtons.m_CancelBtn"));
54 m_CancelBtnComponent = SCR_ModularButtonComponent.Cast(m_CancelBtn.FindHandler(SCR_ModularButtonComponent));
56 m_PauseBtn = ButtonWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalLayout.SizeLayout0.m_HorizontalButtons.m_PauseBtn"));
57 m_PauseBtnComponent = SCR_ModularButtonComponent.Cast(m_PauseBtn.FindHandler(SCR_ModularButtonComponent));
59 m_ResumeBtn = ButtonWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalLayout.SizeLayout0.m_HorizontalButtons.m_ResumeBtn"));
60 m_ResumeBtnComponent = SCR_ModularButtonComponent.Cast(m_ResumeBtn.FindHandler(SCR_ModularButtonComponent));
62 m_DownloadIcon = ImageWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalDownload.DownloadIconOverlay.m_DownloadIcon"));
64 m_DownloadIconShadow = ImageWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalDownload.DownloadIconOverlay.m_DownloadIconShadow"));
66 m_ProcessingSpinner = ImageWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalDownload.DownloadIconOverlay.m_ProcessingSpinner"));
68 m_DownloadStateText = TextWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalDownload.m_DownloadStateText"));
70 m_DownloadedText = TextWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalDownload.m_DownloadedText"));
72 m_VersionText = TextWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.HorizontalDownload.SizeVersion.m_VersionText"));
74 m_Progress = SizeLayoutWidget.Cast(root.FindWidget(
"SizeLayout.Overlay.HorizontalLayout.VerticalLayout.m_Progress"));