Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ContentBrowser_ScenarioLineWidgets.c
Go to the documentation of this file.
1 // Autogenerated by the Generate Class from Layout plugin, version 0.2.0
2 // Layout file: UI/layouts/Menus/ContentBrowser/ScenariosMenu/ContentBrowser_ScenarioLine.layout
3 
5 {
6  static const ResourceName s_sLayout = "{FEFDB7917AB8310F}UI/layouts/Menus/ContentBrowser/ScenariosMenu/ContentBrowser_ScenarioLine.layout";
7  ResourceName GetLayout() { return s_sLayout; }
8 
9  SizeLayoutWidget m_FavouriteButtonOverlay;
10 
11  TextWidget m_NameText;
12 
13  SizeLayoutWidget m_LastPlayedTextSize;
14 
15  TextWidget m_LastPlayedText;
16 
17  HorizontalLayoutWidget m_PlayerCount;
18 
19  ImageWidget m_SinglePlayerImage;
20 
21  ImageWidget m_MultiPlayerImage;
22 
23  TextWidget m_PlayerCountText;
24 
25  HorizontalLayoutWidget m_Source;
26 
27  ImageWidget m_SourceImageOfficial;
28 
29  ImageWidget m_SourceImageCommunity;
30 
31  TextWidget m_SourceNameTextCommunity;
32 
33  TextWidget m_SourceNameTextOfficial;
34 
35  // Mouse interact buttons
36  ButtonWidget m_Play;
37  ButtonWidget m_Continue;
38  ButtonWidget m_Restart;
39  ButtonWidget m_Host;
40  ButtonWidget m_FindServers;
41  ButtonWidget m_FavouriteButton;
42 
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;
49 
50  bool Init(Widget root)
51  {
52  m_FavouriteButtonOverlay = SizeLayoutWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.m_FavouriteButtonOverlay"));
53 
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));
56 
57  m_NameText = TextWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.NameSize.NameOverlay.m_NameText"));
58 
59  m_LastPlayedTextSize = SizeLayoutWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.m_LastPlayedTextSize"));
60 
61  m_LastPlayedText = TextWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.m_LastPlayedTextSize.LastPlayedOverlay.m_LastPlayedText"));
62 
63  m_PlayerCount = HorizontalLayoutWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.PlayerCountSize.m_PlayerCount"));
64 
65  m_SinglePlayerImage = ImageWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.PlayerCountSize.m_PlayerCount.m_SinglePlayerImage"));
66 
67  m_MultiPlayerImage = ImageWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.PlayerCountSize.m_PlayerCount.m_MultiPlayerImage"));
68 
69  m_PlayerCountText = TextWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.PlayerCountSize.m_PlayerCount.PlayerCountTextArea.m_PlayerCountText"));
70 
71  m_Source = HorizontalLayoutWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source"));
72 
73  m_SourceImageOfficial = ImageWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source.SourceImagesSize.SourceImagesOverlay.m_SourceImageOfficial"));
74 
75  m_SourceImageCommunity = ImageWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source.SourceImagesSize.SourceImagesOverlay.m_SourceImageCommunity"));
76 
77  m_SourceNameTextCommunity = TextWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source.SourceNameTextOverlay.m_SourceNameTextCommunity"));
78 
79  m_SourceNameTextOfficial = TextWidget.Cast(root.FindWidget("LineHeight.Overlay0.LineContent.LineElements.SourceSize.m_Source.SourceNameTextOverlay.m_SourceNameTextOfficial"));
80 
81  // Mouse interact buttons
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"));
87 
88  if(m_Play)
89  m_PlayComponent = SCR_ModularButtonComponent.Cast(m_Play.FindHandler(SCR_ModularButtonComponent));
90 
91  if(m_Continue)
92  m_ContinueComponent = SCR_ModularButtonComponent.Cast(m_Continue.FindHandler(SCR_ModularButtonComponent));
93 
94  if(m_Restart)
95  m_RestartComponent = SCR_ModularButtonComponent.Cast(m_Restart.FindHandler(SCR_ModularButtonComponent));
96 
97  if(m_Host)
98  m_HostComponent = SCR_ModularButtonComponent.Cast(m_Host.FindHandler(SCR_ModularButtonComponent));
99 
100  if(m_FindServers)
101  m_FindServersComponent = SCR_ModularButtonComponent.Cast(m_FindServers.FindHandler(SCR_ModularButtonComponent));
102 
103  return true;
104  }
105 };
m_FindServers
protected SCR_InputButtonComponent m_FindServers
Definition: SCR_ScenarioDialogs.c:36
m_Host
protected SCR_InputButtonComponent m_Host
Definition: SCR_ScenarioDialogs.c:35
m_PlayerCount
protected ref map< int, int > m_PlayerCount
Mapping of faction id : player count.
Definition: SCR_FactionManager.c:34
SCR_ContentBrowser_ScenarioLineWidgets
Definition: SCR_ContentBrowser_ScenarioLineWidgets.c:4
m_Source
protected IEntitySource m_Source
Definition: SCR_PowerPole.c:14