-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish se-module-icons-have-their-tier-number-the-corner
- Loading branch information
Showing
5 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
mods/se-module-icons-have-their-tier-number-the-corner/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Binary file added
BIN
+77.2 KB
mods/se-module-icons-have-their-tier-number-the-corner/cheat-all-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions
24
mods/se-module-icons-have-their-tier-number-the-corner/data-updates.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
12
mods/se-module-icons-have-their-tier-number-the-corner/info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.