Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_UIName.c
Go to the documentation of this file.
5 class SCR_UIName
6 {
7  [Attribute(uiwidget: UIWidgets.LocaleEditBox)]
8  protected LocalizedString Name;
9 
10  //------------------------------------------------------------------------------------------------
13  LocalizedString GetUnformattedName()
14  {
15  return Name;
16  }
17 
18  //------------------------------------------------------------------------------------------------
22  void SetName(LocalizedString name)
23  {
24  Name = name;
25  }
26 
27  //------------------------------------------------------------------------------------------------
31  LocalizedString GetName()
32  {
33  return Name;
34  }
35 
36  //------------------------------------------------------------------------------------------------
39  bool HasName()
40  {
41  return !GetName().IsEmpty();
42  }
43 
44  //------------------------------------------------------------------------------------------------
50  bool SetNameTo(TextWidget textWidget)
51  {
52  if (!textWidget)
53  return false;
54 
55  textWidget.SetText(GetName());
56  return true;
57  }
58 
59  //------------------------------------------------------------------------------------------------
63  void Log(string prefix = string.Empty, LogLevel logLevel = LogLevel.VERBOSE)
64  {
65  Print(string.Format(prefix + "%1: \"%2\"", Type(), Name), logLevel);
66  }
67 
68  //--- Protected, to be overridden and/or made public by inherited classes
69  protected void CopyFrom(SCR_UIName source)
70  {
71  if (source)
72  Name = source.Name;
73  }
74 }
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
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