legacy icons

This commit is contained in:
PreLeyZero 2022-06-27 22:15:38 +02:00
parent a1a9f4acd3
commit f5ddd58f70
8 changed files with 21 additions and 0 deletions

View file

@ -1,6 +1,8 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 1.0.29 Version: 1.0.29
Date: 08.06.2022 Date: 08.06.2022
Features:
- added option for legacy icons on rare metals
Bugfixes: Bugfixes:
- fix bug with industrial revolution - fix bug with industrial revolution
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------

View file

@ -1,5 +1,8 @@
--fix upgradeables bounding boxes --fix upgradeables bounding boxes
require('scripts/upgrades') require('scripts/upgrades')
--legacy icons
require('scripts/legacy_icons')
--insert tech --insert tech
if data.raw.lab['lab'] then if data.raw.lab['lab'] then
table.insert(data.raw.lab['lab'].inputs, 'fi_ki_science') table.insert(data.raw.lab['lab'].inputs, 'fi_ki_science')

View file

@ -645,6 +645,8 @@ el_ki_core_energy_usage_input_3=KI3 core power input maximum
overhaul_science=Enable [color=#880fb4]science overhaul[/color]. overhaul_science=Enable [color=#880fb4]science overhaul[/color].
retexture_science=Enable [color=green]science re-texturing[/color]. retexture_science=Enable [color=green]science re-texturing[/color].
legacy_icons=Enable [color=#96b40f]legacy icons[/color].
[mod-setting-description] [mod-setting-description]
el_ki_core_productivity=Allows to achieve very high productivity values in f.e. crafting machines, so use with caution. el_ki_core_productivity=Allows to achieve very high productivity values in f.e. crafting machines, so use with caution.
overhaul_mode=Overaul vanilla/Krastorio2 by inserting 248k in progression, aswell as in techs and recipes. \n[color=red]NOTE: When 248k is added in already existing save this may cause problems. For best gameplay use this on new world.[/color] overhaul_mode=Overaul vanilla/Krastorio2 by inserting 248k in progression, aswell as in techs and recipes. \n[color=red]NOTE: When 248k is added in already existing save this may cause problems. For best gameplay use this on new world.[/color]
@ -654,6 +656,8 @@ override_krastorio_endgame=Adjust Krastorio2 recipes for Anti-matter reactor, In
overhaul_science=[color=red][WIP][/color]. Change science by adding additional lab for exotic science. Will include more ways to make science and simulation methods in the future. \n[color=red]Will not work with Krastorio2. [/color] overhaul_science=[color=red][WIP][/color]. Change science by adding additional lab for exotic science. Will include more ways to make science and simulation methods in the future. \n[color=red]Will not work with Krastorio2. [/color]
retexture_science=Re-textures science packs with 248k icons. \n[color=red]Will not work with Krastorio2. [/color] retexture_science=Re-textures science packs with 248k icons. \n[color=red]Will not work with Krastorio2. [/color]
legacy_icons=Adds back the legacy textures for fission stage rare metals.
[item-limitation] [item-limitation]
limitation_message=This module can not be used here. limitation_message=This module can not be used here.

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

5
scripts/legacy_icons.lua Normal file
View file

@ -0,0 +1,5 @@
if settings.startup['legacy_icons'].value then
data.raw.item["fi_materials_gold"].icon = "__248k__/ressources/legacy_icons/fi_materials_gold.png"
data.raw.item["fi_materials_titan"].icon = "__248k__/ressources/legacy_icons/fi_materials_titan.png"
data.raw.item["fi_materials_neodym"].icon = "__248k__/ressources/legacy_icons/fi_materials_neodym.png"
end

View file

@ -138,4 +138,11 @@ data:extend({
default_value = false, default_value = false,
order = 'i-d', order = 'i-d',
}, },
{
name = 'legacy_icons',
type = 'bool-setting',
setting_type = 'startup',
default_value = false,
order = 'i-d',
},
}) })