Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EntityTooltipDetail.c
Go to the documentation of this file.
3 {
4  [Attribute()]
5  protected LocalizedString m_sDisplayName;
6 
7  [Attribute(params: "layout")]
8  protected ResourceName m_Layout;
9 
10  protected Widget m_Widget;
11 
12  [Attribute("1", "If false hides label")]
13  protected bool m_bShowLabel;
14 
15  //------------------------------------------------------------------------------------------------
17  bool NeedUpdate()
18  {
19  return false;
20  }
21 
22  //------------------------------------------------------------------------------------------------
29  bool CreateDetail(SCR_EditableEntityComponent entity, Widget parent, TextWidget label, bool setFrameslot = true)
30  {
31  if (label)
32  label.SetText(m_sDisplayName);
33 
34  WorkspaceWidget workspace = parent.GetWorkspace();
35  m_Widget = workspace.CreateWidgets(m_Layout, parent);
36 
37  if (InitDetail(entity, m_Widget))
38  {
39  return true;
40  }
41  else
42  {
43  m_Widget.RemoveFromHierarchy();
44  m_Widget = null;
45  return false;
46  }
47  }
48 
49  //------------------------------------------------------------------------------------------------
52  void UpdateDetail(SCR_EditableEntityComponent entity);
53 
54  //------------------------------------------------------------------------------------------------
59  bool InitDetail(SCR_EditableEntityComponent entity, Widget widget);
60 
61  //------------------------------------------------------------------------------------------------
63  bool GetShowLabel()
64  {
65  return m_bShowLabel;
66  }
67 }
m_sDisplayName
protected string m_sDisplayName
Definition: SCR_KeybindDialogs.c:39
m_Layout
ResourceName m_Layout
Definition: SCR_ActionsToolbarEditorUIComponent.c:6
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_EntityTooltipDetail
Definition: SCR_EntityTooltipDetail.c:2
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
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