Skip to content

Commit

Permalink
Publish se-module-icons-have-their-tier-number-the-corner
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Nov 30, 2023
1 parent 28191c9 commit 8255196
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See the thumbnail for example, those are tier 2 moduled requests, but they look like tier 1.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- weird, data-updates.lua is required since SE doesn't define the new module tiers in data.lua?

for _, variant in ipairs({'speed', 'productivity', 'effectivity'}) do
for i = 1, 9 do
local name = variant .. '-module'
if i ~= 1 then name = name .. '-' .. i end
local prototype = data.raw['module'][name]
prototype.icons = {
{
icon = prototype.icon,
icon_mipmaps = prototype.icon_mipmaps,
icon_size = prototype.icon_size
},
{
icon = '__aai-containers__/graphics/icons/number/' .. i .. '.png',
scale = 0.5,
shift = {-10, -10},
icon_size = 20
}
}

-- log(serpent.block( data.raw['module'][name] ))
end
end
12 changes: 12 additions & 0 deletions mods/se-module-icons-have-their-tier-number-the-corner/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "se-module-icons-have-their-tier-number-the-corner",
"title": "Space Exploration - module icons have their tier number the corner",
"description": "It can be hard to distinguish every non-3rd module from their neighbour.",
"version": "1.0.0",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
"aai-containers",
"space-exploration"
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8255196

Please sign in to comment.