Once a GuiElement, say a GuiPanel, is defined as clickable (setClickable(true);) and appears on the screen, how am I supposed to click on it? There seems to be no mouse cursor; did I overlook something obvious?
setClickable() ??
-
- English
- Miwarre
- Thread is marked as Resolved.
-
-
Once an element is defined as "clickable", you will receive a PlayerGuiElementClickEvent once a player clicks on it. To enable to player to click on it, you have call player.setMouseCursorVisible(boolean) (remember to set it to false again once the cursor is no longer needed, since the player can't move as long as the cursor is visible)
-
Ah ah!! setMouseCursorVisible() was the missing piece.
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!