@red51 is there a problem with the GuiElement.isVisible() method and it only returns false no matter if my element is visible or not? Has anyone else tested this? (tried it with a Label and a Panel both initialised and added as not visible to the player and then turned to visible by player.setGuiElementVisible(myElement, true) and they both returned false )
GuiElement.isVisible()
-
- English
- Minotorious
- Thread is marked as Resolved.
-
-
(yes, I know I am not red51! )
If you turn a GuiElement invisible with GuiElement.setVisibility(false) and then query its visibility of course, it returns false. It cannot take into account whether you have set that particular GuiElement visible for some player or not, if nothing else because you do not tell it which player! (the method call has no parameter for the player)
See also my reply in your other post.
-
(yes, I know I am not red51! )
If you turn a GuiElement invisible with GuiElement.setVisibility(false) and then query its visibility of course, it returns false. It cannot take into account whether you have set that particular GuiElement visible for some player or not, if nothing else because you do not tell it which player! (the method call has no parameter for the player)
See also my reply in your other post.
yep saw the other responce, good point see other thread for a reply, no point in discussing the same topic in two threads
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!