The International Simutrans Forum

 

Author Topic: [r9129] too high offset of line name tooltips  (Read 525 times)

0 Members and 1 Guest are viewing this topic.

Offline THLeaderH

  • Coder/patcher
  • Devotee
  • *
  • Posts: 378
  • Languages: JP,EN
[r9129] too high offset of line name tooltips
« on: June 15, 2020, 12:11:45 PM »
Line name tooltip is a great feature. However, the tooltips are placed at too high position when the convoy is on an elevated way.

The attached images describes the position difference of line name tooltips between in the case that the convoy is on the ground level or on an elevated way.

Offline Ranran

  • Devotee
  • *
  • Posts: 1163
  • Languages: ja
Re: [r9129] too high offset of line name tooltips
« Reply #1 on: June 15, 2020, 12:47:44 PM »
This is not a issue of the line name tooltip. The usual tooltip and  the station name have the same issue. And the same applies to extended.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4739
  • Languages: EN, DE, AT
Re: [r9129] too high offset of line name tooltips
« Reply #2 on: June 15, 2020, 01:21:24 PM »
Should be fixed in r9139.

Offline Vladki

  • Devotee
  • *
  • Posts: 3409
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: [r9129] too high offset of line name tooltips
« Reply #3 on: June 15, 2020, 06:04:27 PM »
There is also opposite issue for stations and vehicles underground

EDIT: the underground issue is fixed too. Thanks. And the patch works on extended too
« Last Edit: June 15, 2020, 11:34:27 PM by Vladki »

Offline Ranran

  • Devotee
  • *
  • Posts: 1163
  • Languages: ja
Re: [r9129] too high offset of line name tooltips
« Reply #4 on: June 16, 2020, 01:57:50 PM »
I confirmed r9139. The airplane's tooltip seems to see a height mismatch on the slope.
In standard, it is difficult to track convoys tooltip because the tooltip is not displayed unless the mouse is over, but there is no continuity in that case.
On the slope, the tooltip will rise above the plane's climb angle, then move down sharply on the next tile.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4739
  • Languages: EN, DE, AT
Re: [r9129] too high offset of line name tooltips
« Reply #5 on: June 17, 2020, 06:24:32 AM »
The tooltip is following the vehicle (and also its position on the tile).

Offline Ranran

  • Devotee
  • *
  • Posts: 1163
  • Languages: ja
Re: [r9129] too high offset of line name tooltips
« Reply #6 on: June 17, 2020, 08:59:33 AM »
The tooltip is following the vehicle (and also its position on the tile).
But for airplanes, the climb angle and the tooltip climb angle don't seem to match. The slope causes the tooltip to rise independently and move away from the airplane.
Is it related to the airplane colliding with the slope?


If anything, the airplane seems to be in the wrong position, but the tooltip movement is also not continuous.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4739
  • Languages: EN, DE, AT
Re: [r9129] too high offset of line name tooltips
« Reply #7 on: June 17, 2020, 01:33:26 PM »
I think for airplanes, the tooltip is shown as if the plane would be on the ground.

Offline Freahk

  • Devotee
  • *
  • Posts: 1257
  • Languages: DE, EN
Re: [r9129] too high offset of line name tooltips
« Reply #8 on: June 17, 2020, 02:16:51 PM »
Beware that airplane height logic is different in extended (and especially takeoffs are currently bugged)
Thus, the label position _might_ also be an extended specific issue.
In any case, extended does not show airplane labels on ground level, might be different in standard.

Offline Ranran

  • Devotee
  • *
  • Posts: 1163
  • Languages: ja
Re: [r9129] too high offset of line name tooltips
« Reply #9 on: June 17, 2020, 03:21:38 PM »
Quote
Thus, the label position _might_ also be an extended specific issue.
At least the image above is a standard image. There is a difference in the standard that the tooltip is not displayed unless the mouse is over. Therefore, continuity is difficult to understand.
However, it can be seen that the height of the tooltip at the end of the previous tile and the height of the tooltip at the start of the next tile are clearly different and not continuous.

Quote
Thus, the label position _might_ also be an extended specific issue.
From the above, we have determined that this is a standard bug. The tile is a double slope, but the airplane behaves like a half slope. But the tooltip behaves like a double slope. And the contradiction begins again by adjusting the position at the start of the next tile.


Quote
In any case, extended does not show airplane labels on ground level, might be different in standard.
Is that so? I can see it properly.

https://i.imgur.com/NV5y7eh.gif

This strange behavior looks the same as standard.

Offline Freahk

  • Devotee
  • *
  • Posts: 1257
  • Languages: DE, EN
Re: [r9129] too high offset of line name tooltips
« Reply #10 on: June 17, 2020, 03:24:44 PM »
The label is definitely not on ground level, which would be just above the shadow, but instead on airplanes actual height with some bug in calculation.

It seems quite strange in both cases though.

Offline Ranran

  • Devotee
  • *
  • Posts: 1163
  • Languages: ja
Re: [r9129] too high offset of line name tooltips
« Reply #11 on: June 17, 2020, 03:38:41 PM »
The label is definitely not on ground level, which would be just above the shadow, but instead on airplanes actual height with some bug in calculation.

It seems quite strange in both cases though.
I may have understood what you mean. Does the airplane mean that the tooltip is higher than the bus?

It may be because the image size is not 128px. It's as if the size of the depot is strange. Is this breaking the display position calculation too?