REGoth-bs icon indicating copy to clipboard operation
REGoth-bs copied to clipboard

Feature/console basic

Open KirmesBude opened this issue 6 years ago • 3 comments

Basics for a in-game console. I removed the tries for now. I wont have a lot of time until september so I want to get the basics in at least - could be useful for implementing other features. See feature/console for another approach.

Not sure I am happy with Console calling into UIConsole, because it means Console will need to be added last. But looking at "toggle frame"/etc. maybe it needs to anyways. Leads to way cleaner command declarations for one.

UIConsole seems to consistently not render the scrollarea when loaded into WORLD(instead of OLDMINE) or after clearing it. Not sure why.

KirmesBude avatar Aug 05 '19 19:08 KirmesBude

Didn't look at all the details yet but is there a particular reason why the Console should be a bs::Component? It is not serialized and not updated every frame. Why not make it a plain class that is not even bs::IReflectable?

mworchel avatar Aug 08 '19 06:08 mworchel

Didn't look at all the details yet but is there a particular reason why the Console should be a bs::Component? It is not serialized and not updated every frame. Why not make it a plain class that is not even bs::IReflectable?

No reason at all. I initially thought there might be some merit in serializing the history or datastructures for auto-completion, so I started with a component.

KirmesBude avatar Aug 08 '19 07:08 KirmesBude

Finally got to test this! It is sooo cool to just type insert WOLF and have a wolf run around the oldmine! 😄

ataulien avatar Aug 15 '19 13:08 ataulien