public override void Draw(CustomSpriteBatch g) { //If the action menu is open. if (BattlePreview != null) { BattlePreview.DrawDisplayUnit(g); } }
public override void Draw(CustomSpriteBatch g) { for (int X = 0; X < CurrentAttack.MAPAttributes.ListChoice.Count; X++) { for (int Y = 0; Y < CurrentAttack.MAPAttributes.ListChoice[X].Count; Y++) { if (CurrentAttack.MAPAttributes.ListChoice[X][Y]) { g.Draw(GameScreen.sprPixel, new Rectangle((int)(Map.CursorPosition.X + X - Map.CameraPosition.X - CurrentAttack.MAPAttributes.Width) * Map.TileSize.X, (int)(Map.CursorPosition.Y + Y - Map.CameraPosition.Y - CurrentAttack.MAPAttributes.Height) * Map.TileSize.Y, Map.TileSize.X, Map.TileSize.Y), Color.DarkRed); } } } BattlePreview.DrawDisplayUnit(g); }
public override void Draw(CustomSpriteBatch g) { BattlePreview.DrawDisplayUnit(g); }