Ejemplo n.º 1
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            var grounLabelBackgroundBrush = Hud.Render.CreateBrush(120, 0, 0, 0, 0);

            ZDPSDecorator = new WorldDecoratorCollection(
                new MapLabelDecorator2(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 255, 255, 255, false, false, 128, 0, 0, 0, true),
                UpUp      = true,
            });

            DecoratorByClass.Add(HeroClass.Barbarian, new WorldDecoratorCollection(
                                     new MapLabelDecorator2(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 237, 20, 20, false, false, 128, 0, 0, 0, true),
                Down      = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 237, 20, 20, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 237, 20, 20, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Crusader, new WorldDecoratorCollection(
                                     new MapLabelDecorator2(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 255, 204, 0, false, false, 128, 0, 0, 0, true),
                Down      = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 204, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 255, 204, 0, false, false, 128, 0, 0, 0, false),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.DemonHunter, new WorldDecoratorCollection(
                                     new MapLabelDecorator2(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 0, 168, 255, false, false, 128, 0, 0, 0, true),
                Down      = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 168, 255, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 0, 168, 255, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Monk, new WorldDecoratorCollection(
                                     new MapLabelDecorator2(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 255, 132, 0, false, false, 128, 0, 0, 0, true),
                Down      = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 132, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 255, 132, 0, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Necromancer, new WorldDecoratorCollection(
                                     new MapLabelDecorator2(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 215, 201, 164, false, false, 128, 0, 0, 0, true),
                Down      = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 215, 201, 164, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 215, 201, 164, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.WitchDoctor, new WorldDecoratorCollection(
                                     new MapLabelDecorator2(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 43, 231, 6, false, false, 128, 0, 0, 0, true),
                Down      = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 43, 231, 6, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 43, 231, 6, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Wizard, new WorldDecoratorCollection(
                                     new MapLabelDecorator2(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 182, 26, 255, false, false, 128, 0, 0, 0, true),
                Down      = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 182, 26, 255, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 182, 26, 255, false, false, 128, 0, 0, 0, true),
            }
                                     ));
        }
Ejemplo n.º 2
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            var grounLabelBackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0);

            DecoratorByClass.Add(HeroClass.Barbarian, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 200, 255, 60, 60, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(200, 250, 10, 10, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 200, 255, 60, 60, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Crusader, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 240, 0, 200, 250, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(240, 0, 200, 250, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 240, 0, 200, 250, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.DemonHunter, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 60, 60, 200, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 200, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 60, 60, 200, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Monk, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 245, 170, 0, 255, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(245, 120, 0, 200, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 245, 170, 0, 255, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Necromancer, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 175, 238, 238, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 175, 238, 238, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 175, 238, 238, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.WitchDoctor, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 155, 0, 155, 125, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(155, 0, 155, 125, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 155, 0, 155, 125, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Wizard, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 255, 250, 50, 180, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = grounLabelBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 250, 50, 180, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6f, 255, 250, 50, 180, false, false, 128, 0, 0, 0, true),
            }
                                     ));
        }
Ejemplo n.º 3
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            var pingTransformator = new StandardPingRadiusTransformator(Hud, 333);
            var shapePainter      = new CircleShapePainter(Hud);

            DecoratorByClass.Add(HeroClass.Barbarian, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 7f, 250, 255, 128, 64, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 255, 128, 64, 0),
                BorderBrush     = Hud.Render.CreateBrush(250, 0, 0, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8f, 255, 0, 0, 0, true, false, 128, 255, 255, 255, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Crusader, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 7f, 240, 240, 240, 240, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 240, 240, 240, 0),
                BorderBrush     = Hud.Render.CreateBrush(240, 0, 0, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8f, 255, 0, 0, 0, true, false, 128, 255, 255, 255, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.DemonHunter, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 0, 200, 255, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 255, 255, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8f, 255, 0, 0, 0, true, false, 128, 255, 255, 255, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Monk, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 7f, 245, 255, 255, 0, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 255, 255, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(240, 0, 0, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8f, 255, 0, 0, 0, true, false, 128, 255, 255, 255, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.WitchDoctor, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 0, 255, 0, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 255, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(250, 0, 0, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8f, 255, 0, 0, 0, true, false, 128, 255, 255, 255, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Wizard, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 7f, 255, 255, 0, 255, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 255, 0, 255, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8f, 255, 0, 0, 0, true, false, 128, 255, 255, 255, true),
            }
                                     ));
            DecoratorByClass.Add(HeroClass.Necromancer, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 7f, 230, 0, 190, 190, false, false, 128, 0, 0, 0, true),
                Up        = true,
            },
                                     new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 190, 190, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8f, 255, 0, 0, 0, true, false, 128, 255, 255, 255, true),
            }
                                     ));
        }