Cobra MK III
Můj nový počítač
G_EquipmentExpensiveItemColor
2024.10.30 05:21:45 oolite oxp Gilhad

1   G_EquipmentExpensiveItemColor

Equipment Expensive Item Color

By Gilhad

1.1   Overview

This OXP highlights expensive equipment in gray on the F3 Ship Outfitting screen. An item is considered expensive if its price exceeds your current credits. This extension recolors items that are too costly based on the player's current balance, allowing players to see at a glance which items they can't afford. However, if an item already has a "display_color" defined in its equipment.plist file, this OXP will not override it. When your credits increase, items previously marked in grey will automatically revert to yellow.

1.2   License

This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/

1.3   Attribution and Acknowledgments

This OXP was developed as an extension to oolite.oxp.phkb.EquipmentRemoveItemColor.oxz by phkb and is intended for potential integration. Its code is partially based on that work. Special thanks to Wildeblood for programming assistance.

1.4   Compatibility

EquipmentRemoveItemColor does recoloring at startup, this OXP does it later in game, so already recolored items are not affected.

1.6   Version History

  • 1.2 - 2024.10.30 05:13:29 - fix F5 page colors
  • 1.1 - 2024.10.29 22:33:14 - fix old values on first F3 page
  • 1.0 - 2024.10.29 19:34:25 - Initial release.