Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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")]
5
11{
12 [Attribute(params: "layout")]
14
15 protected Widget m_Widget;
16
17 override void EOnEditorInit()
18 {
19 m_Widget = GetGame().GetWorkspace().CreateWidgets(m_Layout);
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
35};
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
void SCR_BaseEditorComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
SCR_FieldOfViewSettings Attribute