Vehicle Sticker

by hyspeed

Attach a 'sticker' label to a vehicle. Through integration, labels can be added to locomotives or cargo-wagons randomly.

Utilities
2 months ago
1.1
220
Transportation

g Rich text support & Alt-Mode

5 months ago

I would prefer if Alt-key switches between show/hide stickers.
And the text of your stickers do not support rich text. I tried "my test label [img=item.iron-plate]" Your sticker label GUI show the icon correctly. But the sticker text over the vehicle does not show an icon but the technical text "[img=item.iron-plate]".

5 months ago

For rich text support see https://lua-api.factorio.com/latest/classes/LuaRendering.html#draw_text
You just have to add use_rich_text = true in your rendering.draw_text call.

5 months ago

I will try to do at least the rich-text.
thanks!

5 months ago

I will try to do at least the rich-text.
thanks!

The rich text is the important wish. So thanks for trying! I tried it on my own a few minutes ago. Its really as simple as I said. One line of code and voila rich text is supported :-)

5 months ago

The support for these has been added with version 1.3.3.

Thanks for the suggestions and inspiration!

5 months ago

Great! Thanks!

I made a fork of you mod now to specifically support the needs of Logicarts. https://mods.factorio.com/mod/LogicartLabels

If you like my new feature of automatically assigning a rich text label containing the slot filters, feel free to copy it :-)

5 months ago

that's pretty neat! I may add that to a future version.

New response