prayer: don't return dimension for dynamic overlays

The returned dimension is only used for layoutable or movable overlays
This commit is contained in:
Adam
2022-05-19 21:40:57 -04:00
parent bea1c6cb83
commit 9ceabc5e47
3 changed files with 4 additions and 6 deletions

View File

@@ -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()

View File

@@ -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;
}
}

View File

@@ -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;
}
}