Preview:
Update Logs:
V1.2: The Mobile Update
New Setting:
- largerMobileButton
UI:
- Arrow added for mobile, clicking it will show 1 to 4 buttons maximum. Can be disabled using
xyon:editSetting({multipleButtonActivated = false, largerMobileButton = false})
V1.1: The Optimisation Update
Fix:
- Mobile UI scale bug (ui size was too big for mobiles)
- Multiple Button Option Bugging when Disabled
New Functions:
xyon:Show(buttonID)
xyon:Hide(buttonID)
xyon:editSetting({})
-- example: xyon:editSetting({MultipleButtonActivated = false, largerMobileButton = true})
Removed Function:
xyon:Start(false)
-- Don't need it, it's starting by himself when you create a button.
Module renamed (UX → XYON) on the module + module improvement
V1.0@fix: The Fixing Update
Fix:
- UI not scalling properly
- Mobile can’t use the module
- button Transparency not changed when mouse release
Module renamed (UX → XYON) on the devforum
V1.0: The Release
New Functions:
xyon:Start(multipleButtonActivated: boolean) -- NOT WORKING ANYMORE
xyon.newButtons(buttonId: number, imageId: number)
xyon:CreateKeyCode(keycode: Enum.KeyCode, buttonId)
xyon:Lock(buttonId)
xyon:Unlock(buttonId)
New Events:
local button = ux.newButtons(1, 13673234122)
button.MouseEnter:Connect(function() end)
-- Event activated when the mouse enter the button.
local button = ux.newButtons(1, 13673234122)
button.MouseLeave:Connect(function() end)
-- Event activated when the mouse leaved the button.
local button = ux.newButtons(1, 13673234122)
button.MouseDown:Connect(function() end)
-- Event activated when the mouse click down on the button.
local button = ux.newButtons(1, 13673234122)
button.Activated:Connect(function() end)
-- Event activated when the button is clicked. working for both mouse and keycode.
Tutorial:
- Download the module.
- Put it in your place.
- Create a localScript in StarterGui or anything that can run in local.
- Create your script! here is an example if that help:
local xyon = require(game:GetService('ReplicatedStorage').XYON)
xyon:editSetting({MultipleButtonActivated = false})
local button1 = xyon.newButton(1, 13673234122)
xyon:CreateKeyCode(Enum.KeyCode.One, 1)
local button2 = xyon.newButton(2, 13673739165)
button2.Activated:Connect(function()
print('Button Activated!')
end)
xyon:CreateKeyCode(Enum.KeyCode.Two, 2)