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

Convenience api #4

Closed piotr-j closed 9 years ago

piotr-j commented 9 years ago

Added new api to clear the console and set maximum number of entries allowed.

Refactored refresh() to not create new labels every time.

StrongJoshua commented 9 years ago

Smart move with improving the refresh function. I think I'll add an option to have unlimited entries.

piotr-j commented 9 years ago

Cool, i think ill implement custom position next. I dont like the halfscreen stuff On 13 Feb 2015 20:34, "StrongJoshua" notifications@github.com wrote:

Merged #4 https://github.com/StrongJoshua/libgdx-inGameConsole/pull/4.

— Reply to this email directly or view it on GitHub https://github.com/StrongJoshua/libgdx-inGameConsole/pull/4#event-235614836 .

StrongJoshua commented 9 years ago

Sure :) I was thinking of allowing the console to be movable and resizable (with constraints of course).

StrongJoshua commented 9 years ago

haha, I think we use different formatters, so merging often has many white-space changes :P

piotr-j commented 9 years ago

Yeah, Ill try to clean this up better next time.