if not UserInputService.TouchEnded then
icon:setEnabled(false)
end
It will always return true, as it is always available if you don’t have a touch device since it is an event. This is to prevent errors from occurring if you connect that event regardless of whether you have a touch device or not.
A better way to handle the start of that is to use
if UserInputService:GetLastInputType() ~= Enum.UserInputType.Touch then
icon:setEnabled(false)
end
On top of that, icon:setEnabled(lastInputType == Enum.UserInputType.Touch and true or false) is a weird way of formatting that. Why not just have icon:setEnabled(lastInputType == Enum.UserInputType.Touch)? It is way better for readability.
Quick update: fixes & improvements are underway; they’re going to take a few weeks longer until the release is ready. Will respond to all comments here and issues/PRs at the repository over this period too!
Anyone ever got an issue where the topbar icons just stop working? They’re still there, they just don’t get updated and cannot be clicked on even though the mouse cursor changes when you hover on them.
No errors, nothing prints or happens when you click on them, pretty weird, was also wondering if it’s possible to make them reset on death
Hello, I am new to this entire thing, I got the V 3.0.2 system. I can seem to remove this Controller icon next to the UI button. Is their anyway to disable this? It shows the same for laptop or mobile devices
The button is a backpack symbol and I do not know how to get rid of that controller UI next to it. If this is already answered, can anyone tell me how to resolve this issue ?
I’ve tried a few things here and I’m certain this is something caused by how my game is handling controller support but I honestly cannot find what’s causing this to occur.
I’m seeing this pop up, I’ve read through your docs and saw there’s an API for changing the keybind for this however it did not work for me.
And in the clip below you’ll see that the button displayed is D-pad up not buttonselect and that it shows when using keyboard and mouse but when I switch to controller it goes away?
Does anyone know how to enable selecting multiple options in a dropdown. For example I have a dropdown called Weapons with:
sword
bow
grenade
medkit
I want to be able to select sword AND bow. I know how to enable to select multiple things in the dropdown but does anyone know how to add a limit, like you can only enable 3 of them or something like that?
I found a quick-fix if you need it, go into Icon.Features.Gamepad, on line 28 you can set the highlight key to false, or something else.
It’s obviously just a temporary fix because ideally the gamepad icon would still come up when a gamepad is detected but for whatever reason for me a gamepad is always detected so this is my temporary fix. Hope you can do something with that information too.
I’ve recently ran into an issue where the topbar is overlapping with the new chat system, making the buttons inaccessible, is there anyway to change the ZIndex of the topbar or something similar?