Skip to content

Commit

Permalink
fix: blue line, only display eye circle when train has eyes
Browse files Browse the repository at this point in the history
  • Loading branch information
rudiejd committed Jul 10, 2024
1 parent e086ad1 commit 141d498
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion server/chalicelib/fleet.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
blue_has_eyes = lambda _: False
orange_has_eyes = lambda _: False
silver_has_eyes = lambda _: False
blue_has_eyes = lambda _: True
blue_has_eyes = lambda _: False


def get_route_test_function_dict(route_ids, test_fn):
Expand Down
24 changes: 13 additions & 11 deletions src/components/TrainDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,20 @@ export const TrainDisplay = ({
textAnchor="middle"
/>
<polygon points={drawEquilateralTriangle(2)} fill={'white'} />
<circle
cx={2}
cy={3}
r={2}
fill={'black'}
stroke={isTracked ? 'white' : undefined}
textAnchor="middle"
/>
{hasGooglyEyes ? (
<text fontSize={3} x={1} y={-1} transform="rotate(90)">
👀
</text>
<>
<circle
cx={2}
cy={3}
r={2}
fill={'black'}
stroke={isTracked ? 'white' : undefined}
textAnchor="middle"
/>
<text fontSize={3} x={1} y={-1} transform="rotate(90)">
👀
</text>
</>
) : (
<></>
)}
Expand Down

0 comments on commit 141d498

Please sign in to comment.