Jump to content

[BUG] impossible to make paragraphs


Thobolt

Recommended Posts

when I write (or rather paste from notepad) text to message node, it shows the paragraph "/n" there, but not when I test it i.e. in game. Stock missions do not have paragraphs either.

I found a work-around for that: Message window doesn't wrap line of spaces. It means 20+ spaces = one line brake. It also means that one can not make empty lines but that's a small problem. 

Edited by Thobolt
Link to comment
Share on other sites

11 hours ago, tomf said:

You can get line breaks in dialogs with the html line break <br>

Several of the textarea widgets seem to eat the tags, render them immediately, but not save them.

For example, if I type this into a message dialog:

I have some <i>italicized</i> text here.

Then I see this *as I type* in the editor text box:
 

Quote

 

I have some italicized text here.


 

(It immediately interprets my tags on the fly as I type them and renders them *right then*, rather than later when running the mission.)

Later when running the mission, the italics are gone, as are the tags I typed.  They get forgotten.

Link to comment
Share on other sites

On 23/03/2018 at 1:29 AM, Thobolt said:

when I write (or rather paste from notepad) text to message node, it shows the paragraph "/n" there, but not when I test it i.e. in game. Stock missions do not have paragraphs either.

I found a work-around for that: Message window doesn't wrap line of spaces. It means 20+ spaces = one line brake. It also means that one can not make empty lines but that's a small problem. 

Yes it seems I am having the same issue typing directly into the windows.

 

My workaround has been to cut down on the dialogue.

 

Gus Kerman just barks orders now.

Don’t get me wrong I’m enjoying the Mission Builder. It’s  great like ‘Box island’ in Kerbal. Box Island my greatest coding ish achievement. Till now!

 

Link to comment
Share on other sites

 

On 23.3.2018 at 1:51 PM, tomf said:

You can get line breaks in dialogs with the html line break <br>

Yep, <br> really seems to work. Many thanks @tomf!

On 24.3.2018 at 1:21 AM, Steven Mading said:

Later when running the mission, the italics are gone, as are the tags I typed.  They get forgotten.

And it looked like italics worked as well - are you sure you saved before running test?

Link to comment
Share on other sites

  • 1 month later...

"/n" isn't correct. It's "\n". There is one bug that bugs me though. Typing this in the editor will make the characters "\n" disappear and be replaced with the new line, but editing text after that point (like back space or delete) causes things to happen in the wrong place and you end up inserting text wrong or deleting the wrong characters. You almost have to just do the whole thing in notepad where you can see the "\n" the whole time.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...