API ReferenceSandbox.UI

MenuBarclass

A row of menu headings - File, Edit, View. Click one to open it; once one is open, hovering another switches to it.

object→Panel→MenuBar
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public class Sandbox.UI.MenuBar : Sandbox.UI.Panel

Constructors1

Showing 1 constructors

Methods9

Showing 9 methods

public void CloseAll()PUBLIC

Close whatever is open.

Returns:void—

public virtual void OnButtonTyped(Sandbox.UI.ButtonEvent e)PUBLICVIRTUAL

Left and right that an open menu didn't use move between the headings.

ParameterTypeDescription
eButtonEvent—
Returns:void—

protected virtual void OnChildAdded(Sandbox.UI.Panel child)PROTECTEDVIRTUAL

ParameterTypeDescription
childPanel—
Returns:void—

protected virtual void OnChildRemoved(Sandbox.UI.Panel child)PROTECTEDVIRTUAL

ParameterTypeDescription
childPanel—
Returns:void—

protected virtual void OnMouseOver(Sandbox.UI.MousePanelEvent e)PROTECTEDVIRTUAL

Once a menu is open, sliding along the headings switches between them.

ParameterTypeDescription
eMousePanelEvent—
Returns:void—

public void Show(Sandbox.UI.Menu menu)PUBLIC

Open this heading's menu, closing whichever was open.

ParameterTypeDescription
menuMenu—
Returns:void—

Properties2

Showing 2 properties

public Sandbox.UI.Menu Sandbox.UI.MenuBar.OpenMenu { get; set; }PUBLICGETSET

The heading whose menu is showing, if any.

Returns:Menu—

On this page