Skip to content

Commit

Permalink
fix(ui): Make system stored outfit indicator closer to previous visua…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koranir authored Oct 22, 2024
1 parent 47da50e commit bb0d924
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/MapPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1278,11 +1278,14 @@ void MapPanel::DrawEscorts()
// Stored outfits are drawn/indicated by 8 short rays out of the system center.
for(int i = 0; i < 8; ++i)
{
static constexpr float WIDTH = 1.6f;

// Starting at 7.5 degrees to intentionally mis-align with mission pointers.
Angle angle = Angle(7.5f + 45.f * i);
Point from = pos + angle.Unit() * OUTER;
Point to = from + angle.Unit() * 4.f;
LineShader::Draw(from, to, 2.f, active);
// Account for how rounded caps extend out by an additional WIDTH.
Point from = pos + angle.Unit() * (OUTER + WIDTH);
Point to = from + angle.Unit() * (4.f - WIDTH);
LineShader::Draw(from, to, WIDTH, active);
}
}
}
Expand Down

0 comments on commit bb0d924

Please sign in to comment.