Пример #1
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            Clusters = new Dictionary <IMonster, float>();

            Range            = 20f;
            ProgressMin      = 1d;
            IncludeOffScreen = true;
            ClustersMax      = 99;

            Decorator = new WorldDecoratorCollection(GroundDecorator = new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(155, 200, 200, 200, 1),
                Radius = Range
            },
                                                     MapDecorator = new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(50, 255, 0, 0, 0),
                ShadowBrush  = Hud.Render.CreateBrush(128, 0, 0, 0, 1),
                Radius       = Range,
                ShapePainter = new CircleShapePainter(Hud),
            },
                                                     LabelDecorator = new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(175, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 12, 255, 255, 255, 255, true, false, true)
            });
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

            Decorator = new GroundLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true),
            };
        }
Пример #3
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            Decorator = new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(175, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 9, 255, 255, 255, 255, true, false, true)
            };
        }
Пример #4
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            GemNameRegex  = new Regex(@"x1_(\w+)_(\d+)", RegexOptions.Compiled); // x1_Amethyst_01
            MinGemQuality = 6;                                                   //Marquise
            ShowLabel     = true;

            GemDecorator = new WorldDecoratorCollection(GroundDecorator = new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(200, 255, 255, 255, -2),
                Radius = 1f
            }, MapDecorator = new MapTextureDecorator(Hud)
            {
                Radius = 0.33f
            }, LabelDecorator = new GroundLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 10, 255, 255, 255, 255, true, false, true)
            });
        }
Пример #5
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            MarkerDecorator = new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 255, 0, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(192, 255, 255, 255, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 10f, 255, 255, 255, 255, true, false, false),
            };

            CompletedFont        = Hud.Render.CreateFont("tahoma", 9, 255, 255, 0, 0, true, false, true);
            CompletedCounterFont = Hud.Render.CreateFont("tahoma", 8, 255, 239, 220, 129, false, false, true);

            CompletedLabel        = "Uber game done!";
            CompletedCounterLabel = "Uber runs :";

            uberEncounterStates.Add(areaSno1, new UberAreaDefinition(areaSno1, portalSno1, "A1 done"));
            uberEncounterStates.Add(areaSno2, new UberAreaDefinition(areaSno2, portalSno2, "A2 done"));
            uberEncounterStates.Add(areaSno3, new UberAreaDefinition(areaSno3, portalSno3, "A3 done"));
            uberEncounterStates.Add(areaSno4, new UberAreaDefinition(areaSno4, portalSno4, "A4 done"));

            uberPortalSnos = new HashSet <uint>(uberEncounterStates.Select(a => a.Value.PortalSno));
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

            CustomAffixNames = new Dictionary <MonsterAffix, string>();

            CustomAffixNames.Add(MonsterAffix.Juggernaut, "");
            CustomAffixNames.Add(MonsterAffix.Wormhole, "ASSHOLE");
            CustomAffixNames.Add(MonsterAffix.Reflect, "");
            CustomAffixNames.Add(MonsterAffix.Arcane, "");
            CustomAffixNames.Add(MonsterAffix.Jailer, "");
            CustomAffixNames.Add(MonsterAffix.FireChains, "");
            CustomAffixNames.Add(MonsterAffix.Mortar, "");
            CustomAffixNames.Add(MonsterAffix.Molten, "");
            CustomAffixNames.Add(MonsterAffix.Desecrator, "");
            CustomAffixNames.Add(MonsterAffix.Frozen, "");
            CustomAffixNames.Add(MonsterAffix.FrozenPulse, "");
            CustomAffixNames.Add(MonsterAffix.Orbiter, "");
            CustomAffixNames.Add(MonsterAffix.Electrified, "");
            CustomAffixNames.Add(MonsterAffix.Thunderstorm, "");
            CustomAffixNames.Add(MonsterAffix.Poison, "");
            CustomAffixNames.Add(MonsterAffix.Shielding, "");
            CustomAffixNames.Add(MonsterAffix.Illusionist, "");
            CustomAffixNames.Add(MonsterAffix.Waller, "");
            CustomAffixNames.Add(MonsterAffix.Teleporter, "");
            CustomAffixNames.Add(MonsterAffix.HealthLink, "");
            CustomAffixNames.Add(MonsterAffix.ExtraHealth, "");
            CustomAffixNames.Add(MonsterAffix.Fast, "");
            CustomAffixNames.Add(MonsterAffix.Knockback, "");
            CustomAffixNames.Add(MonsterAffix.Nightmarish, "");
            CustomAffixNames.Add(MonsterAffix.Vampiric, "");
            CustomAffixNames.Add(MonsterAffix.Vortex, "");
            CustomAffixNames.Add(MonsterAffix.Avenger, "");
            CustomAffixNames.Add(MonsterAffix.Horde, "");
            CustomAffixNames.Add(MonsterAffix.MissileDampening, "");

            var BorderBrush = Hud.Render.CreateBrush(128, 0, 0, 0, 2);
            var LabelFont   = Hud.Render.CreateFont("tahoma", 6f, 240, 240, 240, 240, true, false, true);

            AffixDecorators = new Dictionary <MonsterAffix, WorldDecoratorCollection>();

            // Important: Juggernaut, Reflect, Wormhole - red
            AffixDecorators.Add(MonsterAffix.Juggernaut, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 200, 0, 0, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Wormhole, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 200, 0, 0, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Reflect, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 200, 0, 0, 0),
            }
                                    ));

            // Arcane element - magenta
            AffixDecorators.Add(MonsterAffix.Arcane, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 120, 0, 120, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Jailer, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 120, 0, 120, 0),
            }
                                    ));

            // Fire element	- brown
            AffixDecorators.Add(MonsterAffix.FireChains, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 170, 50, 0, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Mortar, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 170, 50, 0, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Molten, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 170, 50, 0, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Desecrator, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 170, 50, 0, 0),
            }
                                    ));

            // Cold element - dark blue
            AffixDecorators.Add(MonsterAffix.Frozen, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 120, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.FrozenPulse, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 120, 0),
            }
                                    ));

            // Lightning element - blue
            AffixDecorators.Add(MonsterAffix.Orbiter, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 40, 40, 240, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Thunderstorm, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 40, 40, 240, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Electrified, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 40, 40, 240, 0),
            }
                                    ));
            // Shielding - orange
            AffixDecorators.Add(MonsterAffix.Shielding, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 255, 128, 80, 0),
            }
                                    ));

            AffixDecorators.Add(MonsterAffix.HealthLink, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));

            // Illusionist - teal
            AffixDecorators.Add(MonsterAffix.Illusionist, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 128, 128, 0),
            }
                                    ));

            // Others - grey
            AffixDecorators.Add(MonsterAffix.Waller, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Teleporter, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.ExtraHealth, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Fast, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Knockback, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Nightmarish, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Vampiric, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Vortex, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Avenger, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.Horde, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));
            AffixDecorators.Add(MonsterAffix.MissileDampening, new WorldDecoratorCollection(
                                    new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            }
                                    ));

            EliteHealthDecorator = new GroundLabelDecorator(Hud)
            {
                BorderBrush     = BorderBrush,
                TextFont        = LabelFont,
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0),
            };
        }