Ulysses
General => Developers Corner => Topic started by: lampman13 on August 29, 2015, 07:55:08 PM
-
I am making a custom admin menu but I want to know how to "reset" the panel. so that when I click the kick button it will do what it needs to do for the kick thing ( set buttons, textentry, and plist ) but then when I click the ban button or anything I dont know how to "clear" everything that was there when the kick button was pressed.
-
Can anyone help?
-
There is no way to 'reset' what you did. Garry's Mod doesn't know what you want to reset. If you want to clear everything that happened, you have to set them manually back to the way they were before. If you give me an example I can explain more in-depth.
-
ok so when someone presses say kick it opens a plist and a textbox with a button that says kick that would inturn use that and kick the player selected. but then if someone presses kick but needs say the blacklist things or the ban things how would I make it so it would get rid of all the things opened by the kick button and open the other.
-
so basically when you press the kick button it would open stuff but when you clicked on another button it would take away the stuff that was previously opened and open the new thing
-
Well as I said before if you wanted to remove something you would have to hide the elements. An easy way to accomplish what you want would be to put the kick stuff in a new panel and then just hide/remove that panel when they click on another button.
-
oh thanks