Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseToggleToolbarAction.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
4 {
5  [Attribute(desc: "When defined, this info will be used when the action is toggled on.")]
6  protected ref SCR_UIInfo m_InfoToggled;
7 
8  private ref ScriptInvoker m_OnToggleChanged = new ScriptInvoker();
9 
13  ScriptInvoker GetOnToggleChange()
14  {
15  return m_OnToggleChanged;
16  }
17 
22  protected void Toggle(int value, bool highlight = false)
23  {
24  m_OnToggleChanged.Invoke(value, highlight);
25  }
26 
32  void Track()
33  {
34  }
35 
41  void Untrack()
42  {
43  }
44 
45  /*
46  Get UI info representing toggled state of the action.
47  When not defined, default UI info will be returned.
48  \return UI info
49  */
50  SCR_UIInfo GetInfoToggled()
51  {
52  if (m_InfoToggled)
53  return m_InfoToggled;
54  else
55  return GetInfo();
56  }
57 };
GetInfo
override SCR_UIInfo GetInfo(IEntity owner=null)
Definition: SCR_EditablePlayerDelegateComponent.c:140
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_BaseToggleToolbarAction
Definition: SCR_BaseToggleToolbarAction.c:3
SCR_EditorToolbarAction
Definition: SCR_EditorToolbarAction.c:3
SCR_UIInfo
Definition: SCR_UIInfo.c:7
SCR_BaseContainerCustomTitleUIInfo
void SCR_BaseContainerCustomTitleUIInfo(string propertyName, string format="%1")
Definition: Attributes.c:788
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