Following the steps in the , once you have installed ReGui, you can begin to create your first window!
By default, ReGui parents windows into ReGui.Container.Windows . The container parent is automatically tested. For example if ReGui had CoreGui permissions, the container would be parented to the CoreGUI.
If you would like to speicifcally parent the Container, define ContainerParent with the Parent in the ReGui:Init call
local Window = ReGui:Window({
Title = "Hello world!",
Size = UDim2.fromOffset(300, 200)
}) --> Canvas & WindowClass
Window:Label({Text="Hello, world!"})
Window:Button({
Text = "Save",
Callback = function()
MySaveFunction()
end,
})
Window:InputText({Label="string"})
Window:SliderFloat({Label = "float", Minimum = 0.0, Maximum = 1.0})
local Window = ReGui:TabsWindow({
Title = "Tabs window demo!",
Size = UDim2.fromOffset(300, 200)
}) --> TabSelector & WindowClass
local Names = {"Avocado", "Broccoli", "Cucumber"}
for _, Name in next, Names do
--// Create tab
local Tab = Window:CreateTab({Name=Name}) --> Canvas
Tab:Label({
Text = `This is the {Name} tab!`
})
end