mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Put the arrows into the minimap. Fixed the issue with curved section of port marks.
#fix #implement
This commit is contained in:
@@ -30,7 +30,7 @@ public class MiniMap extends MapPreview {
|
|||||||
this.boats = boats;
|
this.boats = boats;
|
||||||
this.player = player;
|
this.player = player;
|
||||||
setBoats(boats);
|
setBoats(boats);
|
||||||
// player.addMarkRoundingListener(this::updateMarkArrows);
|
player.addMarkRoundingListener(this::updateMarkArrows);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBoats(List<ClientYacht> yachts) {
|
public void setBoats(List<ClientYacht> yachts) {
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ public class MarkArrowFactory {
|
|||||||
Arc roundSection = new Arc(
|
Arc roundSection = new Arc(
|
||||||
0, 0, MARK_ARROW_SEPARATION, MARK_ARROW_SEPARATION,
|
0, 0, MARK_ARROW_SEPARATION, MARK_ARROW_SEPARATION,
|
||||||
//Where to start drawing arc from
|
//Where to start drawing arc from
|
||||||
(roundingSide == RoundingSide.PORT ? 0 : angleOfEntry),
|
(roundingSide == RoundingSide.PORT ? 180 + angleOfEntry : angleOfEntry),
|
||||||
//Which way to go around the mark. (clockwise vs anticlockwise)
|
//Which way to go around the mark. (clockwise vs anticlockwise)
|
||||||
roundingSide == RoundingSide.PORT ? Math.abs(angleOfExit - angleOfEntry) : -Math.abs(angleOfEntry - angleOfExit)
|
roundingSide == RoundingSide.PORT ? Math.abs(angleOfExit - angleOfEntry) : -Math.abs(angleOfEntry - angleOfExit)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user