10 private ResourceName m_Layout;
12 protected Widget m_Widget;
16 if (editorComponent.IsActive())
19 if (!menuManager)
return false;
22 if (!menu)
return false;
24 WorkspaceWidget workspace =
GetGame().GetWorkspace();
25 if (!workspace)
return false;
27 Widget parent = menuManager.GetMenuComponent().GetHideableWidget();
28 if (!parent)
return false;
30 if (m_Widget) m_Widget.RemoveFromHierarchy();
31 m_Widget = workspace.CreateWidgets(
m_Layout, parent);
36 if (!hudManager)
return false;
38 if (m_Widget) m_Widget.RemoveFromHierarchy();
43 AnimateWidget.Opacity(m_Widget, 0, 0.5);