This mod adds a dedicated wing slot to the armor and accessories page of the inventory (next to the defense icon).
- Left-click a set of wings or a dye, then place it in the slot.
- Right-click to equip wings.
- Shift-right-click to equip wings in the vanity slot.
- Right-click vanity wings to swap with equipped wings.
- Left-click the eye icon on the equip slot to toggle visibility.
Unequip your wings from the dedicated slot before updating or disabling this mod!
- Yoraiz0r's Spell eye glow doesn't work
If your mod needs to override right-click functionality:
Mod wingSlot = ModLoader.GetMod("WingSlot");
if(wingSlot != null) {
wingSlot.Call(/* "add" or "remove" */, /* func<bool> returns true to cancel/false to continue normal execution */);
}
These functions are checked during GlobalWingItem.CanRightClick()
. If any of them returns true, CanRightClick()
cancels equipping a pair of wings, so please ensure that your method is relatively bug-free.
- jopojelly for code that draws a slot to the left of the dyes; for fixing multiplayer issues and various other bugs
- Boffin for TerraUI
- Zsashas for bug report (custom dye incompatibility)
- VVV101 for released updated version
- vizthex for suggesting slot location option
- jofairden for suggesting mod compatibility slot overrides