Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditorAttributeUIInfo.c
Go to the documentation of this file.
4 {
5  [Attribute("1 1 1 1", UIWidgets.ColorPicker, desc: "Description Icon Color")]
6  protected ref Color m_cDescriptionIconColor;
7 
8  //------------------------------------------------------------------------------------------------
13  void CopyFromEditorAttributeUIInfo(notnull SCR_EditorAttributeUIInfo source, LocalizedString overwriteDescription = string.Empty, Color overwriteColor = null)
14  {
15  CopyFrom(source);
16 
17  if (!overwriteDescription.IsEmpty())
18  Description = overwriteDescription;
19 
20  if (!overwriteColor)
21  m_cDescriptionIconColor = overwriteColor;
22  }
23 
24  //------------------------------------------------------------------------------------------------
25  override void CopyFrom(SCR_UIName source)
26  {
27  SCR_EditorAttributeUIInfo sourceInfo = SCR_EditorAttributeUIInfo.Cast(source);
28  if (sourceInfo)
29  {
30  Icon = sourceInfo.Icon;
31  IconSetName = sourceInfo.IconSetName;
32  Description = sourceInfo.Description;
33  m_cDescriptionIconColor = sourceInfo.m_cDescriptionIconColor;
34  }
35 
36  super.CopyFrom(source);
37  }
38 
39  //------------------------------------------------------------------------------------------------
42  Color GetDescriptionIconColor()
43  {
44  return Color.FromInt(m_cDescriptionIconColor.PackToInt());
45  }
46 }
SCR_UIName
Definition: SCR_UIName.c:5
SCR_BaseContainerLocalizedTitleField
SCR_TabViewComponent SCR_ScriptedWidgetComponent SCR_BaseContainerLocalizedTitleField("m_sTabButtonContent")
Definition: SCR_TabViewComponent.c:963
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_EditorAttributeUIInfo
UIInfo used by editor attribute system.
Definition: SCR_EditorAttributeUIInfo.c:3
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_UIInfo
Definition: SCR_UIInfo.c:7
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