Esempio n. 1
0
        public void DrawTopBar1(Rectangle rect)
        {
            GenericInfoDrawer energyDrawer = new GenericInfoDrawer(Brushes.Yellow, Pens.Black);

            energyDrawer.DrawValueIconBox1(_graphics, rect.XDivision(2), "1", _icons["lightning"]);
            _graphics.DrawString("This is a test", _fontContent, _brushes.Content, rect.XDivision(10, 2));
        }
Esempio n. 2
0
        public void DrawBottomBar1(Rectangle rect)
        {
            _graphics.FillRectangle(Brushes.AliceBlue, rect);

            // attack and gems
            "1 /sword + 1 /sword".DrawBrickLay(_graphics, rect.XDivision(6), _fontContent, _brushes.Content, _stringResolver);

            // icons
            "/sword /sword".DrawBrickLay(_graphics, rect.XDivision(3, 6), _fontContent, _brushes.Content, _stringResolver);

            // Defence
            GenericInfoDrawer draw = new GenericInfoDrawer();

            draw.DrawValueIconBox1(_graphics, rect.XDivision(3, 9), "3", _icons["lightning"]);
        }