💣
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. Fluent
  2. Setup

Interface and Save Manager

This is mostly used for Settings.

Please put these at the end of your script.

To save and edit the interface, have these variables somewhere in your code.

local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/1dontgiveaf/Fluent/main/Addons/SaveManager.lua"))()
local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/1dontgiveaf/Fluent/main/Addons/InterfaceManager.lua"))()

To use this though, pass your script to our managers.

SaveManager:SetLibrary(Fluent)
InterfaceManager:SetLibrary(Fluent)

To not save themes, use this.

SaveManager:IgnoreThemeSettings()

You can add indexes of elements the save manager should ignore.

SaveManager:SetIgnoreIndexes({}) 

Make a folder where you want your stuff to go.

InterfaceManager:SetFolder("Name") -- Name of your ScriptHub, or anything
SaveManager:SetFolder("Name/Game") -- The game, or anything else

At the end of everything, build the settings tab.

InterfaceManager:BuildInterfaceSection(Tabs.Settings) -- The Tab you want settings in.
SaveManager:BuildConfigSection(Tabs.Settings)

If you want, you can use this to load a marked config to auto-load.

SaveManager:LoadAutoloadConfig()
PreviousSetupNextProperties

Last updated 7 months ago