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

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
xarick
Transport Coordinator
Transport Coordinator
Posts: 341
Joined: 26 Feb 2015 00:52

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

Post 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.
Last edited by xarick on 06 Mar 2017 11:46, edited 1 time in total.
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 341
Joined: 26 Feb 2015 00:52

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

Post 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 94 times
EDIT: 2nd patch is ready.
display aircraft type v1 r27770.patch
(210.8 KiB) Downloaded 94 times
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 341
Joined: 26 Feb 2015 00:52

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

Post by xarick »

Amends one of the separate patches, by request.
display aircraft type v2 r27770.patch
(98.42 KiB) Downloaded 99 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
Formerly known as Samu
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 43 guests