The International Simutrans Forum

 

Author Topic: More descriptive tooltip when building tunnels in "half-slopes"  (Read 334 times)

0 Members and 1 Guest are viewing this topic.

Offline Roboron

  • Devotee
  • *
  • Posts: 360
    • Las Galácticas Aventuras de Komoyo Diga
  • Languages: ES, EN
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.
« Last Edit: August 18, 2021, 11:33:28 AM by Roboron »

Offline Leartin

  • Oh no, not him again!
  • Devotee
  • *
  • Posts: 1590
  • PAK-DEV P192C
  • Languages: DE, EN
Re: More descriptive tooltip when building tunnels in "half-slopes"
« Reply #1 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.

Offline Roboron

  • Devotee
  • *
  • Posts: 360
    • Las Galácticas Aventuras de Komoyo Diga
  • Languages: ES, EN
Re: More descriptive tooltip when building tunnels in "half-slopes"
« Reply #2 on: August 17, 2021, 06:21:53 AM »
Well thought Leartin, thank you. I replaced it by your suggestion. 

Paksets 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!

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10905
  • Languages: De,EN,JP
Re: More descriptive tooltip when building tunnels in "half-slopes"
« Reply #3 on: August 17, 2021, 01:16:25 PM »
In (with slight modifications and different text) in r10016.