mapshot icon indicating copy to clipboard operation
mapshot copied to clipboard

Rich-text tags not rendered in station names

Open yuriks opened this issue 1 year ago • 1 comments

Station names using richtext icons are displayed with the raw [item=nullius-iron-ingot] etc. text, which makes them quite hard to read if those are heavily used.

image

I'm guessing this is a limitation of the mod API that doesn't let you directly save sprites to the output directory, but I wonder if it could be worked around somehow by rendering a spritesheet GUI of used icons and then screenshotting that? Or perhaps as a post-process command on the command-line tool that can copy the appropriate icons from the game mod files.

yuriks avatar Jan 31 '24 01:01 yuriks

There is mainly 2 things needed:

  • Getting the icons.
  • A parser for the strings.

Overall, that would be doable, though the extraction of the image might indeed not be completely trivial as you point out. Haven't looked at the mod API in a while, there might be some trick there to get things out I imagine. And the parsing is simple, at least for basic cases.

[I have no plans for now to work on it]

Palats avatar Feb 03 '24 19:02 Palats