.. vim: noexpandtab fileencoding=utf-8 nomodified wrap textwidth=270 foldmethod=marker foldmarker={{{,}}} foldcolumn=4 ruler showcmd lcs=tab\:|- list tabstop=8 noexpandtab nosmarttab softtabstop=0 shiftwidth=0 :date: 2024.10.30 05:21:45 :_modified: 1970.01.01 00:00:00 :tags: oolite,oxp :authors: Gilhad :summary: G_EquipmentExpensiveItemColor :title: G_EquipmentExpensiveItemColor :nice_title: |logo| %title% |logo| %HEADER% G_EquipmentExpensiveItemColor -------------------------------------------------------------------------------- Equipment Expensive Item Color By Gilhad 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. 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 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. Download: ========= ``__ .. image:: G_EquipmentExpensiveItemColor.png :target: G_EquipmentExpensiveItemColor.png