Fix sample mount/unmount with user panel

This commit is contained in:
gac-S_Changer
2023-04-28 10:30:15 +02:00
parent 53a56b09ca
commit b2d62c4a28
2 changed files with 489 additions and 477 deletions

View File

@@ -85,6 +85,9 @@ public class PuckGraphics {
}
public boolean isHighlithted() {
if (MainPanel.BASE_PLATE_LAYOUT == MainPanel.BasePlateLayout.rt){
return puck.isSelected();
}
return puck.isSelected() || puck.isSegmentSelected();
}
@@ -229,7 +232,14 @@ public class PuckGraphics {
}
int getBorderWidth(boolean drawBackground) {
return drawBackground ? puck.isSegmentSelected() ? 2 : 1 : puck.isSegmentSelected() ? 2 : 1;
int selectedWidth = 2;
int normalWidth = 1;
if (MainPanel.BASE_PLATE_LAYOUT == MainPanel.BasePlateLayout.rt){
selectedWidth = 3;
}
return drawBackground ?
puck.isSegmentSelected() ? selectedWidth : normalWidth :
puck.isSegmentSelected() ? selectedWidth : normalWidth;
}
int getReferenceDrawSize() {