[1.0] Show Draftee's Weapon... in the Colonist Bar

Started by diner, March 23, 2019, 03:50:53 AM

Previous topic - Next topic

diner


Description
Shows a pawn's weapon icon on the colonist bar.

When a pawn has been drafted their equipped weapon icon will display under the pawn's avatar on the colonist banner. New mod settings have been added to allow weapons to be shown regardless of a pawn's drafted status and while they are traveling. The settings can be accessed via... Options > Mod Settings > Show Draftee's Weapon.

Settings:
- Show When Not Drafted - When checked weapons will display regardless of the pawn's drafted status.
- Show When Traveling - When checked weapons will display when pawns are traveling, and their drafted status meets the Show When Not Drafted setting.

Compatibility

  • Will work with existing saves
  • Can be enabled/disabled without issue
  • This mod should be compatible with mods that don't change the Colonist Bar. That said, it's been designed to be unobtrusive and as such will most likely work with other Colonist Bar mods provided this mod is set to load after the other mod(s)

The following mods have been tested without issue (screenshot includes these mods):

Updates/Fixes

  • Weapon no longer shows when pawn is traveling in a caravan
  • Weapon transparency is correctly set when pawn is not in the current map
  • Updated to show both weapons in the Colonist Bar when using the Duel Weld mod
  • Added two new Mod settings to allow weapon displaying when not drafted and/or traveling
  • Correctly display beer and wood log icons, when they are equipped as weapons
  • Correctly set weapon transparency when message's intersect with the Colonist Bar
  • Added Mod Extension properties via Patch files: weaponBarAngleOffset - control a weapon's draw angle on the Colonist Bar, excludeFromDrawing - controls if a weapon is drawn on the Colonist Bar

Known Issues


Download

License
MIT License

BlackSmokeDMax