Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rich-text tags not rendered in station names #40

Open
yuriks opened this issue Jan 31, 2024 · 1 comment
Open

Rich-text tags not rendered in station names #40

yuriks opened this issue Jan 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@yuriks
Copy link

yuriks commented Jan 31, 2024

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.

@Palats
Copy link
Owner

Palats commented Feb 3, 2024

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 Palats added the enhancement New feature or request label Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants