:PopupModal

type PopupModal = {
NoResize: boolean?,
NoAnimation: boolean?,
NoClose: boolean?,
NoCollapse: boolean?,
Theme: string,
Parent: GuiObject?
}
Example usage:
local ModalWindow = ...:PopupModal({
Title = "Delete?"
}) --> Canvas
ModalWindow:Label({
Text = "All those beautiful files will be deleted.\nThis operation cannot be undone!",
TextWrapped = true
})
ModalWindow:Separator()
ModalWindow:Checkbox({
Value = false,
Label = "Don't ask me next time"
})
local Row = ModalWindow:Row({
Expanded = true
}) --> Canvas
Row:Button({
Text = "Okay",
Callback = function()
ModalWindow:ClosePopup()
end,
})
Row:Button({
Text = "Cancel",
Callback = function()
ModalWindow:ClosePopup()
end,
})
Theme colors:
Tag
Affects
ModalWindowDimBg
Background color of the Modal Dim
WindowBg
Background color
WindowBgTransparency
Background transparency
TitleBarBgCollapsed
Background color of collapsed titlebar
TitleBarTransparencyCollapsed
Background transparency of collapsed titlebar
TitleBarBgActive
Background color of active titlebar
TitleBarTransparencyActive
Background transparency of active titlebar
TitleBarBg
Background color of in-active titlebar
TitleBarTransparency
Background transparency of in-active titlebar
Border
Color of border
BorderTransparency
Transparency of in-active border
BorderTransparencyActive
Transparency of active border
ResizeGrab
Color of resize grab
Last updated