Space Engineers

Space Engineers

Not enough ratings
Console Panel [API for programer]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.388 KB
18 Apr, 2015 @ 9:18am
26 Apr, 2015 @ 6:03am
4 Change Notes ( view )

Subscribe to download
Console Panel [API for programer]

Description
This program provides an API to use an LCD Panel as a console terminal in your C# program.
The console message are persistent when you lunch your program multiple time (with timer for exemple).
When there are too many message the console scroll down.

You need to load the script into a programable block and write your program in the Main methode.
You can use the Console class to write message in the console.

The Console class has static methods :
- Console.log(String msg)
- Console.log(Object msg)
- Console.WriteLine(String msg)
- Console.WriteLine(Object msg)
Write a message on the screen.
- Console.clear()
Clear the screen.

If there are no Panel with the name given in config, the Console continues to log in backgroud. You don't need to remove the call in your program if you want to stop displaying the logs. Just delete the Panel.

The console supports multi-ligne string. You can log strings which contain "\r\n" or "\n" without creating panel overloading.
1 Comments
kinngrimm 9 Mar, 2023 @ 6:19pm 
sounds great, maybe a on the fly bind to other scripts by adding a [TAG] to their PB encapulating them into this script and by that not having to change this script everytime with other scripts to get a debug console for them?