Orbital label clicks, the Sun's "Underneath", zh-Hant 天後側

- The Cockpit's orbital view counts a site's own label as its own, not
  another layer's card, so clicking it focuses the site again; the test
  now sets the overlay hit test the way the world overlay does.
- The ISS Sun position under the station is "Underneath", with its own
  translations; "Below" stays the ground under a satellite.
- OpenCC turns 问天后侧 into 問天后側 ("empress"); a correction makes it 後.
- The changelog says a label takes the click from a vehicle drawn under it.
This commit is contained in:
Denis Groshev committed 2026-11-19 17:07:49 +01:00
1 parent 0620d01140
commit dad59fabbf
18 files changed
+40 -9

No files matched your search

+3 -2
View File
@@ -300,8 +300,9 @@ export function routeSceneClick() {
}
return input.onClick((event) => {
// Another layer's card or label painted on top takes the click: the site
// under it does not focus, and the click does not end a held focus.
if (isUnderOtherCard(event)) return;
// under it does not focus, and the click does not end a held focus. A
// site's own label is not another layer's: it focuses that site.
if (isUnderOtherCard(event, [SITES_LAYER_ID])) return;
this.onOrbitalClick(event?.position);
});
}