Hey there Forum_account. I've been trying to use the HUDGroups library, going off the example in the inventory demo. It works for the most part, but I've ran into these issues:
1. In your example, /item has equip() and unequip(). I haven't had much luck figuring out how to rewrite the equipping part in the swap() procedure to work with my own /obj/item/equipment type. In my code only /obj/item/equipment has the equip() and unequip() procs, and I really don't want to give them to just /obj/item since only equipment should be able to be equipped. I tried typecasting but then it just seems to break the whole drag and drop thing.
2. I'm not quite sure how to remove items from the HUD once they've been added, in the case of dropping them.
3. Is it possible to save how you have items sorted in the HUD, as well as objects equipped in the various equipment slots?
Copyright © 2015 BYOND. All rights reserved.