prayer: don't return dimension for dynamic overlays
The returned dimension is only used for layoutable or movable overlays
This commit is contained in:
@@ -116,7 +116,7 @@ class PrayerBarOverlay extends Overlay
|
||||
graphics.fillRect(barX + xOffset, barY + HD_PRAYER_BAR_PADDING, 1, barHeight - HD_PRAYER_BAR_PADDING * 2);
|
||||
}
|
||||
|
||||
return new Dimension(barWidth, barHeight);
|
||||
return null;
|
||||
}
|
||||
|
||||
// Draw bar
|
||||
@@ -145,7 +145,7 @@ class PrayerBarOverlay extends Overlay
|
||||
graphics.fillRect(barX + xOffset, barY, 1, barHeight);
|
||||
}
|
||||
|
||||
return new Dimension(barWidth, barHeight);
|
||||
return null;
|
||||
}
|
||||
|
||||
void onTick()
|
||||
|
||||
@@ -151,8 +151,7 @@ class PrayerDoseOverlay extends Overlay
|
||||
graphics.setColor(ColorUtil.colorLerp(START_COLOR, END_COLOR, Math.sin(t)));
|
||||
graphics.setStroke(new BasicStroke(2));
|
||||
graphics.drawOval(orbInnerX, orbInnerY, orbInnerSize, orbInnerSize);
|
||||
|
||||
return new Dimension((int) bounds.getWidth(), (int) bounds.getHeight());
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -91,7 +91,6 @@ class PrayerFlickOverlay extends Overlay
|
||||
|
||||
graphics.setColor(Color.cyan);
|
||||
graphics.fillRect(orbInnerX + xOffset, orbInnerY + yOffset, 1, indicatorHeight);
|
||||
|
||||
return new Dimension((int) bounds.getWidth(), (int) bounds.getHeight());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user