Dialog
Require path: require "ProjectMotionUI/Components/Dialog"
Class PMUI.Dialog
Inherits from: PMUI.Frame
Methods & Functions
PMUI.Dialog:new(title, message)
Creates a new modal dialog with a title, message, and centered content panel.
| Parameter | Type | Description |
|---|---|---|
title | string|nil | Dialog title displayed in the header. |
message | string|nil | Message displayed inside the dialog. |
Returns: PMUI.Dialog
PMUI.Dialog:AddButton(text, callback)
Creates and adds a button to the dialog. Buttons are automatically distributed horizontally across the bottom of the panel.
| Parameter | Type | Description |
|---|---|---|
text | string | Button label. |
callback | function|nil | Function invoked when the button is clicked. |
Returns: PMUI.Dialog