Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MessageDialogContent.c
Go to the documentation of this file.
1 
5 {
6  [Attribute("Message")]
7  protected string m_sMessage;
8 
9  protected TextWidget m_wMessage;
10 
11  //------------------------------------------------------------------------------------------
12  override void HandlerAttached(Widget w)
13  {
14  super.HandlerAttached(w);
15 
16  m_wMessage = TextWidget.Cast(w.FindAnyWidget(m_sMessage));
17  }
18 
19  //------------------------------------------------------------------------------------------
20  void SetMessage(string message)
21  {
22  if (m_wMessage)
23  m_wMessage.SetText(message);
24  }
25 
26  //------------------------------------------------------------------------------------------
27  string GetMessage()
28  {
29  if (!m_wMessage)
30  return "";
31 
32  return m_wMessage.GetText();
33  }
34 }
m_wMessage
protected RichTextWidget m_wMessage
Definition: SCR_BrowserHoverTooltipComponent.c:24
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_MessageDialogContent
Definition: SCR_MessageDialogContent.c:4
SCR_ScriptedWidgetComponent
Definition: SCR_ScriptedWidgetComponent.c:7