ScriptRoblox/Library
2025-02-20 16:21:43 +00:00
..
README.md Update Library/README.md 2025-02-20 11:46:52 +00:00
testing2.lua Upload files to "Library" 2025-02-20 05:32:42 +00:00

JustHub Library

This documentation is for the stable release of Orion Library.

Booting the Library

local JustHub = loadstring(game:HttpGet(('https://git.warceuproject.org/Apapapa/ScriptRoblox/raw/branch/main/Library/testing2.lua')))()

Creating a Window

JustHub:InitializeUI({Name = "Just Hub", Theme = "Purple"})

wait(6) -- Waiting Timer Loading Screen

if not JustHub.Window then
	warn("Window belum dibuat.")
    	return
        end

        local window = JustHub.Window

--[[
Name = <string> - The name of the UI.
Theme = <Darker> - Themes(Colors Ui)

List Theme > Darker,Dark,Purple,Light,Neon
]]

Creating a Tab

 local Tab = window:addTab("•Home")

--[[
local Tab = window:addTab("Your Name Tabs") - The name of the tab.
]]

Creating a Section

local Section = Tab:addSection("Home Section", 120)

--[[
local Section = Tab:addSection("Your Name Section", 120) - The name of the section and size.
]]

Notifying the user

JustHub:Notify({
    Title = "Notification",
    Message = "UI berhasil dibuat!", 
    Duration = 5}),

--[[
Title = <string> - The title of the notification.
Message = <string> - The content of the notification.
Duration = <number> - The duration of the notfication.
]]

Creating a Button

Section:addButton({
    Name = "Execute",
    ButtonText = "Run",
    Callback = function()
        print("Button clicked!")
    end
})

--[[
Name = <string> - The name of the button.
ButtonText = <string> - The name of button
Callback = <function> - The function of the button.
]]

Creating a Checkbox toggle

Section:addToggle({
    Name = "Toggle",
    Default = false,
    Callback = function(state)
        print("Toggle state:", state)
    end
})

--[[
Name = <string> - The name of the toggle.
Default = <bool> - The default value of the toggle.
Callback = <function> - The function of the toggle
--)]]

Creat Slider

Section:addSlider({
    Name = "Slider Example",
    Min = 0,
    Max = 100,
    Default = 50,
    Callback = function(value)
        print("Slider value:", value)                   
    end
})
--[[
Name = <string> - The name of the slider.
Min = <number> - The minimal value of the slider.
Max = <number> - The maxium value of the slider.
Default = <number> - The default value slider
Callback = <function> - The function of the slider.
]]

Creating an Textbox Input

Section:AddTextbox({
	Name = "Textbox",
	Default = "default box input",
	Callback = function(Value)
		print(Value)
	end	  
})

--[[
Name = <string> - The name of the textbox.
Default = <string> - The default value of the textbox.
Callback = <function> - The function of the textbox.
]]

Creating a Dropdown menu

Section:addDropdown({
    Name = "Dropdown Example",
    Default = "",
    Items = {"Option 1", "Option 2", "Option 3"},
    Callback = function(selected)
        print("Dropdown selected:", selected)
    end
})

--[[
Name = <string> - The name of the dropdown.
Default = <string> - The default value of the dropdown.
Items = <table> - The options in the dropdown.
Callback = <function> - The function of the dropdown.
]]

Destroying the Interface

JustHub:Destroy()