Space Engineers

Space Engineers

View Stats:
DoomsterEG Apr 5, 2016 @ 8:24am
Writing Text With Programmable Block : Solved
I am trying to use a programmable block to write some text on a text panel. So far i can write on the first line but i cant figure out how to move down to the next line. This is my code:

void Main()
{
var Display = GridTerminalSystem.GetBlockWithName("Display") as IMyTextPanel;
Display.WritePublicText("**Convert To Ship**" );
Display.ShowPublicTextOnScreen();
}

p.s I am pretty bad at coding.
Last edited by DoomsterEG; Apr 5, 2016 @ 8:45am
< >
Showing 1-2 of 2 comments
casualsailor Apr 5, 2016 @ 8:32am 
You need to use the newline character '\n'

So, "Now is the time\nfor all good men\nto come to the aid\nof his country" will display as:

Now is the time
for all good men
to come to the aid
of his country
DoomsterEG Apr 5, 2016 @ 8:45am 
Thanks!!!
Thats really helpful :D
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Apr 5, 2016 @ 8:24am
Posts: 2