Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseGameOverScreenInfo.c
Go to the documentation of this file.
3 {
4  [Attribute("0", UIWidgets.ComboBox, "Game Over Screen ID", "", ParamEnumArray.FromEnum(EGameOverTypes) )]
5  protected EGameOverTypes m_GameOverScreenId;
6 
7  [Attribute("", desc: "This is the actual game over layout that is shown within the gameover screen", params: "layout")]
8  protected ResourceName m_GameOverContentLayout;
9 
10  [Attribute(desc: "Optional parameters to be displayed in the game over screen. Note that many of these settings are set by the inherent class like faction flag and icon in FactionGameOverScreenInfo")]
11  protected ref SCR_BaseGameOverScreenInfoOptional m_OptionalParams;
12 
13  [Attribute(desc: "Params for if the end screen can be displayed in editor. Can be left null if cannot be called by GM")]
14  protected ref SCR_BaseGameOverScreenInfoEditor m_OptionalEditorParams;
15 
20  EGameOverTypes GetInfoId()
21  {
22  return m_GameOverScreenId;
23  }
24 
29  ResourceName GetGameOverContentLayout()
30  {
31  return m_GameOverContentLayout;
32  }
33 
38  bool HasOptionalParams()
39  {
40  return m_OptionalParams != null;
41  }
42 
47  SCR_BaseGameOverScreenInfoOptional GetOptionalParams()
48  {
49  return m_OptionalParams;
50  }
51 
56  SCR_BaseGameOverScreenInfoEditor GetEditorOptionalParams()
57  {
58  return m_OptionalEditorParams;
59  }
60 
67  string GetTitle(Faction factionPlayer, array<Faction> factionsOther)
68  {
69  if (HasOptionalParams())
70  return m_OptionalParams.m_sTitle;
71  else
72  return string.Empty;
73  }
80  string GetTitle(int playerId, array<int> otherPlayerIds)
81  {
82  if (HasOptionalParams())
83  return m_OptionalParams.m_sTitle;
84  else
85  return string.Empty;
86  }
87 
94  string GetSubtitle(Faction factionPlayer, array<Faction> factionsOther)
95  {
96  if (HasOptionalParams())
97  return m_OptionalParams.m_sSubtitle;
98  else
99  return string.Empty;
100  }
101 
108  string GetSubtitle(int playerId, array<int> otherPlayerIds)
109  {
110  if (HasOptionalParams())
111  return m_OptionalParams.m_sSubtitle;
112  else
113  return string.Empty;
114  }
115 
122  ResourceName GetImage(Faction factionPlayer, array<Faction> factionsOther)
123  {
124  if (HasOptionalParams())
125  return m_OptionalParams.m_sImageTexture;
126  else
127  return string.Empty;
128  }
129 
136  ResourceName GetImage(int playerId, array<int> otherPlayerIds)
137  {
138  if (HasOptionalParams())
139  return m_OptionalParams.m_sImageTexture;
140  else
141  return string.Empty;
142  }
143 
150  ResourceName GetIcon(Faction factionPlayer, array<Faction> factionsOther)
151  {
152  if (HasOptionalParams())
153  return m_OptionalParams.m_sIcon;
154  else
155  return string.Empty;
156  }
157 
164  ResourceName GetIcon(int playerId, array<int> otherPlayerIds)
165  {
166  if (HasOptionalParams())
167  return m_OptionalParams.m_sIcon;
168  else
169  return string.Empty;
170  }
171 
179  Color GetVignetteColor(Faction factionPlayer, array<Faction> factionsOther)
180  {
181  return null;
182  }
183 
191  Color GetVignetteColor(int playerId, array<int> otherPlayerIds)
192  {
193  return null;
194  }
195 
202  string GetDebriefing(Faction factionPlayer, array<Faction> factionsOther)
203  {
204  if (HasOptionalParams())
205  return m_OptionalParams.m_sDebriefing;
206  else
207  return string.Empty;
208  }
209 
216  string GetDebriefing(int playerId, array<int> otherPlayerIds)
217  {
218  if (HasOptionalParams())
219  return m_OptionalParams.m_sDebriefing;
220  else
221  return string.Empty;
222  }
223 
230  string GetOneShotAudio(Faction factionPlayer, array<Faction> factionsOther)
231  {
232  if (HasOptionalParams())
233  return m_OptionalParams.m_sAudioOneShot;
234  else
235  return string.Empty;
236  }
237 
244  string GetOneShotAudio(int playerId, array<int> otherPlayerIds)
245  {
246  if (HasOptionalParams())
247  return m_OptionalParams.m_sAudioOneShot;
248  else
249  return string.Empty;
250  }
251 
258  string GetTitleParam(Faction factionPlayer, array<Faction> factionsOther)
259  {
260  if (HasOptionalParams())
261  return m_OptionalParams.m_sTitleParam;
262  else
263  return string.Empty;
264  }
265 
272  string GetTitleParam(int playerId, array<int> otherPlayerIds)
273  {
274  if (HasOptionalParams())
275  return m_OptionalParams.m_sTitleParam;
276  else
277  return string.Empty;
278  }
279 
286  string GetSubtitleParam(Faction factionPlayer, array<Faction> factionsOther)
287  {
288  if (HasOptionalParams())
289  return m_OptionalParams.m_sSubtitleParam;
290  else
291  return string.Empty;
292  }
293 
300  string GetSubtitleParam(int playerId, array<int> otherPlayerIds)
301  {
302  if (HasOptionalParams())
303  return m_OptionalParams.m_sSubtitleParam;
304  else
305  return string.Empty;
306  }
307 
314  string GetDebriefingParam(Faction factionPlayer, array<Faction> factionsOther)
315  {
316  if (HasOptionalParams())
317  return m_OptionalParams.m_sDebriefingParam;
318  else
319  return string.Empty;
320  }
321 
328  string GetDebriefingParam(int playerId, array<int> otherPlayerIds)
329  {
330  if (HasOptionalParams())
331  return m_OptionalParams.m_sDebriefingParam;
332  else
333  return string.Empty;
334  }
335 
342  void GameOverUICustomization(SCR_GameOverScreenUIComponent gameOverUI, Faction factionPlayer, array<Faction> factionsOther)
343  {
344 
345  }
346 
353  void GameOverUICustomization(SCR_GameOverScreenUIComponent gameOverUI, int playerId, array<int> otherPlayerIds)
354  {
355 
356  }
357 };
358 
361 {
362  [Attribute()]
363  LocalizedString m_sTitle;
364 
365  [Attribute()]
366  LocalizedString m_sSubtitle;
367 
368  [Attribute()]
369  ResourceName m_sImageTexture;
370 
371  [Attribute()]
372  ResourceName m_sIcon;
373 
374  [Attribute()]
375  LocalizedString m_sDebriefing;
376 
377  [Attribute()]
378  string m_sAudioOneShot;
379 
380  [Attribute(desc: "%1 param in m_sTitle")]
381  string m_sTitleParam;
382 
383  [Attribute(desc: "%1 param in m_sSubtitle")]
384  string m_sSubtitleParam;
385 
386  [Attribute(desc: "%1 param in m_sDebriefing")]
387  string m_sDebriefingParam;
388 };
389 
392 {
393  [Attribute("1", desc: "If this is true then the end game state can be set by GM if false but still has a display name it can still be used as a mirror state of another game state (Eg: Defeat cannot be set by GM but if playable faction is not selected when Victory condition is chosen then they will still be displayed defeat as this is a mirror condition for victory.")]
394  bool m_bCanBeSetByGameMaster;
395 
396  [Attribute("0", desc: "This endscreen type can only show if at least one faction is playable")]
397  bool m_bNeedsPlayableFactions;
398 
399  [Attribute(desc: "Editor only if m_bCanBeSetByGameMaster is true, This is not shown in the GameOver UI but instead the name shown in editor when deciding which faction shows what gameOver screen.")]
400  LocalizedString m_sDisplayName;
401 
402  [Attribute(desc: "Editor only if m_bCanBeSetByGameMaster is true, This is not shown in the GameOver UI but instead show in the editor when this end game type has been chosen, explaining more about it to the player.")]
403  LocalizedString m_sDescription;
404 
405  [Attribute(desc: "Optional param for description")]
406  LocalizedString m_sDescriptionParam1;
407 
408  [Attribute(desc: "Optional param for description")]
409  LocalizedString m_sDescriptionParam2;
410 
411  [Attribute(desc: "Editor only, if m_bCanBeSetByGameMaster is true and thus can be selected. If NOT set to NONE: This will indicate if the state has a mirror state. Any playable faction that is not selected will be given this end state instead eg: Not selected for Victory will get defeat", UIWidgets.ComboBox, "Mirrored state ID", "", ParamEnumArray.FromEnum(EGameOverTypes))]
412  EGameOverTypes m_MirroredState;
413 };
SCR_BaseGameOverScreenInfo
Definition: SCR_BaseGameOverScreenInfo.c:2
SCR_BaseGameOverScreenInfoEditor
Definition: SCR_BaseGameOverScreenInfo.c:391
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition: SCR_HitZoneGroupNameHolder.c:27
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
EGameOverTypes
EGameOverTypes
Definition: EGameOverTypes.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.
Faction
Definition: Faction.c:12
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
SCR_GameOverScreenUIComponent
Definition: SCR_GameOverScreenUIComponent.c:1
LocalizedString
Definition: LocalizedString.c:21
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468
SCR_BaseGameOverScreenInfoOptional
Definition: SCR_BaseGameOverScreenInfo.c:360