Ejemplo n.º 1
0
        void Calc_GrowthRow(Spirit spirit, Rectangle bounds, int margin)
        {
            // Calc: Layout (image & growth)
            imgBounds = new Rectangle(bounds.X, bounds.Y, bounds.Height * 3 / 2, bounds.Height);
            var growthBounds = new Rectangle(bounds.X + imgBounds.Width + margin, bounds.Y, bounds.Width - imgBounds.Width - margin, bounds.Height);

            growthLayout = new GrowthLayout(spirit.Growth.Options, growthBounds);
        }
Ejemplo n.º 2
0
 public GrowthPainter(GrowthLayout layout)
 {
     this.layout = layout;
 }