Equipment 'Sell Item' Color

From Elite Wiki
(Redirected from Equipment Remove Item Color)
Remove item color.png

Overview

A number of equipment OXP's include a "Remove" option, purchasable through the F3 Ship Outfitting screen. But, because they are the same color as other purchasable items it can be hard to quickly scan the list to find the item you want to purchase. This OXP simply recolors all items whose description starts with "Remove", "Sell" or "Unmount" to make it clear that these purchases will remove something from your ship. The recoloring will not be done on any item that already has a "display_color" defined in their equipment.plist file.

Note: Version 1.85/86 of Oolite is required.

Download

Download EquipmentRemoveItemColor.oxz v1.4 (downloaded 246 times).

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/

Discussion

This OXP is discussed at this forum link: https://bb.oolite.space/viewtopic.php?f=4&t=18950

Version History

1.4

  • Expanded search criteria to include the item name as well as the item description when looking for remove items.

1.3

  • Added some more inclusions and exclusions.

1.2

  • Added items described with "Undo " to the list of remove items.

1.1

  • Improved logic for catching "Remove" items.

1.0

  • Initial release.

Tweaks

The easiest way to add missing items into the Equipment "Sell Item" Color OXP is to change line 9 of its script file from this:

this._inclusions = ["EQ_MANIF_SCANNERX"];

To this:

this._inclusions = ["EQ_MANIF_SCANNERX","EQ_MISSING_ITEM1","EQ_MISSING_ITEM2"];

Important things to watch:

1. Make sure each equipment item is enclosed in double-quote marks (ie "EQ_MISSING_ITEM1")
2. Make sure there is a comma (ie ,) between each item. eg "EQ_MANIF_SCANNERX","EQ_MISSING_ITEM1","EQ_MISSING_ITEM2"
3. Don't accidentally remove the end backet (ie ]).
4. Make sure your double-quotes are the standard ones (ie ""), not the fancy ones (eg “”)

For more ideas/discussion see here (2024)

Quick Facts

Levelindicator0.png
0-{{{2}}}

Minimum Oolite versionCPU usage lowMemory usage lowGPU usage low

Version Released License Features Category Author(s) Feedback
1.4 2021-05-29 CC BY-NC-SA 4.0 Equipment Misc OXPs‏‎ phkb Oolite BB

Gameplay and Balance indicator

Tag-colour-green.png