Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VoiceoverSubtitles.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
2 class SCR_VoiceoverSubtitles : SCR_InfoDisplayExtended
3 {
4  protected RichTextWidget m_wSubtitle;
5 
6  protected static float s_fLingerDuration;
7 
8  //------------------------------------------------------------------------------------------------
9  override void DisplayStartDraw(IEntity owner)
10  {
11  m_wSubtitle = RichTextWidget.Cast(m_wRoot.FindAnyWidget("Subtitle"));
12  }
13 
14  //------------------------------------------------------------------------------------------------
16  static void SetLingerDuration(float duration)
17  {
18  if (duration < 0)
19  duration = 0;
20 
21  s_fLingerDuration = duration;
22  }
23 
24  //------------------------------------------------------------------------------------------------
25  static float GetLingerDuration()
26  {
27  return s_fLingerDuration;
28  }
29 
30  //------------------------------------------------------------------------------------------------
31  void ShowSubtitle(string text)
32  {
33  if (!m_wSubtitle)
34  return;
35 
36  m_wSubtitle.SetTextFormat(text);
37  Show(true);
38  }
39 }
m_wRoot
protected Widget m_wRoot
Definition: SCR_ScenarioFrameworkLayerTaskDefend.c:59
Show
override void Show(WorkspaceWidget pWorkspace, Widget pToolTipWidget, float desiredPosX, float desiredPosY)
Definition: SCR_ScriptedWidgetTooltip.c:55
SCR_VoiceoverSubtitles
Definition: SCR_VoiceoverSubtitles.c:2