public static void DrawBoxOnCursor(SpriteBatch spriteBatch) { if (ListeningForInput) { ModUtils.DrawBorderedRect(spriteBatch, Color.Blue, CheckCoordinates, new Vector2(1, 1), 2); } }
public static void DrawRegions(SpriteBatch spriteBatch) { for (int i = 0; i < HEROsModNetwork.Network.Regions.Count; i++) { HEROsModNetwork.Region region = HEROsModNetwork.Network.Regions[i]; ModUtils.DrawBorderedRect(spriteBatch, region.Color, region.Position, region.Size, 3, region.Name); } }
public static void Draw(SpriteBatch spriteBatch) { if (Visible) { ModUtils.DrawBorderedRect(spriteBatch, Color.Blue, Position, Size, 3, Width + "x" + Height); //Vector2 pos = ModUtils.GetWorldCoordsFromTileCoords(Position) - Main.screenPosition; //spriteBatch.Draw(ModUtils.DummyTexture, new Rectangle((int)pos.X, (int)pos.Y, Width * 16, Height * 16), Color.Blue * .5f); } }
public static void DrawBoxOnCursor(SpriteBatch spriteBatch) { if (ListeningForInput) { Vector2 pos = ModUtils.CursorWorldCoords; pos.X = (int)pos.X / 16 * 16; pos.Y = (int)pos.Y / 16 * 16; ModUtils.DrawBorderedRect(spriteBatch, Color.Blue, ModUtils.CursorTileCoords, new Vector2(1, 1), 2); } }