Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FactionGameOverScreenInfo.c
Go to the documentation of this file.
3 {
4  [Attribute("1", desc: "If true gets faction flag of factionOther, else gets flag of Player faction. Not if winning faction is true but there are multiple factions then the given Image in optional params is used instead!")]
5  protected bool m_bGetWinningFactionImage;
6 
7  [Attribute("1", desc: "If true gets faction name of factionOther to be subtitle param, else gets name of Player faction")]
8  protected bool m_bGetWinningSubtitleParam;
9 
10  //Get winning faction Image (Or icon if image not found)
11  override ResourceName GetImage(Faction factionPlayer, array<Faction> factionsOther)
12  {
13  SCR_Faction scrFaction;
14 
15  if (m_bGetWinningFactionImage)
16  {
17  if (factionsOther.Count() == 1)
18  {
19  scrFaction = SCR_Faction.Cast(factionsOther[0]);
20  if (scrFaction)
21  return scrFaction.GetFactionFlag();
22  else
23  return factionsOther[0].GetUIInfo().GetIconPath();
24  }
25  else if (factionPlayer && factionsOther.Contains(factionPlayer))
26  {
27  scrFaction = SCR_Faction.Cast(factionPlayer);
28  if (scrFaction)
29  return scrFaction.GetFactionFlag();
30  else
31  return factionPlayer.GetUIInfo().GetIconPath();
32  }
33  else if (HasOptionalParams())
34  {
35  return m_OptionalParams.m_sImageTexture;
36  }
37  }
38  else if (factionPlayer)
39  {
40  scrFaction = SCR_Faction.Cast(factionPlayer);
41  if (scrFaction)
42  return scrFaction.GetFactionFlag();
43  else
44  return factionPlayer.GetUIInfo().GetIconPath();
45  }
46  else if (HasOptionalParams())
47  {
48  return m_OptionalParams.m_sImageTexture;
49  }
50 
51  return string.Empty;
52  }
53 
54  //Get winning faction Icon
55  override ResourceName GetIcon(Faction factionPlayer, array<Faction> factionsOther)
56  {
57  SCR_Faction scrFaction;
58 
59  if (m_bGetWinningFactionImage)
60  {
61  if (factionsOther.Count() == 1)
62  {
63  return factionsOther[0].GetUIInfo().GetIconPath();
64  }
65  else if (factionPlayer && factionsOther.Contains(factionPlayer))
66  {
67  return factionPlayer.GetUIInfo().GetIconPath();
68  }
69  else if (HasOptionalParams())
70  {
71  return m_OptionalParams.m_sIcon;
72  }
73  }
74  else if (factionPlayer)
75  {
76  return factionPlayer.GetUIInfo().GetIconPath();
77  }
78  else if (HasOptionalParams())
79  {
80  return m_OptionalParams.m_sIcon;
81  }
82 
83  return string.Empty;
84  }
85 
86 
87  //Get winning faction name
88  override string GetSubtitleParam(Faction factionPlayer, array<Faction> factionsOther)
89  {
90  if (m_bGetWinningFactionImage)
91  {
92  if (factionsOther.Count() == 1)
93  {
94  return factionsOther[0].GetFactionName();
95  }
96  else if (factionPlayer && factionsOther.Contains(factionPlayer))
97  {
98  return factionPlayer.GetFactionName();
99  }
100  else if (HasOptionalParams())
101  {
102  return m_OptionalParams.m_sSubtitleParam;
103  }
104  }
105  else if (factionPlayer)
106  {
107  return factionPlayer.GetFactionName();
108  }
109  else if (HasOptionalParams())
110  {
111  return m_OptionalParams.m_sSubtitleParam;
112  }
113 
114  return string.Empty;
115  }
116 };
SCR_FactionGameOverScreenInfo
Definition: SCR_FactionGameOverScreenInfo.c:2
SCR_BaseGameOverScreenInfo
Definition: SCR_BaseGameOverScreenInfo.c:2
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
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
SCR_Faction
Definition: SCR_Faction.c:6
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