Add [P/] to rich text formatting?

Place to get help with not working mods / modding interface.
jdogg
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Oct 08, 2018 9:41 pm
Contact:

Add [P/] to rich text formatting?

Post by jdogg »

Would it be possible to add a paragraph break [P/] to the rich text formatting for making the locale description look right no matter what screen resolution your using?

The idea behind it would be so this:

Code: Select all

[entity-description]
main-description=Integrated passive provider and requester chests[P/][color=red]Press: [font=default-bold]__1__[/font] to open requester chest.[/color][P/][color=yellow]Press: [font=default-bold]__2__[/font] to open requester chest inserter configuration.[/color][P/][color=blue]Press: [font=default-bold]__3__[/font] to open provider chest.[/color][P/][color=green]Press: [font=default-bold]__4__[/font] to open provider chest inserter configuration.[/color]
Would display like this no matter the resolution:
cfg-formatting-1.png
cfg-formatting-1.png (467.09 KiB) Viewed 975 times
But without them the description shows like this:
cfg-formatting-2.png
cfg-formatting-2.png (228.13 KiB) Viewed 975 times
Bilka
Factorio Staff
Factorio Staff
Posts: 3309
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Add [P/] to rich text formatting?

Post by Bilka »

What would [P/] do differently than already existing \n?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
jdogg
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Oct 08, 2018 9:41 pm
Contact:

Re: Add [P/] to rich text formatting?

Post by jdogg »

Literally nothing, I feel dumb but I searched for way too long and couldn't find how to do it. Where is that even documented at or is that just a common thing for .cfg files? Also thank you that makes my descriptions look so much cleaner :D
Post Reply

Return to “Modding help”