[2.x] Rich Text img=class.name to support quality flag

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
billbo99
Fast Inserter
Fast Inserter
Posts: 139
Joined: Fri Nov 02, 2018 9:19 am
Contact:

[2.x] Rich Text img=class.name to support quality flag

Post by billbo99 »

Using rich text gives me a single icon

Code: Select all

[img=item.iron-plate]
Trying to add quality to the string does not work

Code: Select all

[img=item.iron-plate,quality=epic]`
I know I can use, but I am just after the single icon which I get with the first example

Code: Select all

[item=iron-plate,quality=epic]
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 121
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Re: [2.x] Rich Text img=class.name to support quality flag

Post by PennyJim »

Ditto!

My mod Better Chatting that turns rich text tags for items and such into img tags so you don't have the ugly descriptor next to it when you want to treat it like an emoji in chat, currently doesn't support quality for this very reason.
User avatar
EvilPLa
Inserter
Inserter
Posts: 30
Joined: Sat Nov 14, 2020 7:26 am
Contact:

Re: [2.x] Rich Text img=class.name to support quality flag

Post by EvilPLa »

My problem is in the same context, I want to get a quality sprite onto a sprite button. Something like that but with a quality overlay.
11-13-2024, 21-06-13.png
11-13-2024, 21-06-13.png (16.02 KiB) Viewed 561 times
Wise men speak because they have something to say Fools because they have to say something. (Plato)
cogito123
Inserter
Inserter
Posts: 37
Joined: Thu Feb 28, 2019 7:05 pm
Contact:

Re: [2.x] Rich Text img=class.name to support quality flag

Post by cogito123 »

+1, this rich text parameter would be very useful in biter battles scenario
Pi-C
Smart Inserter
Smart Inserter
Posts: 1748
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: [2.x] Rich Text img=class.name to support quality flag

Post by Pi-C »

I really could need this for rendering Shortwave radio channel names on vehicles in Autodrive! Since the channel names can be comprised of comma-separated signal strings (each as "name.quality.count"), rendering the text directly is impractical (too long, not localized, not human-friendly). Translating the signal names to a combination of rich text (name + quality) and string (count) could still result in quite long renderings:
very_long_name.png
very_long_name.png (564.46 KiB) Viewed 97 times
So adding the quality flag to "img=class.name" would be very useful for my mod. Could we get this, please? :-)
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Post Reply

Return to “Modding interface requests”