💣
idontgiveaf's fluent gui
  • Fluent Library
    • Example Script
  • Fluent
    • Setup
      • Interface and Save Manager
      • Properties
  • Components
    • Window
      • Tabs
      • Dialog
  • elements
    • Guide
      • Destroying Elements
      • Section
      • Paragraphs
      • Buttons
      • Toggles
      • Sliders
      • Inputs
      • Dropdowns
      • Colorpickers
      • Keybinds
Powered by GitBook
On this page
  1. Components

Window

An detailed explanation on how a window works.

PreviousPropertiesNextTabs

Last updated 7 months ago

The window can be created here. It's needed for the main part of Fluent.

local Window = Fluent:CreateWindow({
    Title = "Fluent " .. Fluent.Version,
    SubTitle = "by .idontgiveaf",
    TabWidth = 160,
    Size = UDim2.fromOffset(580, 460),
    Acrylic = true, -- Turns off and on blur in case it's detected
    Theme = "Dark",
    MinimizeKey = Enum.KeyCode.LeftControl -- Used when there's no MinimizeKeybind
})

If you need to run code when the GUI closes, connect the window to a destroyed connection.

Window.Root.Destroying:Connect(function()
    print("Window Destroyed!")
end)

Functions

To select a tab, use this.

This is used to load into a script with a specific tab number.

Window:SelectTab(1) -- Tab Number

The window can be minimized without pressing the button.

Window:Minimize()

If you dislike notifications, you can also do it manually.

Window.Minimized = not Window.Minimized
Window.Root.Visible = not Window.Minimized

To maximize, use this function.

Window:Minimize()

To destroy, use this function.

Window:Destroy()

This only destroys the window. To destroy the library, go to Setup for the function.

If you want to add another tab, use this function.

This function is normally used in the Tabs variable.

Window:AddTab({ Title = "Example", Icon = "" })

Green

Page cover image
Cover

Amethyst

Cover

Aqua

Cover

Rose

Cover

Light

Cover

Dark

Cover

Darker