Text Content

How to add text

Each tab on your welcome panel has it's own object which contains not only text lines but also additional pages, some visual options etc. To start adding text follow this route in your config file: WelcomePanel.json ➞ "Text Tabs" ➞ {Text Tab Object} ➞ "Text Lines".

 oxide/config/WelcomePanel.json @TEXT TABS

{
    "Text Lines": [
      [
        "My text line number 1",
        "My text line number 2",
        "My text line number 3"
      ]
    ]
  }

It's crucial to not delete any brackets or miss any comma otherwise it will result in config error. I recommend using some kind of json text editor which will highlight basic mistakes for you, for example Visual Studio Code (online, no download needed).

Adding multiple pages

Adding another page is done but inserting another array with text into "Text Lines" section. Please pay attetion to square brackets and commas. You can add unlimited amount of pages by following same pattern as in example bellow.

 oxide/config/WelcomePanel.json @TEXT TABS

{
    "Text Lines": 
    [
        [
            "My text lines at page 1",
            "My text lines at page 1"
        ],
        [
            "My text lines at page 2",
            "My text lines at page 2"
        ],
        [
            "My text lines at page 3",
            "My text lines at page 3"
        ]
    ]
}

Text Styling

Text in Rust plugins can be styled with standard rich text tags, it's similar to HTML. Every tag must be closed at the end of text line, otherwise none of the tags will work and they will be shown as regular text. If you ever encounter this issue, please do not reach out to support for help but make sure you double check your text lines instead.

Text Color

<color=#4A95CC>Colored Text</color>

Text Size

<size=35>Big Text</size>

Bold Text

Works only with Roboto-regular font

<b>Colored Text</b>

Italic Text

Works only with Roboto-regular font

<i>Italic Text</i>

New Line

Skipping to next line

\n

 oxide/config/WelcomePanel.json @TEXT TABS

"Text Lines": [
    [
      "<size=45><color=#4A95CC>RUSTSERVERNAME</color> #4 {playername}</size> ",
      "<size=25>WIPE SCHEDULE <color=#83b8c7>WEEKLY</color> @ <color=#83b8c7>4:00PM</color> (CET)</size>",
      "\\n \\n",
      "<size=25>RATES <color=#83b8c7>2x GATHER</color> | <color=#83b8c7>1.5x LOOT</color></size> ",
      "<size=25>GROUP LIMIT <color=#83b8c7>MAX 5</color></size>",
      "<size=25>MAPSIZE <color=#83b8c7>3500</color></size> "
    ]
],

Additional Styling

Text Alignment in config file is represented by numbers, there is total of 9 options (goes from 0 to 8).

0 Upper Left

1 Upper Center

2 Upper Right

3 Middle Left

4 Middle Center

5 Middle Right

6 Bottom Left

7 Bottom Center

8 Bottom Right

Available Fonts

robotocondensed-bold.ttf
robotocondensed-regular.ttf
permanentmarker.ttf

droidsansmono.ttf (not recommended to use)