Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_UIDescription.c
Go to the documentation of this file.
6 {
7  [Attribute(uiwidget: UIWidgets.EditBoxMultiline)]
8  protected LocalizedString Description;
9 
10  //------------------------------------------------------------------------------------------------
13  LocalizedString GetUnformattedDescription()
14  {
15  return Description;
16  }
17 
18  //------------------------------------------------------------------------------------------------
22  void SetDescription(LocalizedString description)
23  {
24  Description = description;
25  }
26 
27  //------------------------------------------------------------------------------------------------
31  LocalizedString GetDescription()
32  {
33  return Description;
34  }
35 
36  //------------------------------------------------------------------------------------------------
39  bool HasDescription()
40  {
41  return !GetDescription().IsEmpty();
42  }
43 
44  //------------------------------------------------------------------------------------------------
50  bool SetDescriptionTo(TextWidget textWidget)
51  {
52  if (!textWidget)
53  return false;
54 
55  textWidget.SetText(GetDescription());
56  return true;
57  }
58 
59  //------------------------------------------------------------------------------------------------
63  override void Log(string prefix = string.Empty, LogLevel logLevel = LogLevel.VERBOSE)
64  {
65  Print(string.Format(prefix + "%1: \"%2\", \"%3\"", Type(), Name, Description), logLevel);
66  }
67 
68  //------------------------------------------------------------------------------------------------
69  //--- Protected, to be overridden and/or made public by inherited classes
70  override protected void CopyFrom(SCR_UIName source)
71  {
72  SCR_UIDescription sourceDescription = SCR_UIDescription.Cast(source);
73  if (sourceDescription)
74  {
75  Description = sourceDescription.Description;
76  }
77 
78  super.CopyFrom(source);
79  }
80 }
SCR_UIName
Definition: SCR_UIName.c:5
SCR_BaseContainerLocalizedTitleField
SCR_TabViewComponent SCR_ScriptedWidgetComponent SCR_BaseContainerLocalizedTitleField("m_sTabButtonContent")
Definition: SCR_TabViewComponent.c:963
Attribute
typedef Attribute
Post-process effect of scripted camera.
LocalizedString
Definition: LocalizedString.c:21
SCR_UIDescription
Definition: SCR_UIDescription.c:5
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