Smaller Shortcut Icons


Makes the shortcut icons smaller again.

Tweaks
1 year, 6 months ago
2.0
14.7K

g Problem with Ultracube enabled

10 months ago
(updated 3 days ago)

With Ultracube: https://mods.factorio.com/mod/Ultracube activated i get the followed error:

„smaller-shortcut-icons“: smaller-shortcut-icons/data-updates.lua:32: attempt to index field '?' (a nil value)

Workaround:

← Edit smaller-shortcut-icons_1.0.2/data-updates.lua
['give-artillery-targeting-remote'] = prefix .. 'artillery-targeting-remote',
}

for name, icon in pairs(shortcut_icons) do
if data.raw.shortcut[name] then
data.raw.shortcut[name].icon = icon .. '-x32.png'
data.raw.shortcut[name].icon_size = 32
data.raw.shortcut[name].small_icon = icon .. '-x24.png'
data.raw.shortcut[name].small_icon_size = 24
end
end

New response