StrongJoshua / libgdx-inGameConsole

A LibGdx library that allows a developer to add a console (similar to how it is featured in Source games) to their game.
https://www.strongjoshua.net/projects/games/libgdx-ingame-console
Apache License 2.0
132 stars 34 forks source link

Add method "Console.setHidden(boolean value)" #21

Closed bladecoder closed 8 years ago

bladecoder commented 8 years ago

I would like to show/hide the console from a button or programatically when certain errors happen. It would be useful to have the method Console.setHidden(boolean value) to allow this.

StrongJoshua commented 8 years ago

Hiding it using a button is already an option. Just use the setKeyID() function. This key will hide and show the console. I'll give you that the name isn't very descriptive and I agree that a basic setHidden() function would be useful. I'll add that soon.

StrongJoshua commented 8 years ago

Updated in 770fd7947adc968c9942138a28ef1e33d618b9d9 Should be deploying this to Maven within 24 hours

Namek commented 8 years ago

Guys, dont name it like that. Go with setVisible().

19.09.2016 05:51 "Jan Risse" notifications@github.com napisał(a):

Updated in 770fd79 https://github.com/StrongJoshua/libgdx-inGameConsole/commit/770fd7947adc968c9942138a28ef1e33d618b9d9 Should be deploying this to Maven within 24 hours

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/StrongJoshua/libgdx-inGameConsole/issues/21#issuecomment-247907258, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB5UqXVn14kMD8gC9oQrV3D3U18xZ7xks5qrgbLgaJpZM4J84hC .

bladecoder commented 8 years ago

@StrongJoshua with a button I meant that I would like to show/hide with an UI button, not a keyboard key.

@Namek Console.setVisible(boolean value) to show/hide the console is perfect.

StrongJoshua commented 8 years ago

@Namek Haha I don't know why I didn't think about that. I didn't actually have time to deploy yesterday so that is still easily changed. I'll get on that.

StrongJoshua commented 8 years ago

Added in version 0.5.2