6 static const ResourceName s_sLayout =
"{35576491614D20E5}UI/layouts/Menus/ContentBrowser/AddonManager/AddonsTools/AddonsPresets/AddonLinePreset.layout";
7 ResourceName GetLayout() {
return s_sLayout; }
9 ImageWidget m_LineBackground;
11 TextWidget m_TxtAddonsCount;
13 ButtonWidget m_EditName;
16 TextWidget m_NameText;
18 SizeLayoutWidget m_SizeWarning;
20 ButtonWidget m_EditNameButton;
21 SCR_ModularButtonComponent m_EditNameButtonComponent;
23 ButtonWidget m_DeleteButton;
24 SCR_ModularButtonComponent m_DeleteButtonComponent;
26 ButtonWidget m_OverrideButton;
27 SCR_ModularButtonComponent m_OverrideButtonComponent;
29 ButtonWidget m_LoadButton;
30 SCR_ModularButtonComponent m_LoadButtonComponent;
32 bool Init(Widget root)
34 m_LineBackground = ImageWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.m_LineBackground"));
36 m_TxtAddonsCount = TextWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.LineElements.SizeAddons.HorizontalAddons.m_TxtAddonsCount"));
38 m_EditName = ButtonWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.LineElements.OverlayName.m_EditName"));
41 m_NameText = TextWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.LineElements.OverlayName.HorizontalName.m_NameText"));
43 m_SizeWarning = SizeLayoutWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.LineElements.m_SizeWarning"));
45 m_EditNameButton = ButtonWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.LineElements.m_EditNameButton"));
46 m_EditNameButtonComponent = SCR_ModularButtonComponent.Cast(m_EditNameButton.FindHandler(SCR_ModularButtonComponent));
48 m_DeleteButton = ButtonWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.LineElements.m_DeleteButton"));
49 m_DeleteButtonComponent = SCR_ModularButtonComponent.Cast(m_DeleteButton.FindHandler(SCR_ModularButtonComponent));
51 m_OverrideButton = ButtonWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.LineElements.m_OverrideButton"));
52 m_OverrideButtonComponent = SCR_ModularButtonComponent.Cast(m_OverrideButton.FindHandler(SCR_ModularButtonComponent));
54 m_LoadButton = ButtonWidget.Cast(root.FindWidget(
"LineHeight.Overlay.LineContent.LineElements.m_LoadButton"));
55 m_LoadButtonComponent = SCR_ModularButtonComponent.Cast(m_LoadButton.FindHandler(SCR_ModularButtonComponent));