Example #1
0
        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);

            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, 250, 10, 10, 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, 250, 10, 10, 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, 0, 0, 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, 0, 0, 200, false, false, 128, 0, 0, 0, true),
            }
                                     ));

            DecoratorByClass.Add(HeroClass.Monk, new WorldDecoratorCollection(
                                     new MapLabelDecorator(Hud)
            {
                LabelFont = Hud.Render.CreateFont("tahoma", 6f, 245, 120, 0, 200, 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, 120, 0, 200, 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),
            }
                                     ));
        }