Page 1 of 1

aircraft type and sort by aircraft type in purchase aircraft window patch

Posted: 01 Mar 2017 12:36
by xarick
This patch adds information about aircraft regarding their type, when purchasing or auto-replacing an aircraft.
You may also sort by it, on the same window. Since v3, this information is also displayed on the newspaper, on the engine preview window and on the aircraft details window.



Caveat:
There may be issues with NewGRFs that also display this kind of information, you may find it repeating in a similar fashion.

Download latest version (v4) here - viewtopic.php?f=33&t=75978&p=1183604#p1183604
v4
- renames some String IDs.
- reuses already translated parts of some strings from all languages and combines them with the missing "aircraft type" in english.

Screenshots valid for v4, v3:
Image

Image

Screenshot valid for v2, v1:
Image

Screenshot valid for v1:
Image
[+] Spoiler
older versions (v3, v2, v1): v3
- added Aircraft Type information on the newspaper, on the engine preview window and on the aircraft details window.

Self-note:
These strings are no longer being used by OpenTTD when using v3 (as far as I see it):
- STR_ENGINE_PREVIEW_COST_MAX_SPEED_CAPACITY_CAPACITY_RUNCOST
- STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAPACITY_CAPACITY_RUNCOST
- STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAPACITY_RUNCOST
v2
- lower case fix on the string "Aircraft type" for the sort by dropdown menu.

Re: aircraft type and sort by aircraft type in purchase aircraft window patch

Posted: 05 Mar 2017 14:57
by xarick
v4
- renames some String IDs.
- reuses already translated parts of some strings from all languages and combines them with the missing "aircraft type" in english.

There was a request to split v4 into two patches. First patch is ready.
sort by aircraft type v1 r27769.patch
(2.06 KiB) Downloaded 117 times
EDIT: 2nd patch is ready.
display aircraft type v1 r27770.patch
(210.8 KiB) Downloaded 129 times

Re: aircraft type and sort by aircraft type in purchase aircraft window patch

Posted: 06 Mar 2017 22:14
by xarick
Amends one of the separate patches, by request.
display aircraft type v2 r27770.patch
(98.42 KiB) Downloaded 130 times
v2
- Unlike v1, v2 doesn't re-use already translated parts of some strings and doesn't combine them
- v2 deletes 3 unused strings from all language files, if found:

STR_ENGINE_PREVIEW_COST_MAX_SPEED_CAPACITY_CAPACITY_RUNCOST
STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAPACITY_CAPACITY_RUNCOST
STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAPACITY_RUNCOST