public override void Load(IController hud)
        {
            base.Load(hud);

            ShowIllusionistCloneDecorator = false;

            Affixes = new Dictionary <MonsterAffix, DangerousAffixMonsterDefinition>();

            DefaultMapShapePainter     = new CircleShapePainter(Hud);
            DefaultRadiusTransformator = new StandardPingRadiusTransformator(Hud, 500);
            DefaultBackgroundBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, 0);
            DefaultForegroundBrush     = Hud.Render.CreateBrush(255, 255, 0, 0, 0);
            DefaultEliteAffixesFont    = Hud.Render.CreateFont("tahoma", 10f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true);
            DefaultMinionAffixesFont   = Hud.Render.CreateFont("tahoma", 7f, 200, 255, 255, 0, false, false, 128, 0, 0, 0, true);

            ////foreach (MonsterAffix affix in Enum.GetValues(typeof(MonsterAffix))) { DefineDangerousAffix(affix, (a) => a.NameLocalized.Substring(0, 2)); }
        }
Example #2
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),
            }
                                     ));
        }