Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_UIEditorEffect.c
Go to the documentation of this file.
1 [BaseContainerProps(), SCR_BaseContainerCustomTitleResourceName("m_Layout", true, "GUI: \"%1\"")]
8 {
9  [Attribute(params: "layout", desc: "GUI layout file")]
10  private ResourceName m_Layout;
11 
12  protected Widget m_Widget;
13 
14  override bool EOnActivate(SCR_BaseEditorComponent editorComponent, vector position = vector.Zero, set<SCR_EditableEntityComponent> entities = null)
15  {
16  if (editorComponent.IsActive())
17  {
19  if (!menuManager) return false;
20 
21  EditorMenuBase menu = menuManager.GetMenu();
22  if (!menu) return false;
23 
24  WorkspaceWidget workspace = GetGame().GetWorkspace();
25  if (!workspace) return false;
26 
27  Widget parent = menuManager.GetMenuComponent().GetHideableWidget();
28  if (!parent) return false;
29 
30  if (m_Widget) m_Widget.RemoveFromHierarchy();
31  m_Widget = workspace.CreateWidgets(m_Layout, parent);
32  }
33  else
34  {
35  SCR_HUDManagerComponent hudManager = GetGame().GetHUDManager();
36  if (!hudManager) return false;
37 
38  if (m_Widget) m_Widget.RemoveFromHierarchy();
39  m_Widget = hudManager.CreateLayout(m_Layout, EHudLayers.LOW);
40  }
41 
42  //--- ToDo: Remove
43  AnimateWidget.Opacity(m_Widget, 0, 0.5);
44 
45  return true;
46  }
47 };
SCR_HUDManagerComponent
Definition: SCR_HUDManagerComponent.c:23
SCR_BaseContainerCustomTitleResourceName
SCR_CampaignMilitaryBaseComponent SCR_MilitaryBaseComponent SCR_BaseContainerCustomTitleResourceName("m_sBaseName", true)
Definition: SCR_CampaignMilitaryBaseComponent.c:2522
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
m_Layout
ResourceName m_Layout
Definition: SCR_ActionsToolbarEditorUIComponent.c:6
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_UIEditorEffect
Definition: SCR_UIEditorEffect.c:7
EHudLayers
EHudLayers
Definition: SCR_HUDManagerComponent.c:5
SCR_BaseEditorComponent
Definition: SCR_BaseEditorComponent.c:119
Attribute
typedef Attribute
Post-process effect of scripted camera.
EditorMenuBase
Definition: EditorMenuBase.c:7
SCR_MenuEditorComponent
Definition: SCR_MenuEditorComponent.c:8
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
position
vector position
Definition: SCR_DestructibleTreeV2.c:30
SCR_BaseEditorEffect
Definition: SCR_BaseEditorEffect.c:7
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