Equipment Expensive Item Color
Contents
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.
It is best use together with Equipment 'Sell Item' Color that show entries for removing equipment in red.
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/
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.
Compatibility
EquipmentRemoveItemColor does recoloring at startup, this OXP does it later in game, so already recolored items are not affected.
Discussion
This OXP is discussed at this forum link: https://bb.oolite.space/viewtopic.php?p=297992#p297992
Use with
Equipment 'Sell Item' Color - show entries for removing equipment in red
Use from other modules
Call this.$updateColors() to get expensive items grayed, call this.$revertColors() to revert it back.
Oolite version
So far tested only with Oolite 1.90, but may work with much more versions too
Download
Download oolite.oxp.Gilhad.EquipmentExpensiveItemColor.oxz (downloaded 0 times).
(File:Oolite.oxp.Gilhad.EquipmentExpensiveItemColor.oxz)
Gameplay and Balance indicator
Does not affect gameplay at all.
Version History
- 1.5 - 2024.12.19 00:28:06 - Improved readme/wiki, hope to publish
- 1.4 - 2024.12.18 17:07:04 - improving compatibility (names etc.)
- 1.3 - 2024.11.02 20:29:55 - cosmetical changes (comments ...)
- 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.