ReGui
  • Introduction
  • Getting Started
    • Installing
    • Creating windows
  • Plugins
    • Custom elements
    • Custom flags
    • Custom themes
  • Examples
    • Demo window
    • Example scripts
  • Methods
  • ReGui functions
  • Canvas functions
  • Configuration saving
  • Elements
    • :Label
    • :Error
    • Code Editor
    • :Button
    • :SmallButton
    • :RadioButton
    • :Image
    • :VideoPlayer
    • :Checkbox
    • :Radiobox
    • :Viewport
    • :Console
    • :Region
    • :List
    • :CollapsingHeader
    • :TreeNode
    • :Separator
    • :Indent
    • :BulletText
    • :Bullet
    • :Row
    • :SliderInt
    • :SliderFloat
    • :SliderEnum
    • :SliderColor3
    • :SliderCFrame
    • :SliderProgress
    • :DragInt
    • :DragFloat
    • :DragColor3
    • :DragCFrame
    • :InputText
    • :InputTextMultiline
    • :InputInt
    • :InputColor3
    • :InputCFrame
    • :ProgressBar
    • :Combo
    • :Keybind
    • :PlotHistogram
    • :Table
    • :TabSelector
    • :Window
    • :TabsWindow
    • :PopupModal
Powered by GitBook
On this page
  • Example usage:
  • Theme colors:
  1. Elements

:PopupModal

Previous:TabsWindow

Last updated 2 months ago

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

Preview