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
131 stars 35 forks source link

Console Window #11

Closed kevinmurphy678 closed 9 years ago

kevinmurphy678 commented 9 years ago

I made the console into a movable and resizable window for my game. You can see an example here in my game I am working on http://a.pomf.se/lhvlyw.mp4

It is pretty simple and uses libgdxs default window widget. I just added the ConsoleDisplay onto the window and it worked pretty well.

I've only tested it on my game so I'm not sure how the padding and layout will work with other skins, but it should be fine. My skin is just a modified default skin.

I also added an option to log to the system as well as the console, which could be useful if your game crashes and you can't see the in-game console, the system console is still there.

Maybe you could add an option for choosing between a window and the old full screen method.

StrongJoshua commented 9 years ago

Thanks for doing this, good job :)