6 static const ResourceName s_sLayout =
"{FEFDB7917AB8310F}UI/layouts/Menus/ContentBrowser/ScenariosMenu/ContentBrowser_ScenarioLine.layout";
7 ResourceName GetLayout() {
return s_sLayout; }
9 SizeLayoutWidget m_FavouriteButtonOverlay;
11 TextWidget m_NameText;
13 SizeLayoutWidget m_LastPlayedTextSize;
15 TextWidget m_LastPlayedText;
17 HorizontalLayoutWidget m_PlayerCount;
19 ImageWidget m_SinglePlayerImage;
21 ImageWidget m_MultiPlayerImage;
23 TextWidget m_PlayerCountText;
25 HorizontalLayoutWidget m_Source;
27 ImageWidget m_SourceImageOfficial;
29 ImageWidget m_SourceImageCommunity;
31 TextWidget m_SourceNameTextCommunity;
33 TextWidget m_SourceNameTextOfficial;
37 ButtonWidget m_Continue;
38 ButtonWidget m_Restart;
40 ButtonWidget m_FindServers;
41 ButtonWidget m_FavouriteButton;
43 SCR_ModularButtonComponent m_FavouriteButtonComponent;
44 SCR_ModularButtonComponent m_PlayComponent;
45 SCR_ModularButtonComponent m_ContinueComponent;
46 SCR_ModularButtonComponent m_RestartComponent;
47 SCR_ModularButtonComponent m_HostComponent;
48 SCR_ModularButtonComponent m_FindServersComponent;
50 bool Init(Widget root)
52 m_FavouriteButtonOverlay = SizeLayoutWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.m_FavouriteButtonOverlay"));
54 m_FavouriteButton = ButtonWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.m_FavouriteButtonOverlay.m_FavouriteButton"));
55 m_FavouriteButtonComponent = SCR_ModularButtonComponent.Cast(m_FavouriteButton.FindHandler(SCR_ModularButtonComponent));
57 m_NameText = TextWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.NameSize.NameOverlay.m_NameText"));
59 m_LastPlayedTextSize = SizeLayoutWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.m_LastPlayedTextSize"));
61 m_LastPlayedText = TextWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.m_LastPlayedTextSize.LastPlayedOverlay.m_LastPlayedText"));
63 m_PlayerCount = HorizontalLayoutWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.PlayerCountSize.m_PlayerCount"));
65 m_SinglePlayerImage = ImageWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.PlayerCountSize.m_PlayerCount.m_SinglePlayerImage"));
67 m_MultiPlayerImage = ImageWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.PlayerCountSize.m_PlayerCount.m_MultiPlayerImage"));
69 m_PlayerCountText = TextWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.PlayerCountSize.m_PlayerCount.PlayerCountTextArea.m_PlayerCountText"));
71 m_Source = HorizontalLayoutWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source"));
73 m_SourceImageOfficial = ImageWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source.SourceImagesSize.SourceImagesOverlay.m_SourceImageOfficial"));
75 m_SourceImageCommunity = ImageWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source.SourceImagesSize.SourceImagesOverlay.m_SourceImageCommunity"));
77 m_SourceNameTextCommunity = TextWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source.SourceNameTextOverlay.m_SourceNameTextCommunity"));
79 m_SourceNameTextOfficial = TextWidget.Cast(root.FindWidget(
"LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source.SourceNameTextOverlay.m_SourceNameTextOfficial"));
82 m_Play = ButtonWidget.Cast(root.FindAnyWidget(
"m_Play"));
83 m_Continue = ButtonWidget.Cast(root.FindAnyWidget(
"m_Continue"));
84 m_Restart = ButtonWidget.Cast(root.FindAnyWidget(
"m_Restart"));
85 m_Host = ButtonWidget.Cast(root.FindAnyWidget(
"m_Host"));
86 m_FindServers = ButtonWidget.Cast(root.FindAnyWidget(
"m_FindServers"));
89 m_PlayComponent = SCR_ModularButtonComponent.Cast(m_Play.FindHandler(SCR_ModularButtonComponent));
92 m_ContinueComponent = SCR_ModularButtonComponent.Cast(m_Continue.FindHandler(SCR_ModularButtonComponent));
95 m_RestartComponent = SCR_ModularButtonComponent.Cast(m_Restart.FindHandler(SCR_ModularButtonComponent));
98 m_HostComponent = SCR_ModularButtonComponent.Cast(
m_Host.FindHandler(SCR_ModularButtonComponent));
101 m_FindServersComponent = SCR_ModularButtonComponent.Cast(
m_FindServers.FindHandler(SCR_ModularButtonComponent));