UIDialog Class
Modal dialog box with customizable buttons.
public class UIDialog : Brine2D.UI.IUIComponent
Inheritance System.Object → UIDialog
Implements IUIComponent
| Properties | |
|---|---|
| BackgroundColor | Background color. |
| BorderColor | Border color. |
| ButtonAreaHeight | Button area height. |
| Message | Dialog message text. |
| OverlayColor | Overlay color (darkens background behind dialog). |
| Padding | Message area padding. |
| ScreenSize | Screen size for overlay (set by UICanvas). |
| ShowOverlay | Whether to show overlay behind dialog. |
| TextColor | Text color. |
| Title | Dialog title text. |
| TitleBarColor | Title bar color. |
| TitleBarHeight | Title bar height. |
| Methods | |
|---|---|
| AddButton(string, Action) | Adds a button to the dialog. |
| CenterOnScreen(Vector2) | Centers the dialog on screen. |
| ClearButtons() | Removes all buttons. |
| GetButtons() | Gets all buttons. |
| ProcessButtonInput(Vector2, bool, bool) | Called by UICanvas to handle button input. |