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

            AverageDecoratorNormal = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 6, 160, 150, 200, 150, false, false, false),
                TextFunc = () => Hud.Game.AverageLatency.ToString("F0", CultureInfo.InvariantCulture),
                HintFunc = () => "average latency"
            };

            CurrentDecoratorNormal = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 6, 160, 150, 200, 150, false, false, false),
                TextFunc = () => Hud.Game.CurrentLatency.ToString("F0", CultureInfo.InvariantCulture),
                HintFunc = () => "current latency"
            };

            AverageDecoratorHigh = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 6, 255, 200, 175, 150, false, false, false),
                TextFunc = () => Hud.Game.AverageLatency.ToString("F0", CultureInfo.InvariantCulture),
                HintFunc = () => "average latency"
            };

            CurrentDecoratorHigh = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 6, 255, 200, 175, 150, false, false, false),
                TextFunc = () => Hud.Game.CurrentLatency.ToString("F0", CultureInfo.InvariantCulture),
                HintFunc = () => "current latency"
            };
        }
Пример #2
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            StackCountDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 7, 255, 255, 255, 255, false, false, 250, 0, 0, 0, true),
                HintFunc = () => "Bane Of The Stricken Count of trigger times(The monomeric BOSS is accurate)"
            };

            StackCount = new int[4];
            cooling    = new bool[4];

            StackBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0);

            classShorts = new Dictionary <HeroClass, string>();
            classShorts.Add(HeroClass.Barbarian, "Barb");
            classShorts.Add(HeroClass.Monk, "Monk");
            classShorts.Add(HeroClass.Necromancer, "Necro");
            classShorts.Add(HeroClass.Wizard, "Wiz");
            classShorts.Add(HeroClass.WitchDoctor, "WD");
            classShorts.Add(HeroClass.Crusader, "Sader");
            classShorts.Add(HeroClass.DemonHunter, "DH");
            ClassFont = Hud.Render.CreateFont("tahoma", 7, 230, 255, 255, 255, true, false, 255, 0, 0, 0, true);
        }
Пример #3
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            var expandedHintFont = Hud.Render.CreateFont("tahoma", 6, 255, 200, 200, 200, false, false, true);

            LabelList = new HorizontalTopLabelList(hud)
            {
                LeftFunc   = () => (Hud.Window.Size.Width / 2) - (Hud.Window.Size.Height * 0.08f),
                TopFunc    = () => Hud.Window.Size.Height * 0.001f,
                WidthFunc  = () => Hud.Window.Size.Height * 0.08f,
                HeightFunc = () => Hud.Window.Size.Height * 0.018f,
            };

            var currentLevelDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 6, 255, 57, 137, 205, true, false, true),
                BackgroundTexture1        = Hud.Texture.Button2TextureOrange,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureBlue,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 0.5f,
                TextFunc                  = () => (Hud.Game.Me.CurrentLevelNormal < Hud.Game.Me.CurrentLevelNormalCap) ? Hud.Game.Me.CurrentLevelNormal.ToString("0") : "p" + Hud.Game.Me.CurrentLevelParagonDouble.ToString("0.##", CultureInfo.InvariantCulture),
                ExpandDownLabels          = new List <TopLabelDecorator>(),
            };

            foreach (var levelIncrement in new uint[] { 1, 2, 5, 10, 20, 50, 100, 250, 500, 1000 })
            {
                currentLevelDecorator.ExpandDownLabels.Add(
                    new TopLabelDecorator(Hud)
                {
                    TextFont                      = Hud.Render.CreateFont("tahoma", 6, 180, 255, 255, 255, true, false, true),
                    ExpandedHintFont              = expandedHintFont,
                    ExpandedHintWidthMultiplier   = 2,
                    BackgroundTexture1            = Hud.Texture.Button2TextureOrange,
                    BackgroundTexture2            = Hud.Texture.BackgroundTextureBlue,
                    BackgroundTextureOpacity1     = 1.0f,
                    BackgroundTextureOpacity2     = 0.5f,
                    HideBackgroundWhenTextIsEmpty = true,
                    TextFunc                      = () => Hud.Game.Me.CurrentLevelNormal >= Hud.Game.Me.CurrentLevelNormalCap ? ("p" + (Hud.Game.Me.CurrentLevelParagon + levelIncrement).ToString("D", CultureInfo.InvariantCulture)) : null,
                    HintFunc                      = () => ExpToParagonLevel(Hud.Game.Me.CurrentLevelParagon + levelIncrement) + " = " + TimeToParagonLevel(Hud.Game.Me.CurrentLevelParagon + levelIncrement, false),
                });
            }

            LabelList.LabelDecorators.Add(currentLevelDecorator);

            LabelList.LabelDecorators.Add(new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 6, 255, 57, 137, 205, true, false, true),
                BackgroundTexture1        = Hud.Texture.Button2TextureOrange,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureBlue,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 0.5f,
                TextFunc                  = () => ValueToString(Hud.Game.CurrentHeroToday.GainedExperiencePerHourPlay, ValueFormat.ShortNumber) + "/h",
            });
        }
Пример #4
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            RenderTimeDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("courier new", 6, 255, 0, 255, 0, true, false, false),
                TextFunc = () => Hud.Stat.RenderPerfCounter.LastValue.ToString("F0") + " (" + Hud.Stat.RenderPerfCounter.LastCount.ToString("F0") + " FPS)",
            };

            MemoryUsageDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("courier new", 6, 255, 255, 50, 50, true, false, false),
                TextFunc = () => (GC.GetTotalMemory(false) / 1024.0 / 1024.0).ToString("F0") + " MB",
            };
        }
Пример #5
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            GameClockDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 7, 255, 255, 235, 170, false, false, true),
                TextFunc = () => new TimeSpan(Convert.ToInt64(Hud.Game.CurrentGameTick / 60.0f * 10000000)).ToString(@"hh\:mm\:ss"),
            };

            ServerIpAddressDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 6, 255, 170, 150, 120, false, false, true),
                TextFunc = () => Hud.Game.ServerIpAddress,
            };
        }
Пример #6
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            string textFunc()
            {
                return((ShowRemaining ? 500 + (Hud.Game.Me.HighestSoloRiftLevel * 10) - Hud.Game.Me.Materials.BloodShard : Hud.Game.Me.Materials.BloodShard).ToString("D", CultureInfo.InvariantCulture));
            }

            string hintFunc()
            {
                return(ShowRemaining ? "amount of blood shards remaining" : "amount of blood shards");
            }

            RedDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 8, 255, 255, 100, 100, true, false, 255, 0, 0, 0, true),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = textFunc,
                HintFunc                  = hintFunc,
            };

            YellowDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 7, 255, 200, 205, 50, true, false, false),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = textFunc,
                HintFunc                  = hintFunc,
            };

            GreenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 7, 255, 100, 130, 100, false, false, false),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = textFunc,
                HintFunc                  = hintFunc,
            };
        }
Пример #7
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            TagDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 200, 255, 255, 255, true, false, false),
            };

            // Act 1
            coordinates.Add(1, new Dictionary <int, IWorldCoordinate>()
            {
                { 0, Hud.Window.CreateWorldCoordinate(381.154f, 551.850f, 33.3f) }, // Top of North East Banner  Act 1
                { 1, Hud.Window.CreateWorldCoordinate(397.500f, 568.030f, 31.5f) }, // Top of South East Banner  Act 1
                { 2, Hud.Window.CreateWorldCoordinate(403.000f, 539.500f, 37.3f) }, // Top of North West Banner  Act 1
                { 3, Hud.Window.CreateWorldCoordinate(413.500f, 548.450f, 28.9f) }, // Top of South West Banner  Act 1
            });
            // Act 2
            coordinates.Add(2, new Dictionary <int, IWorldCoordinate>()
            {
                { 0, Hud.Window.CreateWorldCoordinate(318.500f, 263.600f, 4.5f) }, // Top of North West Banner  Act 2
                { 1, Hud.Window.CreateWorldCoordinate(300.000f, 285.500f, 6.5f) }, // Top of North East Banner  Act 2
                { 2, Hud.Window.CreateWorldCoordinate(319.000f, 304.900f, 7.6f) }, // Top of South East Banner  Act 2
                { 3, Hud.Window.CreateWorldCoordinate(338.500f, 285.300f, 7.0f) }, // Top of South West Banner  Act 2
            });
            // Act 3 & 4
            var act34Coordinates = new Dictionary <int, IWorldCoordinate>()
            {
                { 0, Hud.Window.CreateWorldCoordinate(382.500f, 411.900f, 10.2f) }, // Top of North East Banner  Act 3 & 4
                { 1, Hud.Window.CreateWorldCoordinate(398.500f, 428.500f, 9.2f) },  // Top of South East Banner  Act 3 & 4
                { 2, Hud.Window.CreateWorldCoordinate(408.500f, 405.800f, 19.4f) }, // Top of North West Banner  Act 3 & 4
                { 3, Hud.Window.CreateWorldCoordinate(414.500f, 408.100f, 6.4f) },  // Top of South West Banner  Act 3 & 4
            };

            coordinates.Add(3, act34Coordinates);
            coordinates.Add(4, act34Coordinates);
            // Act 5
            coordinates.Add(5, new Dictionary <int, IWorldCoordinate>()
            {
                { 0, Hud.Window.CreateWorldCoordinate(571.000f, 756.600f, 6.1f) }, // Top of South West Banner  Act 5
                { 1, Hud.Window.CreateWorldCoordinate(550.000f, 779.000f, 7.4f) }, // Top of South East Banner  Act 5
                { 2, Hud.Window.CreateWorldCoordinate(551.500f, 739.000f, 9.5f) }, // Top of North West Banner  Act 5
                { 3, Hud.Window.CreateWorldCoordinate(530.000f, 759.000f, 9.1f) }, // Top of North East Banner  Act 5
            });
        }
Пример #8
0
 public override void Load(IController hud)
 {
     base.Load(hud);
     TagDecorator = new TopLabelDecorator(Hud)
     {
         TextFont = Hud.Render.CreateFont("tahoma", 8, 200, 255, 255, 255, true, false, false),
     };
     TextFont        = Hud.Render.CreateFont("tahoma", 8, 180, 255, 255, 255, true, false, true);
     BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, 1);
     BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0);
     HPbarBrush      = Hud.Render.CreateBrush(200, 255, 0, 0, 0);
     ArcaneBrush     = Hud.Render.CreateBrush(200, 255, 0, 255, 0);
     ManaBrush       = Hud.Render.CreateBrush(200, 0, 100, 255, 0);
     SpiritBrush     = Hud.Render.CreateBrush(200, 255, 255, 200, 0);
     FuryBrush       = Hud.Render.CreateBrush(200, 255, 128, 0, 0);
     HatreBrush      = Hud.Render.CreateBrush(200, 160, 0, 0, 0);
     DisciplineBrush = Hud.Render.CreateBrush(200, 40, 70, 250, 0);
     WrathBrush      = Hud.Render.CreateBrush(200, 255, 255, 230, 0);
     EssenceBrush    = Hud.Render.CreateBrush(200, 80, 170, 170, 0);
 }
Пример #9
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            ItemLevelFont = Hud.Render.CreateFont("tahoma", 7, 255, 154, 105, 24, true, false, 128, 0, 0, 0, true);

            LegendaryNameDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 10, 235, 235, 110, 0, false, false, true),
                TextFunc        = () => Hud.Inventory.HoveredItem.FullNameLocalized,
            };

            SetNameDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 10, 255, 50, 220, 50, false, false, true),
                TextFunc        = () => Hud.Inventory.HoveredItem.FullNameLocalized,
            };
        }
Пример #10
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            BlueThisLevelValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 140, 140, 180, false, false, 160, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.ParagonExpInThisLevel.ToString("#,0", CultureInfo.InvariantCulture),
                HintFunc = () => "experience gained in this level",
            };

            OrangeThisLevelValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 200, 160, 140, false, false, 160, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.ParagonExpInThisLevel.ToString("#,0", CultureInfo.InvariantCulture),
                HintFunc = () => "experience gained in this level",
            };

            BlueNextLevelValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 140, 140, 180, false, false, 160, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.ParagonExpToNextLevel.ToString("#,0", CultureInfo.InvariantCulture),
                HintFunc = () => "experience to reach next level",
            };

            OrangeNextLevelValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 200, 160, 140, false, false, 160, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.ParagonExpToNextLevel.ToString("#,0", CultureInfo.InvariantCulture),
                HintFunc = () => "experience to reach next level",
            };

            BonusValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 200, 160, 140, false, false, 160, 0, 0, 0, true),
                TextFunc = () => (Hud.Game.Me.BonusPoolRemaining * 5).ToString("#,0", CultureInfo.InvariantCulture),
                HintFunc = () => "bonus pool * 5",
            };
        }
Пример #11
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            //TextFunc = () => (500 + Hud.Game.Me.HighestSoloRiftLevel * 10 - Hud.Game.Me.Materials.BloodShard).ToString("D", CultureInfo.InvariantCulture),
            RedDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 8, 255, 255, 100, 100, true, false, 255, 0, 0, 0, true),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = () => Hud.Game.Me.Materials.BloodShard.ToString("D", CultureInfo.InvariantCulture),
                HintFunc                  = () => "amount of blood shards"
            };

            YellowDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 7, 255, 200, 205, 50, true, false, false),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = () => Hud.Game.Me.Materials.BloodShard.ToString("D", CultureInfo.InvariantCulture),
                HintFunc                  = () => "amount of blood shards"
            };

            GreenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 7, 255, 100, 130, 100, false, false, false),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = () => Hud.Game.Me.Materials.BloodShard.ToString("D", CultureInfo.InvariantCulture),
                HintFunc                  = () => "amount of blood shards"
            };
        }
Пример #12
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            RedDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 8, 255, 255, 100, 100, true, false, 255, 0, 0, 0, true),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = () => (Hud.Game.Me.InventorySpaceTotal - Hud.Game.InventorySpaceUsed).ToString("D", CultureInfo.InvariantCulture),
                HintFunc                  = () => "free space in inventory",
            };

            YellowDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 7, 255, 200, 205, 50, true, false, false),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = () => (Hud.Game.Me.InventorySpaceTotal - Hud.Game.InventorySpaceUsed).ToString("D", CultureInfo.InvariantCulture),
                HintFunc                  = () => "free space in inventory",
            };

            GreenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 7, 255, 100, 130, 100, false, false, false),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                BackgroundTextureOpacity2 = 1.0f,
                TextFunc                  = () => (Hud.Game.Me.InventorySpaceTotal - Hud.Game.InventorySpaceUsed).ToString("D", CultureInfo.InvariantCulture),
                HintFunc                  = () => "free space in inventory",
            };
        }
Пример #13
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            ShowInTown    = true;
            ShowOutOfTown = false;

            PhysicalDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(180, 155, 6, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
                TextFunc        = () => Hud.Game.Me.Offense.BonusToPhysical > 0 ? Convert.ToInt32(Hud.Game.Me.Offense.BonusToPhysical * 100).ToString("D", CultureInfo.InvariantCulture) : "",
                HintFunc        = () => "physical damage %"
            };

            FireDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(180, 183, 57, 7, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
                TextFunc        = () => Hud.Game.Me.Offense.BonusToFire > 0 ? Convert.ToInt32(Hud.Game.Me.Offense.BonusToFire * 100).ToString("D", CultureInfo.InvariantCulture) : "",
                HintFunc        = () => "fire damage %"
            };

            LightningDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(180, 0, 38, 119, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
                TextFunc        = () => Hud.Game.Me.Offense.BonusToLightning > 0 ? Convert.ToInt32(Hud.Game.Me.Offense.BonusToLightning * 100).ToString("D", CultureInfo.InvariantCulture) : "",
                HintFunc        = () => "lightning damage %"
            };

            ColdDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(180, 77, 102, 155, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
                TextFunc        = () => Hud.Game.Me.Offense.BonusToCold > 0 ? Convert.ToInt32(Hud.Game.Me.Offense.BonusToCold * 100).ToString("D", CultureInfo.InvariantCulture) : "",
                HintFunc        = () => "cold damage %"
            };

            PoisonDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(180, 50, 106, 21, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
                TextFunc        = () => Hud.Game.Me.Offense.BonusToPoison > 0 ? Convert.ToInt32(Hud.Game.Me.Offense.BonusToPoison * 100).ToString("D", CultureInfo.InvariantCulture) : "",
                HintFunc        = () => "poison damage %"
            };

            ArcaneDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(180, 138, 0, 94, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
                TextFunc        = () => Hud.Game.Me.Offense.BonusToArcane > 0 ? Convert.ToInt32(Hud.Game.Me.Offense.BonusToArcane * 100).ToString("D", CultureInfo.InvariantCulture) : "",
                HintFunc        = () => "arcane damage %"
            };

            HolyDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(180, 190, 117, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
                TextFunc        = () => Hud.Game.Me.Offense.BonusToHoly > 0 ? Convert.ToInt32(Hud.Game.Me.Offense.BonusToHoly * 100).ToString("D", CultureInfo.InvariantCulture) : "",
                HintFunc        = () => "holy damage %"
            };

            EliteDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(180, 255, 148, 20, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
                TextFunc        = () => Hud.Game.Me.Offense.BonusToElites > 0 ? Convert.ToInt32(Hud.Game.Me.Offense.BonusToElites * 100).ToString("D", CultureInfo.InvariantCulture) : "",
                HintFunc        = () => "elite damage %",
            };
        }
Пример #14
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            opacity                      = 0f;
            itemOpacity                  = 0;
            craftCount                   = 0;
            prevDeathsBreathCount        = 0;
            deathsBreathCount            = 0;
            prevReusablePartsCount       = 0;
            reusablePartsCount           = 0;
            prevArcaneDustCount          = 0;
            arcaneDustCount              = 0;
            prevVeiledCrystalCount       = 0;
            veiledCrystalCount           = 0;
            prevForgottenSoulCount       = 0;
            forgottenSoulCount           = 0;
            prevBloodShardCount          = 0;
            bloodShardCount              = 0;
            prevGrkCount                 = 0;
            grkCount                     = 0;
            prevBovineBardicheCount      = 0;
            bovineBardicheCount          = 0;
            prevPuzzleRingCount          = 0;
            puzzleRingCount              = 0;
            khanduranRuneCount           = 0;
            prevKhanduranRuneCount       = 0;
            caldeumNightShadeCount       = 0;
            prevCaldeumNightShadeCount   = 0;
            arreatWarTapestryCount       = 0;
            prevArreatWarTapestryCount   = 0;
            corruptedAngelFleshCount     = 0;
            prevCorruptedAngelFleshCount = 0;
            westmarchHolyWaterCount      = 0;
            prevWestmarchHolyWaterCount  = 0;
            leoricsRegretCount           = 0;
            prevLeoricsRegretCount       = 0;
            idolOfTerrorCount            = 0;
            prevIdolOfTerrorCount        = 0;
            vialOfPutridnessCount        = 0;
            prevVialOfPutridnessCount    = 0;
            heartOfFrightCount           = 0;
            prevHeartOfFrightCount       = 0;
            itemSizeX                    = 0f;
            itemSizeY                    = 0f;
            itemSno                      = 0;
            BountiesCompletion           = 0;
            prevBountiesCompletion       = 0;
            BountiesLeft                 = 0;
            prevRiftPercentage           = 0;

            CraftCountDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("Microsoft Sans Serif", 10, 200, 255, 255, 255, true, true, 25, 0, 0, 0, true),
                TextFunc = () => craftCount.ToString("N0") + " owneth",
            };

            BountiesDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("Microsoft Sans Serif", 10, 200, 255, 255, 255, true, true, 25, 0, 0, 0, true),
                TextFunc = () => (BountiesLeft == 0) ? "Bounties completed!" : (BountiesLeft == 1) ? BountiesLeft.ToString("N0") + " bounty left!" : BountiesLeft.ToString("N0") + " bounties left",
            };

            RiftCompletionDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("Microsoft Sans Serif", 10, 200, 255, 255, 255, true, true, 25, 0, 0, 0, true),
                TextFunc = () => (Hud.Game.RiftPercentage >= 100) ? "Boss fight!" : "Rift: " + Hud.Game.RiftPercentage.ToString("F1", CultureInfo.InvariantCulture) + "%",
            };
        }
Пример #15
0
        }                                                                                // AcdId, Health, Stacks
        public void LoadEliteCirclePlugin()
        {
            EliteHealthDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 10, 255, 0, 0, 0, true, false, 250, 255, 255, 255, true),
            };
            EliteHealthBlockSize = (int)(Hud.Window.Size.Width / 50);

            var shadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1);

            GoblinDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 57, 194, 29, 3),
                Radius = 3
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 240, 213, 10, 5),
                Radius = 2
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(180, 255, 0, 0, 6),
                Radius = 0.3f
            }
                );

            RareDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 148, 20, 3),
                Radius = 3
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 148, 20, 5),
                Radius = 2
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(180, 255, 0, 0, 6),
                Radius = 0.3f
            },
                new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(255, 255, 148, 20, 0),
                Radius       = 6,
                ShapePainter = new CircleShapePainter(Hud)
            }
                );
            ChampionDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 64, 128, 255, 3),
                Radius = 3
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 64, 128, 255, 5),
                Radius = 2
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(180, 255, 0, 0, 6),
                Radius = 0.3f
            },
                new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(255, 64, 128, 255, 0),
                Radius       = 6,
                ShapePainter = new CircleShapePainter(Hud)
            }
                );
            JuggernautDecorator = new WorldDecoratorCollection(
                new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(255, 255, 50, 0, 0),
                ShadowBrush  = shadowBrush,
                Radius       = 6,
                ShapePainter = new CircleShapePainter(Hud),
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 50, 0, 3),
                Radius = 3,
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 148, 20, 5),
                Radius = 2
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(180, 255, 0, 0, 6),
                Radius = 0.3f
            }
                );
            UniqueDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 140, 255, 3),
                Radius = 3
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 140, 255, 5),
                Radius = 2
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(180, 255, 0, 0, 6),
                Radius = 0.3f
            },
                new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(255, 255, 140, 255, 0),
                Radius       = 6,
                ShapePainter = new CircleShapePainter(Hud)
            }
                );

            BossDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 96, 0, 4),
                Radius = 4
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 96, 0, 5),
                Radius = 2
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(180, 255, 0, 0, 6),
                Radius = 0.3f
            },
                new MapShapeDecorator(Hud)
            {
                Brush        = Hud.Render.CreateBrush(255, 255, 96, 0, 0),
                Radius       = 6,
                ShapePainter = new CircleShapePainter(Hud)
            }
                );


            var importantBorderBrush = Hud.Render.CreateBrush(128, 0, 0, 0, 2);
            var importantLabelFont   = Hud.Render.CreateFont("tahoma", 6f, 255, 255, 255, 255, true, false, false);



            //  ReflectDecorator = new WorldDecoratorCollection(
            //     new GroundLabelDecorator(Hud)
            //     {
            //         BackgroundBrush = Hud.Render.CreateBrush(255, 50, 50, 50, 0),
            //         BorderBrush = Hud.Render.CreateBrush(128, 0, 0, 0, 2),
            //         TextFont = Hud.Render.CreateFont("tahoma", 5f, 200, 220, 120, 0, false, false, false)
            //     }
            //  );



            StrickenMonsterStatus = new Dictionary <uint, Tuple <double, int> >();
            StrickenPropSquare    = (int)(Hud.Window.Size.Width / 53.333);
            StrickenInCooldown    = false;
            StrickenMonsterCount  = 0;

            StrickenStackDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 7, 255, 0, 0, 0, true, false, 250, 255, 255, 255, true),
            };


            WormholeWarningDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(205, 255, 50, 255, 3, SharpDX.Direct2D1.DashStyle.Dash),
                Radius = 5f,
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(205, 255, 50, 255, 0),
                Radius = 4f,
            },
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 20, 255, 255, 255, 255, true, true, true),
            }
                );

            WormholeDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(160, 255, 50, 255, 3, SharpDX.Direct2D1.DashStyle.Dash),
                Radius = 5f,
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(160, 255, 50, 255, 0),
                Radius = 4f,
            },
                new GroundLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 255, 255, true, false, 128, 0, 0, 0, true),
            }
                );
        }
Пример #16
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            HealthDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 10, 255, 255, 180, 144, true, false, 96, 255, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Defense.HealthCur.ToString("#,0", CultureInfo.InvariantCulture),
            };

            HealingPosDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 110, 205, 110, true, false, 255, 100, 0, 0, true),
                TextFunc = () => (Hud.Game.Me.Defense.CurrentEffectiveHealingPercent > 0 ? "+" : "") + Hud.Game.Me.Defense.CurrentEffectiveHealingPercent.ToString("#,0", CultureInfo.InvariantCulture) + "%",
            };

            HealingNegDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 130, 130, true, false, 255, 100, 0, 0, true),
                TextFunc = () => (Hud.Game.Me.Defense.CurrentEffectiveHealingPercent > 0 ? "+" : "") + Hud.Game.Me.Defense.CurrentEffectiveHealingPercent.ToString("#,0", CultureInfo.InvariantCulture) + "%",
            };

            ShieldDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 160, 160, 215, true, false, 255, 100, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Defense.CurShield.ToString("#,0", CultureInfo.InvariantCulture),
            };

            ArcaneValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 200, 120, 255, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceCurArcane.ToString("F0", CultureInfo.InvariantCulture),
            };

            ArcaneRegenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 200, 120, 255, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceRegArcane <= 0 ? null : "+" + Hud.Game.Me.Stats.ResourceRegArcane.ToString("F0", CultureInfo.InvariantCulture) + "/s",
            };

            ManaValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 160, 160, 255, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceCurMana.ToString("F0", CultureInfo.InvariantCulture),
            };

            ManaRegenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 160, 160, 255, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceRegMana <= 0 ? null : "+" + Hud.Game.Me.Stats.ResourceRegMana.ToString("F0", CultureInfo.InvariantCulture) + "/s",
            };

            SpiritValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 255, 255, 160, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceCurSpirit.ToString("F0", CultureInfo.InvariantCulture),
            };

            SpiritRegenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 160, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceRegSpirit <= 0 ? null : "+" + Hud.Game.Me.Stats.ResourceRegSpirit.ToString("F0", CultureInfo.InvariantCulture) + "/s",
            };

            FuryValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 255, 220, 60, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceCurFury.ToString("F0", CultureInfo.InvariantCulture),
            };

            FuryRegenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 220, 60, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceRegFury <= 0 ? null : "+" + Hud.Game.Me.Stats.ResourceRegFury.ToString("F0", CultureInfo.InvariantCulture) + "/s",
            };

            HatredValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 255, 160, 160, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceCurHatred.ToString("F0", CultureInfo.InvariantCulture),
            };

            HatredRegenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 160, 160, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceRegHatred <= 0 ? null : "+" + Hud.Game.Me.Stats.ResourceRegHatred.ToString("F0", CultureInfo.InvariantCulture) + "/s",
            };

            DisciplineValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 160, 160, 255, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceCurDiscipline.ToString("F0", CultureInfo.InvariantCulture),
            };

            DisciplineRegenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 160, 160, 255, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceRegDiscipline <= 0 ? null : "+" + Hud.Game.Me.Stats.ResourceRegDiscipline.ToString("F0", CultureInfo.InvariantCulture) + "/s",
            };

            WrathValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 255, 220, 60, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceCurWrath.ToString("F0", CultureInfo.InvariantCulture),
            };

            WrathRegenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 220, 60, true, false, 128, 0, 0, 0, true),
                TextFunc = () => Hud.Game.Me.Stats.ResourceRegWrath <= 0 ? null : "+" + Hud.Game.Me.Stats.ResourceRegWrath.ToString("F0", CultureInfo.InvariantCulture) + "/s",
            };
        }