Skip to content

UIMenuItem(string, bool, Action) Constructor

Definition

Namespace: Brine2D.UI

C#
public UIMenuItem(string label, bool enabled=true, System.Action? onClick=null);

Parameters

label System.String

Display text.

enabled System.Boolean

Whether the item is interactive. Defaults to true.

onClick System.Action

Optional click handler.