![]() |
|
Toggle console window ? |
frankdrey
Member #14,090
March 2012
|
How do I make the user able to switch between showing the console or hiding it? If that's not possible I guess I'll make an overlay instead of a console or something like that. I'm just doing a projectile motion demonstration and want it to show the variables in the console, but with the ability to hide it. |
Specter Phoenix
Member #1,425
July 2001
![]() |
I think the in-game overlay is the preferred method for debug stuff. With the in-game overlay though you can make it possible to toggle it with a keypress if you wanted.
|
Peter Wang
Member #23
April 2000
|
You could use the textlog functionality in the native_dialog addon. Starting point: al_open_native_text_log
|
bamccaig
Member #7,536
July 2006
![]() |
It should be possible to programmatically create a console window. So if you create a console-less application then you could conceivably create and destroy (or at least hide) a console window. It would require platform specific code, and I can guess that it won't be pretty. You'll probably have an easier time, and get better user-friendliness from, creating your own in-game console. Of course, Peter Wang's solution is probably best if you don't need an interactive console (assuming whatever that is isn't interactive). -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
frankdrey
Member #14,090
March 2012
|
Alright thanks a bunch |
|