Apparel Gizmos From Comps

If you liked this item, please rate it up on Steam Workshop page.

Author: Randolph Cherrypepper

Last revision: 22 Mar, 2024 at 01:43 UTC

File size: 4.57 MB

On Steam Workshop

Description:

This mod is meant for Code modders.

If you pick up a weapon, a button appears to melee or ranged attack. That’s a Gizmo associated with equipment used by a colonist. Unfortunately, RimWorld will not show Gizmos (buttons) associated with any apparel worn by a colonist. This is sad for modders.

AGFC defines an abstract ThingComp called CompWearable which provides CompGetGizmosWorn(). If apparel is worn by a selected colonist, Gizmos returned from CompGetGizmosWorn will be displayed.

Requires HugsLib for Harmony.

Compatibility note: AGFC applies a Postfix patch to RimWorld.Apparel.GetWornGizmos(). In other words, it should be safe to mix with other mods without issue.

Mod Order: Anywhere below HugsLib.

Feel free to leave a comment if you run into a problem.

Steam Download:
http://steamcommunity.com/sharedfiles/filedetails/?id=1272185463

GitHub Download:
https://github.com/RandolphCherrypepper/ApparelGizmosFromComps/releases/