Create your own exclusive Arceus X script with our UI Library in 3 steps!
- Include the library in a new variable
ArceusUI
by loading the following url via loadstring:
local ArceusUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/SPDM-Team/ArceusX-V3-Scripts/main/ArceusUI.lua"))()
- Setup the UI with the following functions:
rich-text ✅
Parameters:
Type | Description | |
---|---|---|
1 | String | The UI title |
Example:
ArceusUI:SetTitle("Arceus X <font color='rgb(255, 0, 0)'>|</font> MyScript")
Parameters:
Type | Description | |
---|---|---|
1 | String | Name and Extention of the file |
2 | String | Url of the image |
Example:
ArceusUI:SetLogo("MyLogo.png", "https://mywebsite/myimage.png")
rich-text ✅
Parameters:
Type | Passed arguments | Description | |
---|---|---|---|
1 | String | Text of the button | |
2 | Function | Any ( ... ) | The code of the button |
3 | Any ( ... ) | Extra arguments passed to the function when pressed |
Returned values:
Type | Description | |
---|---|---|
1 | ImageButton | Button element with its children |
Example:
local myButton = ArceusUI:AddButton("MyButton", function(...)
local extraValues = {...}
print("Pressed")
end, myExtraValues)
❗ Note that myExtraValues
and ...
can be unused.
rich-text ✅
Parameters:
Type | Passed arguments | Description | |
---|---|---|---|
1 | String | Text of the combo box | |
2 | Function | Boolean, Any ( ... ) | The combo box code where the first argument is the toggle status |
3 | Boolean | Starter status of the toggle | |
4 | Any ( ... ) | Extra arguments passed to the function when status changed |
Returned values:
Type | Description | |
---|---|---|
1 | ImageButton | Button element with its children |
Example:
local myToggle = ArceusUI:AddToggle("MyToggle", function(myStatus, ...)
local extraValues = {...}
print("Toggle status:", myStatus)
end, myExtraValues)
❗ Note that myExtraValues
and ...
can be unused.
rich-text ✅
Parameters:
Type | Passed arguments | Description | |
---|---|---|---|
1 | String | Text of the combo box | |
2 | Table | Array of strings | The combo box options |
3 | Function | String, Any ( ... ) | The combo box code where the first argument is the choosed option |
4 | Any ( ... ) | Extra arguments passed to the function when an option is choosed |
Returned values:
Type | Description | |
---|---|---|
1 | ImageButton | Button element with its children |
Example:
local myCombo = ArceusUI:AddComboBox("MyCombo", {"MyOption1", "MyOption2"}, function(myChoice, ...)
local extraValues = {...}
print("Combo selection:", myChoice)
end, myExtraValues)
❗ Note that myExtraValues
and ...
can be unused.
rich-text ✅
Parameters:
Type | Passed arguments | Description | |
---|---|---|---|
1 | String | Text of the up-down | |
2 | Function | Number, Any ( ... ) | The up-down code where the first argument is the numeric value |
3 | Number | Start value, default is 1 | |
4 | Number | Increment value, default is 1 | |
5 | Number | Minimum value, default is -math.huge | |
6 | Number | Maximum value, default is math.huge | |
7 | Any ( ... ) | Extra arguments passed to the function when the value is updated |
Returned values:
Type | Description | |
---|---|---|
1 | Frame | Frame element with its children |
Example:
local myUpDown = ArceusUI:AddComboBox("MyUpDown", function(myNumericValue, ...)
local extraValues = {...}
print("UpDown value:", myNumericValue)
end, 0, 1, 0, 10, myExtraValues) -- Starts at 0, increment by 1 each time, min 0 and max 10
❗ Note that myExtraValues
and ...
can be unused.
❓ Usefull to add extra UI elements OUTSIDE of the Main Frame.
Returned values:
Type | Description | |
---|---|---|
1 | ScreenGui | The GUI |
Example:
local myNewFrame = Instance.new("Frame")
myNewFrame.Parent = ArceusUI:Parent()
❓ Usefull if you want to remove the GUI from the game.
Example:
ArceusUI:Remove()
❓ Required to dispaly the UI.
Example:
ArceusUI:Start()
Riky47#3355 for https://spdmteam.com/