Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LoveOfCooking/Objects/Regeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ protected void Draw(object sender, RenderingHudEventArgs e)
Rectangle viewport = Game1.graphics.GraphicsDevice.Viewport.TitleSafeArea;

const int heightFromBottom = 4 * Game1.pixelZoom;
const int otherBarWidth = 12 * Game1.pixelZoom;
const int otherBarWidth = 2 * Game1.pixelZoom;
const int otherBarSpacing = 1 * Game1.pixelZoom;

Point barIconOffset = new Point(x: -1, y: 1);
Expand All @@ -349,7 +349,7 @@ protected void Draw(object sender, RenderingHudEventArgs e)
int sourceWidth = AssetManager.RegenBarArea.Width;
int sourceHeight = AssetManager.RegenBarArea.Height;
Vector2 regenBarOrigin = new Vector2(
x: viewport.Right - (sourceWidth * Game1.pixelZoom / 2) - (otherBarWidth * (1 + otherBarCount)),
x: viewport.Right - ((sourceWidth * (1 + otherBarCount)) * Game1.pixelZoom) - (otherBarWidth * (1 + otherBarCount)),
y: viewport.Bottom - heightFromBottom - (sourceHeight * Game1.pixelZoom));

// Regen bar sprites
Expand Down