CreateWindow
Syntax
Lib:CreateWindow({Title = "Window Name", Size = {x, y}, Resizable = bool})Every parameter besides Title is optional.
These parameters can optionally be added to the parameter list to tweak window behavior.
<string>
Title- Sets the window's name.<string>
Index- Sets the window's index. If this is not passed, the library uses Title.<string>
ToggleKey- Sets window's default toggle key. Format:[KEY](key list)<RGB table>
FontColor- Sets the window's font color.<RGB table>
MainColor- Sets the window's main color.<RGB table>
BackgroundColor- Sets the window's background color.<RGB table>
AccentColor- Sets the window's accent color.<RGB table>
OutlineColor- Sets the window's outline color.<X,Y table>
Size- Sets the window's default size.<X,Y table>
StartLocation- Sets the window's start location.<bool>
Rainbow- Enables color-changing accents.<bool>
Resizable- Determines whether the user can resize window.<bool>
FooterToggle- Determines whether the footer toggle bind is displayed.<bool>
FooterRGB- Determines whether the footer RGB bind is displayed.<bool>
FooterMouseCoords- Determines whether the footer mouse coords are displayed.
Green values can be changed, Red values cannot.
Window.LocationWindow.Rainbow- A boolean determining whether a window is RGB or not.Window.TitleWindow.WindowNum- The index number of the window starting from one.Window.ID- Unique window ID determined by Index or Name.Window.CurrentTab- Name of selected tab.Window.Dragging- True if window is being dragged.Window.Resizing- True if window is being resized.Window.ToggleKey- The window's toggle key.Window.ToggleKeyHoldingWindow.ToggleKeyHoveringWindow.Active- Boolean determining whether the window is displayed or not.Window.FooterRGB- Determines whether footer RGB toggle is shown.Window.FooterToggle- Determines whether footer toggle hotkey is shown.Window.FooterMouseCoords- Determines whether footer mouse coords are shown.Window.Restraint- A vector2 table showing the smallest possible window size.Window.OpenTool- Stores the window's current open tool. This applies for color pickers and dropdowns.
Notes
Every parameter besides Title is optional. If a value is left out, it will use a default preset.
Each window title must be unique if an Index variable isn't used or errors will occur.
All of the footer elements such as Footer Toggle, Footer RGB, and Footer Mouse Coords will be true by default unless specified otherwise.
A lot of the window variables constantly need to be changed by the script for it to function, so don't recursively change them or it may break the window.
Example
Code shown below is missing some critical syntax for simplicity

FAQ
Last updated