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 APIs to select or deselect the Console #25

Closed patrikturi closed 7 years ago

patrikturi commented 7 years ago

Deselecting the console is useful to be able to press game hotkeys while the console is still open. Or just have a passive log window. I would leave it to the game developer to implement selecting by mouse click or a hotkey.

patrikturi commented 7 years ago

The mouse also shouldn't be captured when the Console is not selected. I'll fix that. @StrongJoshua Am I heading in the right direction, or you have something different in mind?

StrongJoshua commented 7 years ago

Sorry that this is so terribly late, but hopefully a4cee5d6590951f14dc50af9aa749c1392a4cccf is what you wanted.

patrikturi commented 7 years ago

Yes, thank you. Can you also add a console.select(), please?

StrongJoshua commented 7 years ago

Added in c2cc0015881fb2c69d1e7846afc400b3404953bb Version 0.7.0 which includes that should be up soon.

patrikturi commented 7 years ago

Great, thanks.