Skip to main content

Setting Up Configurations

As seen in the Window Arguements/Parameters, Starlight has a configuration system.
Unlike many others, Starlight allows the user to create multiple configs that can be loaded and accessed anytime.
On top of that, the user may choose to autoload a certain configuration of their choice.

WARNING

You Must Set Up Your File System Settings in Your Window First!

Build Config Section​

Create the config groupbox that uses our Flag/Index System Technology to save your configurations.

Tab:BuildConfigGroupbox(2)

Replace the number with the Column you wish to create the Groupbox in.
You can also add a second number for the style of the groupbox like a normal one.
A third boolean parameter exists to set the buttons of the groupbox to be center-aligned in terms of content.

Enabling Autoload for users.​

As said before, users can autoload their own config of their choice.
However, you will need to add this line of code at the bottom of your script.

Starlight:LoadAutoloadConfig()

Ignoring Configs For Elements​

You can make an element ignore a config. A good example would be a very detected/trolling feature that you only want the user to enable with purpose.
To do this, simply add IgnoreConfig in the element's parameters.