Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VoiceoverData.c
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------
2[BaseContainerProps(configRoot: true)]
5 [Attribute()]
6 protected ref array<ref SCR_VoiceoverLineStandalone> m_aLines;
8 [Attribute()]
9 protected ref array<ref SCR_VoiceoverSequence> m_aSequences;
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 }
20 return null;
21 }
23 //------------------------------------------------------------------------------------------------
24 SCR_VoiceoverLineStandalone GetLineBySoundEvent(string eventName)
25 {
26 foreach (SCR_VoiceoverLineStandalone line : m_aLines)
27 {
28 if (line.GetSoundEventName() == eventName)
29 return line;
30 }
32 return null;
33 }
35 //------------------------------------------------------------------------------------------------
36 SCR_VoiceoverLine GetLineBySoundEvent(string eventName, string sequenceName)
37 {
38 SCR_VoiceoverSequence sequence = GetSequenceByName(sequenceName);
39
40 if (!sequence)
41 return null;
42
43 array<ref SCR_VoiceoverLine> lines = {};
44 sequence.GetLines(lines);
45
46 foreach (SCR_VoiceoverLine line : lines)
47 {
48 if (line.GetSoundEventName() == eventName)
49 return line;
50 }
52 return null;
53 }
54
55 //------------------------------------------------------------------------------------------------
56 SCR_VoiceoverSequence GetSequenceByName(string name)
57 {
58 foreach (SCR_VoiceoverSequence sequence : m_aSequences)
59 {
60 if (sequence.GetName() == name)
61 return sequence;
62 }
63
64 return null;
65 }
66}
67
68//------------------------------------------------------------------------------------------------
70class SCR_VoiceoverSequence
71{
72 [Attribute("")]
73 protected string m_sName;
74
75 [Attribute()]
76 protected ref array<ref SCR_VoiceoverLine> m_aLines;
77
78 //------------------------------------------------------------------------------------------------
79 string GetName()
80 {
81 return m_sName;
82 }
83
84 //------------------------------------------------------------------------------------------------
85 void GetLines(out notnull array<ref SCR_VoiceoverLine> lines)
86 {
87 if (!m_aLines)
88 return;
89
90 foreach (SCR_VoiceoverLine line : m_aLines)
91 {
92 lines.Insert(line);
93 }
94 }
95}
96
97//------------------------------------------------------------------------------------------------
100{
101 [Attribute(SCR_EVoiceoverActor.ACTOR_1.ToString(), uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(SCR_EVoiceoverActor))]
103
104 [Attribute("", desc: "Sound event name as defined in the appropriate .acp file in the actor's SCR_CommunicationSoundComponent.")]
105 protected string m_sSoundEventName;
106
107 [Attribute("")]
108 protected string m_sSubtitleText;
109
110 [Attribute("", desc: "Actor name to be shown in the subtitle.")]
111 protected string m_sActorName;
112
113 [Attribute("0", desc: "Non-zero value overrides the maximum distance from the voiceover source at which a subtitle will still be displayed.", params: "0 inf 1")]
115
116 [Attribute("0", desc: "Non-zero value executes an animation command with this parameter upon event start.")]
118
119 [Attribute("0", desc: "Non-zero value executes an animation command with this parameter upon event finish.")]
121
122 [Attribute("1", desc: "Interrupt the currently played line when this line starts playing.")]
124
125 [Attribute("-1", desc: "Non-negative value overrides the default pause between lines.")]
126 protected float m_fPauseBeforeLine;
127
128 //------------------------------------------------------------------------------------------------
130 {
131 return m_eActor;
132 }
133
134 //------------------------------------------------------------------------------------------------
136 {
137 return m_sSoundEventName;
138 }
139
140 //------------------------------------------------------------------------------------------------
142 {
143 return m_sSubtitleText;
144 }
145
146 //------------------------------------------------------------------------------------------------
148 {
149 return m_sActorName;
150 }
151
152 //------------------------------------------------------------------------------------------------
157
158 //------------------------------------------------------------------------------------------------
163
164 //------------------------------------------------------------------------------------------------
169
170 //------------------------------------------------------------------------------------------------
172 {
174 }
175
176 //------------------------------------------------------------------------------------------------
178 {
179 return m_fPauseBeforeLine;
180 }
181}
182
183//------------------------------------------------------------------------------------------------
185class SCR_VoiceoverLineStandalone : SCR_VoiceoverLine
186{
187 [Attribute("")]
188 protected string m_sName;
189
190 //------------------------------------------------------------------------------------------------
191 string GetName()
192 {
193 return m_sName;
194 }
195}
196
LocalizedString m_sName
ref array< ref MapLine > m_aLines
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
class SCR_VoiceoverData SCR_BaseContainerCustomTitleField("m_sName")
ref array< ref SCR_VoiceoverSequence > m_aSequences
class SCR_VoiceoverData BaseContainerProps()
SCR_EVoiceoverActor
@ ACTOR_6
@ ACTOR_10
@ ACTOR_1
@ ACTOR_5
@ ACTOR_19
@ ACTOR_13
@ ACTOR_14
@ ACTOR_11
@ ACTOR_2
@ ACTOR_12
@ ACTOR_16
@ ACTOR_15
@ ACTOR_9
@ ACTOR_3
@ ACTOR_4
@ ACTOR_7
@ ACTOR_17
@ ACTOR_20
@ ACTOR_8
@ ACTOR_18
ref array< ref SCR_VoiceoverSequence > m_aSequences
SCR_VoiceoverLineStandalone GetLineBySoundEvent(string eventName)
SCR_VoiceoverSequence GetSequenceByName(string name)
ref array< ref SCR_VoiceoverLineStandalone > m_aLines
SCR_VoiceoverLineStandalone GetLineByName(string name)
SCR_VoiceoverLine GetLineBySoundEvent(string eventName, string sequenceName)
int GetCustomSubtitleDistanceThreshold()
SCR_EVoiceoverActor GetActor()
SCR_EVoiceoverActor m_eActor
SCR_FieldOfViewSettings Attribute