Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VoiceoverData.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
2 [BaseContainerProps(configRoot: true)]
4 {
5  [Attribute()]
6  protected ref array<ref SCR_VoiceoverLineStandalone> m_aLines;
7 
8  [Attribute()]
9  protected ref array<ref SCR_VoiceoverSequence> m_aSequences;
10 
11  //------------------------------------------------------------------------------------------------
12  SCR_VoiceoverLineStandalone GetLineByName(string name)
13  {
14  foreach (SCR_VoiceoverLineStandalone line : m_aLines)
15  {
16  if (line.GetName() == name)
17  return line;
18  }
19 
20  return null;
21  }
22 
23  //------------------------------------------------------------------------------------------------
24  SCR_VoiceoverSequence GetSequenceByName(string name)
25  {
26  foreach (SCR_VoiceoverSequence sequence : m_aSequences)
27  {
28  if (sequence.GetName() == name)
29  return sequence;
30  }
31 
32  return null;
33  }
34 }
35 
36 //------------------------------------------------------------------------------------------------
38 class SCR_VoiceoverSequence
39 {
40  [Attribute("")]
41  protected string m_sName;
42 
43  [Attribute()]
44  protected ref array<ref SCR_VoiceoverLine> m_aLines;
45 
46  //------------------------------------------------------------------------------------------------
47  string GetName()
48  {
49  return m_sName;
50  }
51 
52  //------------------------------------------------------------------------------------------------
53  void GetLines(out notnull array<ref SCR_VoiceoverLine> lines)
54  {
55  if (m_aLines)
56  lines = m_aLines;
57  }
58 }
59 
60 //------------------------------------------------------------------------------------------------
63 {
64  [Attribute(SCR_EVoiceoverActor.ACTOR_1.ToString(), uiwidget: UIWidgets.ComboBox, desc: "Type", enums: ParamEnumArray.FromEnum(SCR_EVoiceoverActor))]
65  protected SCR_EVoiceoverActor m_eActor;
66 
67  [Attribute("", desc: "Sound event name as defined in the appropriate .acp file in the actor's SCR_CommunicationSoundComponent.")]
68  protected string m_sSoundEventName;
69 
70  [Attribute("")]
71  protected string m_sSubtitleText;
72 
73  //------------------------------------------------------------------------------------------------
74  SCR_EVoiceoverActor GetActor()
75  {
76  return m_eActor;
77  }
78 
79  //------------------------------------------------------------------------------------------------
80  string GetSoundEventName()
81  {
82  return m_sSoundEventName;
83  }
84 
85  //------------------------------------------------------------------------------------------------
86  string GetSubtitleText()
87  {
88  return m_sSubtitleText;
89  }
90 }
91 
92 //------------------------------------------------------------------------------------------------
94 class SCR_VoiceoverLineStandalone : SCR_VoiceoverLine
95 {
96  [Attribute("")]
97  protected string m_sName;
98 
99  //------------------------------------------------------------------------------------------------
100  string GetName()
101  {
102  return m_sName;
103  }
104 }
105 
107 {
113 }
ACTOR_4
@ ACTOR_4
Definition: SCR_VoiceoverData.c:111
GetName
string GetName()
Definition: SCR_ScenarioFrameworkLayerBase.c:85
BaseContainerProps
class SCR_VoiceoverData BaseContainerProps()
m_aLines
protected ref array< ref SCR_VoiceoverLineStandalone > m_aLines
Definition: SCR_VoiceoverData.c:3
SCR_BaseContainerCustomTitleField
class SCR_VoiceoverData SCR_BaseContainerCustomTitleField("m_sName")
Definition: SCR_VoiceoverData.c:37
SCR_EVoiceoverActor
SCR_EVoiceoverActor
Definition: SCR_VoiceoverData.c:106
m_eActor
protected SCR_EVoiceoverActor m_eActor
Definition: SCR_VoiceoverData.c:39
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
ACTOR_5
@ ACTOR_5
Definition: SCR_VoiceoverData.c:112
ACTOR_2
@ ACTOR_2
Definition: SCR_VoiceoverData.c:109
m_aSequences
protected ref array< ref SCR_VoiceoverSequence > m_aSequences
Definition: SCR_VoiceoverData.c:6
Attribute
typedef Attribute
Post-process effect of scripted camera.
m_aLines
protected ref array< ref MapLine > m_aLines
Definition: SCR_MapDrawingUI.c:183
SCR_VoiceoverData
Definition: SCR_VoiceoverData.c:3
m_sSubtitleText
protected string m_sSubtitleText
Definition: SCR_VoiceoverData.c:45
m_sSoundEventName
protected string m_sSoundEventName
Definition: SCR_VoiceoverData.c:42
SCR_VoiceoverLine
Definition: SCR_VoiceoverData.c:62
ACTOR_3
@ ACTOR_3
Definition: SCR_VoiceoverData.c:110
m_sName
protected LocalizedString m_sName
Definition: SCR_GroupIdentityComponent.c:19
ACTOR_1
@ ACTOR_1
Definition: SCR_VoiceoverData.c:108