Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorFactionGameOverScreenInfo.c
Go to the documentation of this file.
3 {
4  [Attribute("", desc: "If m_bGetWinningSubtitleParam is true and multiple factions in array then this text is shown over is subtitle with %1 being player faction.")]
5  protected LocalizedString m_sMultiFactionsSubtiteText;
6 
7  override string GetSubtitle(Faction factionPlayer, array<Faction> factionsOther)
8  {
9  if (factionsOther.Count() > 1 && m_bGetWinningSubtitleParam)
10  return m_sMultiFactionsSubtiteText;
11 
12  return super.GetSubtitle(factionPlayer, factionsOther);
13  }
14 
15  override string GetSubtitleParam(Faction factionPlayer, array<Faction> factionsOther)
16  {
17  //Multiple winners but player did not win. So get player faction name instead even if It should get winning faction.
18  if (m_bGetWinningFactionImage)
19  {
20  if (factionsOther.Count() > 1 && !factionsOther.Contains(factionPlayer) && factionPlayer)
21  {
22  return factionPlayer.GetFactionName();
23  }
24  }
25 
26  return super.GetSubtitleParam(factionPlayer, factionsOther);
27  }
28 };
SCR_FactionGameOverScreenInfo
Definition: SCR_FactionGameOverScreenInfo.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.
SCR_EditorFactionGameOverScreenInfo
Definition: SCR_EditorFactionGameOverScreenInfo.c:2
Faction
Definition: Faction.c:12
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