private static void DrawUnits(SpriteBatch spriteBatch, StackViews stackViews, StackView.StackView selectedStackView, PointI frmUnitsTopLeft, PointI frmUnitsBottomRight, EnumerableDictionary <IControl> actionButtons) { if (selectedStackView == null) { return; } var topLeftPosition = frmUnitsTopLeft.ToVector2() + new Vector2(10.0f, 10.0f); DrawUnitBadges(spriteBatch, stackViews, selectedStackView, topLeftPosition); DrawMovementTypeImages(spriteBatch, frmUnitsBottomRight, selectedStackView.GetMovementTypeImages()); DrawActionButtons(spriteBatch, selectedStackView.Actions, actionButtons); }