Skip to content

UIDialog.AddButton(string, Action) Method

Definition

Namespace: Brine2D.UI

Adds a button to the dialog's button area. Buttons are laid out left-to-right in add order, centered horizontally as a group. Call RepositionButtons() after adding all buttons if you need positions to be correct before the first render.

C#
public Brine2D.UI.UIButton AddButton(string text, System.Action onClick);

Parameters

text System.String

onClick System.Action

Returns

UIButton