Skip to main content

Creating Tabs and Other Functions

Before we start...

Introducing Luna Icons (DEPRECATED)

Once again - before we start - Luna Icons are discontinued, deprecated and superseded by Nebula Icon Library.
Check the discord server in the Starlight category on how to use them. Set Luna's ImageSource to custom.

Luna Uses Custom Icons so u do not have to find and/or upload your own!
We have 2 sources ; Lucide and Material.
Simply grab the name of your icon and paste it into the icon parameter. If you're using Lucide, replace spaces with dashes (-) and if you're on Material, replace spaces with underscores (_)
Make sure to change ImageSource to the source you're using.
We did not skid this from rayfield, pretty sure rayfield skidded this from us tho as we had this way before rayfield.

However, If you would still like to use your own custom icons, You may do so by changing the Icon value to the ID of ur image (DO NOT INCLUDE rbxassetid://) and Changing ImageSource to Custom.

Creating A Tab

This will show u how to create the instance of a tab. I recommend storing them in a table but it is fine for the docs.

local Tab = Window:CreateTab({
Name = "Tab Example",
Icon = "view_in_ar",
ImageSource = "Material",
ShowTitle = true -- This will determine whether the big header text in the tab will show
})

Creating A Section

Sections Help Organize Your Script. You May Add Any Element To A Section Like You Would On A Tab As Of Beta 5.1

Tab:CreateSection("Section Example")

Section Methods

This requires the section to be a variable first!

Section:Set("New Section Name")
Section:Destroy() -- Destroys the section

Creating Dividers

Info

A Section divider is slightly smaller than a regular divider.

Tab:CreateDivider()

Destroying The Interface

Destroys the UI And Elements

Warning

Destroying Luna Does Not Toggle Off Your Scripts So When Destroying, make sure you disable them first

Luna:Destroy()