💣
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. elements
  2. Guide

Inputs

In my version, I've fixed the Finished issue, it now doesn't bug out when it's false.

You're welcome!

To create a input, use this.

local Input = Tabs.Main:AddInput("Input", {
    Title = "Input",
    Description = "Input Description",
    Default = "Default",
    Placeholder = "Placeholder",
    Numeric = false, -- Only allows numbers
    Finished = false, -- Only calls callback when you press enter
    Callback = function(Value)
        print("Input changed:", Value)
    end
})

If you are having issues, you're supposed to replace "Tabs.Main" with your actual tab.

Example: "Tabs.Exploits"

Whatever you put in your Tabs variable, it's what you need.

Change local Input to a different variable name every time. It can be anything.

Input (name of input) is saved in the Options variable.

You can try to remove it, but I've never tried to.

You can get the value anywhere simply by using this: (Put your variable name)

Input.Value

Or, whatever you put as the name of the toggle.

Options.Input.Value

Functions

You can check when the slider is changed, but Callback does the same thing.

Input:OnChanged(function()
    print("Input updated:", Input.Value)
end)

To set the value of a slider, use this.

Input:SetValue("Text")

If you don't set the right variable name, it won't work.

PreviousSlidersNextDropdowns

Last updated 7 months ago