Derpumu / Pacifist

A Factorio mod to remove military items, recipes, and technologies so you can concentrate on building useful things in peaceful mode.
MIT License
2 stars 1 forks source link

Replace gun slot icons with X or tool slot icons. #54

Closed dperelman closed 3 months ago

dperelman commented 3 months ago

This is an initial version of #51. It replaces the gun/ammo slot icons with X's (actually the set-bar-slot icon). It also replaces the text for the tooltips and errors when you try to equip a non gun/ammo in those slots with empty strings, effectively disabling those tooltips and errors.

If you want it to indicate that those are "tool" slots for mods that put tools in the gun slots, maybe you could use the old pickaxe icon I pulled out of an old Factorio's graphics directory: slot-icon-tool Not sure what the appropriate tool "ammo" icon would be.

Possibly the choice of which icon could be configurable? EDIT: Actually, you could probably just check if there exist any guns/ammo that haven't been removed and chose the icon based on that. EDIT2: Done.

dperelman commented 3 months ago

I tried to see if there was a way to programmatically change the strings based on whether there exists tool "guns"/"ammo" or not, but I don't see a way to do so. (At least some localized strings can be changed, but I don't see options for those ones.)