Difference between revisions of "Equipment 'Sell Item' Color"
(Created page with "right ==Overview== A number of equipment OXP's include a "Remove" option, purchasable through the F3 Ship Outfitting screen. But, because they...") |
Cholmondely (talk | contribs) (→Tweaks: Tweaked it) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
==Overview== | ==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. | 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== | ||
− | Download [[Media:EquipmentRemoveItemColor.oxz|EquipmentRemoveItemColor.oxz]] v1. | + | Download [[Media:EquipmentRemoveItemColor.oxz|EquipmentRemoveItemColor.oxz]] v1.4 (downloaded {{#downloads:EquipmentRemoveItemColor.oxz}} times). |
==License== | ==License== | ||
Line 11: | Line 13: | ||
==Discussion== | ==Discussion== | ||
− | This OXP is discussed at this forum link: | + | This OXP is discussed at this forum link: https://bb.oolite.space/viewtopic.php?f=4&t=18950 |
==Version History== | ==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 | 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'' <font color="Red">"</font>EQ_MISSING_ITEM1<font color="Red">"</font>) | ||
+ | :2. Make sure there is a comma (''ie'' <font color="Red">,</font>) between each item. ''eg'' "EQ_MANIF_SCANNERX"<font color="Red">,</font>"EQ_MISSING_ITEM1"<font color="Red">,</font>"EQ_MISSING_ITEM2" | ||
+ | :3. Don't accidentally remove the end backet (''ie'' <font color="Red">]</font>). | ||
+ | :4. Make sure your double-quotes are the standard ones (''ie'' <font color="Red">""</font>), not the fancy ones (''eg'' <font color="Red">“”</font>) | ||
+ | |||
+ | For more ideas/discussion see [https://bb.oolite.space/viewtopic.php?p=297293#p297293 here] (2024) | ||
==Quick Facts== | ==Quick Facts== | ||
+ | {{OXPLevel|0}}{{IconOXP|ooVersion="1.86"|oxpCPU="Low"|oxpMEM="Low"|oxpGPU="Low"}} | ||
{{Infobox OXPb| title = EquipmentRemoveItemColor.oxz | {{Infobox OXPb| title = EquipmentRemoveItemColor.oxz | ||
− | |version = 1. | + | |version = 1.4 |
− | |release = | + | |release = 2021-05-29 |
|license = CC BY-NC-SA 4.0 | |license = CC BY-NC-SA 4.0 | ||
|features = Equipment | |features = Equipment | ||
|category = Misc OXPs | |category = Misc OXPs | ||
|author = [[User:phkb|phkb]] | |author = [[User:phkb|phkb]] | ||
− | |feedback = [ | + | |feedback = [https://bb.oolite.space/viewtopic.php?f=4&t=18950 Oolite BB] |
}} | }} | ||
==Gameplay and Balance indicator== | ==Gameplay and Balance indicator== | ||
[[Image:tag-colour-green.png]] | [[Image:tag-colour-green.png]] |
Latest revision as of 14:02, 19 August 2024
Contents
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
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 |