Shiptest
Shiptest copied to clipboard
World Icons
About The Pull Request
Ports world icons from Mojave 13. This is an element that allows for tiny, size-accurate versions of object sprites in a roundabout way.
~~Drafted since spritainers want more coverage before merging~~ UNDRAFTED by request of a spritainer. God weeps
//MAKING A SUPER BASIC WORLD ICON IMPLEMENTATION GUIDE: FOR REAL. NO VIRUS. 100% ORGANIC//
- Place the Element in an Init below The Item In Question
/obj/item/Initialize()
. = ..()
AddElement(/datum/element/world_icon, null, icon, 'icon')
- Fill in info. Put the ORIGINAL ICON in the addelement's
'icon'
slot (yeah, this element layers the "original" sprite on top of the worldicon one, using it as the default. It just be like that sometimes)
/obj/item/kitchen/knife/combat/Initialize()
. = ..()
AddElement(/datum/element/world_icon, null, icon, 'icons/obj/kitchen.dmi')
- Put the directory to your NEW, WORLD ICON in the item's normal icon var
icon = 'icons/obj/world/melee.dmi'
The world icon and icon adjustment vars on obj/item should allow for implementation in places where an object's Icon has to frequently change.
Why It's Good For The Game
Just a little guy
Changelog
:cl: add: World icon element. add: World icons for combat knives. /:cl: