TSM-icons


Train Supply Manager Addon - adds procedurally generated icons for using the empty train concept. Depending on your modlist, this mod will generate suitable icons for added resources with either a cargo wagon or fluid wagon background and named empty X - where X is the resource name. Even vanilla games will receive numerous additional icons, as plates, sciences, and ammo are now supported with their empty train icons in addition to basic ores and fluids.

Content
3 years ago
0.18 - 1.1
515
Trains

b Bugfix for Bob boards icons

3 years ago
(updated 3 years ago)

If you try my fix for Bob boars from Bob electronics mos, you fins that icons too large.

This happens couse in bob addon icon sizes set to 128, so we need to fix TSM-icons, to scale such icons.

Just find block

            icon_size = v.icon_size or 64
            if icon_size == 64 then
                scale = 0.25
            else
                scale = 0.5
            end

and add after it

            if icon_size == 128 then
                scale = 0.125
    end

now icons scaled just fine

2 years ago

Actually, the entire block can be replaced with scale = 16/icon_size, which functions appropriately in a wider variety of cases.

New response