Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_InputLayoutEditorComponent.c
Go to the documentation of this file.
1 [ComponentEditorProps(category: "GameScripted/Editor", description: "Access to the editor by pressin input actions. Works only with SCR_EditorBaseEntity!", icon: "WBData/ComponentEditorProps/componentEditor.png")]
3 {
4 };
5 
11 {
12  [Attribute(params: "layout")]
13  protected ResourceName m_Layout;
14 
15  protected Widget m_Widget;
16 
17  override void EOnEditorInit()
18  {
19  m_Widget = GetGame().GetWorkspace().CreateWidgets(m_Layout);
20  if (m_Widget && !m_Widget.FindHandler(SCR_EditorToggleUIComponent))
21  {
22  Print(string.Format("Widget '%1' does not have SCR_EditorToggleUIComponent!", m_Layout.GetPath()), LogLevel.WARNING);
23  m_Widget.RemoveFromHierarchy();
24  }
25  }
26  override void EOnEditorDelete()
27  {
28  if (m_Widget) m_Widget.RemoveFromHierarchy();
29  }
30 };
ComponentEditorProps
SCR_FragmentEntityClass ComponentEditorProps
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
m_Layout
ResourceName m_Layout
Definition: SCR_ActionsToolbarEditorUIComponent.c:6
SCR_InputLayoutEditorComponentClass
Definition: SCR_InputLayoutEditorComponent.c:2
SCR_BaseEditorComponent
Definition: SCR_BaseEditorComponent.c:119
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_InputLayoutEditorComponent
Definition: SCR_InputLayoutEditorComponent.c:10
SCR_EditorToggleUIComponent
Definition: SCR_EditorToggleUIComponent.c:3
SCR_BaseEditorComponentClass
Definition: SCR_BaseEditorComponent.c:2
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180