A wonderful enhancement for console users, thanks lucke! Here's a few things you'll need to change:
Modifications
Change method setContainerMode(mode) to enableControllerMode(bool) - this limits the scope to true/false and makes it easier to understand for outside users
Make isControllerMode a local function instead of a method
Make isConsoleMode a local function instead of a method
Make updateDevice a local function instead of a method
Bugs
If you call game:GetService("StarterGui"):SetCore("TopbarEnabled", false) then plug-in a controller, the d-pad action image and topbar will still appear. This enables players to cheat by plugging in a controller whenever they want to re-enable their topbar.
Calling game:GetService("StarterGui"):SetCore("TopbarEnabled", false) when a controller is plugged in does not hide the dpad icon, enabling users to still continue using topbar.
When you press dpad-down, then A (to select highlighted icon) before toggling left/right, it makes your character jump instead of clicking the highlighted button
A wonderful enhancement for console users, thanks lucke! Here's a few things you'll need to change:
Modifications
Change method
setContainerMode(mode)
toenableControllerMode(bool)
- this limits the scope to true/false and makes it easier to understand for outside usersMake
isControllerMode
a local function instead of a methodMake
isConsoleMode
a local function instead of a methodMake
updateDevice
a local function instead of a methodBugs
If you call
game:GetService("StarterGui"):SetCore("TopbarEnabled", false)
then plug-in a controller, the d-pad action image and topbar will still appear. This enables players to cheat by plugging in a controller whenever they want to re-enable their topbar.Calling
game:GetService("StarterGui"):SetCore("TopbarEnabled", false)
when a controller is plugged in does not hide the dpad icon, enabling users to still continue using topbar.When you press dpad-down, then A (to select highlighted icon) before toggling left/right, it makes your character jump instead of clicking the highlighted button