6 static const ResourceName s_sLayout =
"{F5E8AFE1BE5FA9DB}UI/layouts/Menus/ContentBrowser/DownloadManager/DownloadManager_AddonDownloadLineBase.layout";
7 ResourceName GetLayout() {
return s_sLayout; }
9 ProgressBarWidget m_ProgressBar;
11 ImageWidget m_DownloadFinishedImage;
13 ImageWidget m_DownloadFailedImage;
15 ButtonWidget m_PauseResumeButton;
16 SCR_ModularButtonComponent m_PauseResumeButtonComponent;
18 TextWidget m_AddonNameText;
20 TextWidget m_ErrorText;
22 HorizontalLayoutWidget m_RightWidgetGroup;
24 ButtonWidget m_CancelButton;
25 SCR_ModularButtonComponent m_CancelButtonComponent;
27 SizeLayoutWidget m_AddonSizeOverlay;
29 ImageWidget m_AddonActionIcon;
31 TextWidget m_AddonSizeText;
33 SizeLayoutWidget m_ProgressOverlay;
35 TextWidget m_ProgressText;
37 SizeLayoutWidget m_VersionsOverlay;
39 TextWidget m_VersionToText;
41 TextWidget m_VersionArrow;
43 TextWidget m_VersionFromText;
45 ImageWidget m_AddonSizeIcon;
47 bool Init(Widget root)
49 m_ProgressBar = ProgressBarWidget.Cast(root.FindWidget(
"Height.Overlay.m_ProgressBar"));
51 m_DownloadFinishedImage = ImageWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.ButtonsOverlay.Overlay.m_DownloadFinishedImage"));
53 m_DownloadFailedImage = ImageWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.ButtonsOverlay.Overlay.m_DownloadFailedImage"));
55 m_PauseResumeButton = ButtonWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.ButtonsOverlay.Overlay.m_PauseResumeButton"));
56 m_PauseResumeButtonComponent = SCR_ModularButtonComponent.Cast(m_PauseResumeButton.FindHandler(SCR_ModularButtonComponent));
58 m_AddonNameText = TextWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_AddonNameText"));
60 m_ErrorText = TextWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_ErrorText"));
62 m_RightWidgetGroup = HorizontalLayoutWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup"));
64 m_CancelButton = ButtonWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.CancelButtonSize.m_CancelButton"));
65 m_CancelButtonComponent = SCR_ModularButtonComponent.Cast(m_CancelButton.FindHandler(SCR_ModularButtonComponent));
67 m_AddonSizeOverlay = SizeLayoutWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_AddonSizeOverlay"));
69 m_AddonActionIcon = ImageWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_AddonSizeOverlay.AddonSizeOverlay.Scale0.m_AddonActionIcon"));
71 m_AddonSizeText = TextWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_AddonSizeOverlay.AddonSizeOverlay.Size0.m_AddonSizeText"));
73 m_ProgressOverlay = SizeLayoutWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_ProgressOverlay"));
75 m_ProgressText = TextWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_ProgressOverlay.m_ProgressText"));
77 m_VersionsOverlay = SizeLayoutWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_VersionsOverlay"));
79 m_VersionToText = TextWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_VersionsOverlay.VersionsOverlay.m_VersionToText"));
81 m_VersionArrow = TextWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_VersionsOverlay.VersionsOverlay.m_VersionArrow"));
83 m_VersionFromText = TextWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_VersionsOverlay.VersionsOverlay.m_VersionFromText"));
85 m_AddonSizeIcon = ImageWidget.Cast(root.FindWidget(
"Height.Overlay.LineElements.HorizontalLayout.m_RightWidgetGroup.m_AddonSizeOverlay.AddonSizeOverlay.Scale1.AddonSizeIcon"));