The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Roboron on August 16, 2021, 04:20:00 PM

Title: More descriptive tooltip when building tunnels in "half-slopes"
Post by: Roboron on August 16, 2021, 04:20:00 PM
Motivation: Recently a user asked on the Steam forums what "suitable ground" and "straight slope" mean when building a tunnel, because the user was already trying to build a tunnel on a "straight slope" but was confused because it still was no "suitable ground".

==> https://steamcommunity.com/app/434520/discussions/0/4263206669450879709/?tscn=1629127619

Of course the problem was that the slope is half-height, and thus it didn't have the necessary height for a tunnel to be built. I guess this a usual newbie error. But it kept me wondering if the game can't do better about telling the user in such a case. This patch replaces the "No suitable ground!" tooltip with "The slope is not high enough!" just in case the terrain is only "half suitable" ;-)

Text is merely a suggestion, replace to your liking.
Title: Re: More descriptive tooltip when building tunnels in "half-slopes"
Post by: Leartin on August 16, 2021, 04:32:23 PM
The slope might be too high in double height paksets, so the BASE text should be "The slope doesn't have the right height". Paksets may use "The slope is not high enough" or "The slope is too high" as their translations, IIRC only one of them can happen in any given pakset.
Title: Re: More descriptive tooltip when building tunnels in "half-slopes"
Post by: Roboron on August 17, 2021, 06:21:53 AM
Well thought Leartin, thank you. I replaced it by your suggestion. 

Quote from: Leartin on August 16, 2021, 04:32:23 PMPaksets may use "The slope is not high enough" or "The slope is too high" as their translations

Interesting. I didn't know paksets could overwrite base translations!
Title: Re: More descriptive tooltip when building tunnels in "half-slopes"
Post by: prissi on August 17, 2021, 01:16:25 PM
In (with slight modifications and different text) in r10016.