aliens

Author Topic: Strings in UFOpedia  (Read 5464 times)

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
Strings in UFOpedia
« on: April 27, 2018, 12:53:32 pm »
How can i insert strings to UFOpedia?

I know, {NEWLINE} its work, but others?

I wanna insert example this: STR_BUILDING_RESOURCES , but show the original code, not the result.

Thank you!

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Strings in UFOpedia
« Reply #1 on: April 27, 2018, 02:43:53 pm »
You can't, `{NEWLINE}` is special marker not string. There only handful of makers like this available in text.

Overall something like this could be theoretically possible but will require lot of new code to support it.

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
Re: Strings in UFOpedia
« Reply #2 on: April 27, 2018, 02:46:34 pm »
You can't, `{NEWLINE}` is special marker not string. There only handful of makers like this available in text.

Overall something like this could be theoretically possible but will require lot of new code to support it.

Have a list somewhere this makers, which is available on text?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Strings in UFOpedia
« Reply #3 on: April 27, 2018, 03:06:42 pm »
Code: [Select]
{NEWLINE}
{SMALLLINE}
{ALT}
{0}
{1}
{2}
{3}
Where numbers are places where predefined values are inserted.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Strings in UFOpedia
« Reply #4 on: April 27, 2018, 03:09:07 pm »
{NEWLINE} - makes a new line
{SMALLLINE} - switches to small font
{ALT} - changes to secondary color

I wanna insert example this: STR_BUILDING_RESOURCES , but show the original code, not the result.

I have no idea what this means.
Please better description and some examples.

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
Re: Strings in UFOpedia
« Reply #5 on: April 27, 2018, 03:13:54 pm »
{NEWLINE} - makes a new line
{SMALLLINE} - switches to small font
{ALT} - changes to secondary color

I have no idea what this means.
Please better description and some examples.

I working on this:

Code: [Select]
ufopedia:
      STR_DEPLOYED_LARGE_WORKSHOP_UFOPEDIA: "This is a building of prefabricated elements that can be drawn up within a short time. A workshop contains all the equipment necessary to manufacture equipment based on designs from the science labs. Up to 400 engineers can occupy a workshop and 25 storage space for resources. Items under construction will also consume some space.{NEWLINE}{NEWLINE}Resources for construcion:{NEWLINE}STR_SPECIAL_RESOUCES: 4{NEWLINE}UFO_NAVIGATION: 2"

extrastrings:
STR_SPECIAL_RESOUCES: "Special Resouces"
STR_UFO_NAVIGATION: "Ufo Navigation"

But strings not working, i see the code, not the result. But now i understand can not work (yet).

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
Re: Strings in UFOpedia
« Reply #6 on: April 27, 2018, 04:12:28 pm »
Code: [Select]
{NEWLINE}
{SMALLLINE}
{ALT}
{0}
{1}
{2}
{3}
Where numbers are places where predefined values are inserted.

Thank you!

Can you show me example this {0},  {1} ? Thank you!

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Strings in UFOpedia
« Reply #7 on: April 27, 2018, 04:21:26 pm »
Can you show me example this {0},  {1} ? Thank you!

Code: [Select]
  STR_SCIENTISTS_AVAILABLE: "Scientists Available>{ALT}{0}"
  STR_SCIENTISTS_ALLOCATED: "Scientists Allocated>{ALT}{0}"
  STR_LABORATORY_SPACE_AVAILABLE: "Laboratory Space Available>{ALT}{0}"

Offline Biggieboy

  • Colonel
  • ****
  • Posts: 220
    • View Profile
Re: Strings in UFOpedia
« Reply #8 on: April 27, 2018, 04:25:22 pm »
Code: [Select]
  STR_SCIENTISTS_AVAILABLE: "Scientists Available>{ALT}{0}"
  STR_SCIENTISTS_ALLOCATED: "Scientists Allocated>{ALT}{0}"
  STR_LABORATORY_SPACE_AVAILABLE: "Laboratory Space Available>{ALT}{0}"

Thank you!