aliens

Author Topic: An example of how to use {NEWLINE} to separate blocks of text.  (Read 2516 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
An example of how to use {NEWLINE} to separate blocks of text.
« on: December 08, 2017, 07:16:07 pm »
I figured this information may be of use to anyone creating a mods with UFOpedia entries that have large amounts of text in them.

If you wish text to appear on a new line there is an easy way to do this.

Add the {NEWLINE} command into your string when you wish the text to start on the next line, two of them placed in a row will create a space between paragraphs like so: {NEWLINE} {NEWLINE}

Here's an example of a UFOpedia entry using {NEWLINE} to create 3 text blocks:

Code: [Select]
extraStrings:
  - type: en-US
    strings:
      # Research Entry Name
      STR_NEWLINE_EXAMPLE: "NEWLINE Example"
      STR_NEWLINE_EXAMPLE_UFOPEDIA: "I figured this may be of use to anyone creating a mods with UFOpedia entries that have large amounts of text in them. {NEWLINE}{NEWLINE}If you wish text to appear on a new line there is an easy way to do this.{NEWLINE}{NEWLINE}Add the NEWLINE command into your string when you wish your text to start on the next line, two of them placed in a row would create a space between paragraphs like so: NEWLINE NEWLINE"


Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: An example of how to use {NEWLINE} to separate blocks of text.
« Reply #1 on: December 09, 2017, 11:34:02 pm »
Thanks! I think I have a few places where I should put this in.