Difference between revisions of "Equipment Expensive Item Color"

From Elite Wiki
(Image)
m
 
(5 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
=== Attribution and Acknowledgments ===
 
=== 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.
 
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.
 
Special thanks to Wildeblood for programming assistance.
  
Line 20: Line 21:
  
 
=== Discussion ===
 
=== Discussion ===
This OXP is discussed at this forum link: https://bb.oolite.space/viewtopic.php?p=297992#p297992
+
This OXP is discussed at this forum link: https://bb.oolite.space/viewtopic.php?t=21756
 +
 
 +
It originated here: https://bb.oolite.space/viewtopic.php?p=297992#p297992
  
 
=== Use with ===
 
=== Use with ===
Line 29: Line 32:
  
 
=== Oolite version ===
 
=== Oolite version ===
So far tested only with Oolite 1.90, but may work with much more versions too
+
So far tested only with Oolite 1.90 and 1.91, but may work with much more versions too
  
  
 
=== Download ===
 
=== Download ===
Download [[Media:EquipmentExpensiveItemColor.oxz|EquipmentExpensiveItemColor.oxz]] v1.4 (downloaded {{#downloads:EquipmentExpensiveItemColor.oxz}} times).
+
Download [[Media:oolite.oxp.Gilhad.EquipmentExpensiveItemColor.oxz|oolite.oxp.Gilhad.EquipmentExpensiveItemColor.oxz]] (downloaded {{#downloads:oolite.oxp.Gilhad.EquipmentExpensiveItemColor.oxz}} times).
 +
 
 +
([[File:Oolite.oxp.Gilhad.EquipmentExpensiveItemColor.oxz]])
  
 
=== Gameplay and Balance indicator ===
 
=== Gameplay and Balance indicator ===
Line 39: Line 44:
  
 
=== Version History ===
 
=== 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.4 - 2024.12.18 17:07:04 - improving compatibility (names etc.)
 
* 1.3 - 2024.11.02 20:29:55 - cosmetical changes (comments ...)
 
* 1.3 - 2024.11.02 20:29:55 - cosmetical changes (comments ...)

Latest revision as of 01:29, 20 December 2024

EquipmentExpensiveItemColor.png

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?t=21756

It originated here: 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 and 1.91, 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

Tag-colour-green.png 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.