mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 02:02:21 +00:00
fix(selection): selecting or tracking a contact never recolours it
A tracked aircraft's icon and 3D model keep the colours they have untracked in Flights and Military Flights (no cyan, no lighter amber); only the icon's alpha changes (stale fade, clear while its model draws). A selected vessel or aid keeps its type colour instead of white, and a tracked satellite's dot keeps its class colour instead of yellow. An emergency stays red while tracked.
This commit is contained in:
1 parent
2f0c01eaa7
commit
f49352d228
23 files changed
+192
-108
No files matched your search
@@ -1321,10 +1321,11 @@ for (const fixture of LAYERS) {
|
||||
fleetItem.minPixelSize,
|
||||
'the same minimum pixel size',
|
||||
);
|
||||
assert.notDeepEqual(
|
||||
trackedItem.tint,
|
||||
fleetItem.tint,
|
||||
'only the colour differs',
|
||||
assert.deepEqual(trackedItem.tint, fleetItem.tint, 'the same colour');
|
||||
assert.deepEqual(
|
||||
trackedItem.colorBlend,
|
||||
fleetItem.colorBlend,
|
||||
'the same colour blend',
|
||||
);
|
||||
} finally {
|
||||
fixture.layer.setParams({ models3d: false });
|
||||
@@ -1355,6 +1356,7 @@ for (const fixture of LAYERS) {
|
||||
fleet.scaleByDistance,
|
||||
'the same scale by distance',
|
||||
);
|
||||
assert.deepEqual(tracked.color, fleet.color, 'the same colour');
|
||||
// A landing changes the fleet icon's scale, and the tracked one's with it.
|
||||
fixture.seed({ viewer, onGround: true });
|
||||
const grounded = fixture.trackedIconLook(ICAO);
|
||||
|
||||
Reference in new issue
Block a user