Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 12 additions & 2 deletions VisualizerWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,22 @@ private void DrawTileMarker(Point16 tile, ColoredMark mark)
Vector2 loc = new Vector2(
(tile.X * 16 - Main.screenPosition.X + 8) * Main.GameViewMatrix.Zoom.X + 0.5f * Main.screenWidth * (1 - Main.GameViewMatrix.Zoom.X),
(tile.Y * 16 - Main.screenPosition.Y + 12) * Main.GameViewMatrix.Zoom.Y + 0.5f * Main.screenHeight * (1 - Main.GameViewMatrix.Zoom.Y)
) - text / 2;
) - text * Main.GameViewMatrix.Zoom.X / 2;

if (Main.LocalPlayer.gravDir == -1)
loc.Y = Main.screenHeight - loc.Y - 16;

Main.spriteBatch.DrawString(FontAssets.MouseText.Value, mark.mark, loc, mark.color);
Main.spriteBatch.DrawString(
FontAssets.MouseText.Value,
mark.mark,
loc,
mark.color,
0.0f,
Vector2.Zero,
Main.GameViewMatrix.Zoom,
SpriteEffects.None,
0.0f
);
}

private void DrawTileBorder(Point16 tile, Color color, int width = 1, int height = 1)
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = DRKV
version = 2.1
version = 2.2
displayName = MechScope
side = Client
includePDB = false
Expand Down