public override void Load(IController hud)
        {
            base.Load(hud);
            DeadBodyCircle = true;
            DeadBodyCount  = true;


            DeadBodyCountDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 7, 255, 175, 238, 238, true, false, false), //this configures the size of the numbers ("7") and the color in RGB ("255, 175, 238, 238")
                BackgroundTexture1        = hud.Texture.ButtonTextureBlue,
                BackgroundTexture2        = hud.Texture.BackgroundTextureGreen,
                BackgroundTextureOpacity2 = 0.6f,
            };

            DeadBodyCircleDecorator = new WorldDecoratorCollection(
                new GroundShapeDecorator(Hud)
            {
                Brush                 = Hud.Render.CreateBrush(192, 255, 0, 0, -3),
                ShadowBrush           = Hud.Render.CreateBrush(96, 0, 0, 0, 1),
                ShapePainter          = WorldStarShapePainter.NewCross(Hud),
                Radius                = 1f,
                RadiusTransformator   = new StandardPingRadiusTransformator(Hud, 400, 0.8f, 1.0f),
                RotationTransformator = new CircularRotationTransformator(Hud, 30),
            },
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 0, 0, 2f),
                Radius = 1f
            }
                );
        }
示例#2
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            MeShieldMaxDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(0, 255, 255, 255, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
            };
            MeShieldCurDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(70, 0, 220, 220, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
            };
            PlayerShieldMaxDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
            };
            PlayerShieldCurDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(100, 0, 255, 255, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, 0.3f),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 255, false, false, true),
            };
        }
示例#3
0
        protected override void Paint(float x, float y, float labelWidth, float labelHeight)
        {
            TopLabelDecorator selectedLabel = null;
            var selectedX = 0f;

            foreach (var label in LabelDecorators)
            {
                if (!Hud.Window.CursorInsideRect(x, y, labelWidth, labelHeight))
                {
                    label.Paint(x, y, labelWidth, labelHeight, HorizontalAlign.Center);
                }
                else
                {
                    selectedLabel = label;
                    selectedX     = x;
                }

                x += labelWidth + SpacingAdjustmentInPixels;
            }

            if (selectedLabel != null)
            {
                selectedLabel.Paint(selectedX, y, labelWidth, labelHeight, HorizontalAlign.Center);
            }
        }
示例#4
0
        public void PaintTopInGame(ClipState clipState)
        {
            if (Hud.Game.Me.CurrentLevelNormal != 70 && Hud.Game.Me.CurrentLevelNormal > 0)
            {
                return;
            }
            if (Hud.Game.Me.HighestSoloRiftLevel < 70 && Hud.Game.Me.HighestSoloRiftLevel > 0)
            {
                return;
            }

            long   PrimalAncientTotal = Hud.Tracker.CurrentAccountTotal.DropPrimalAncient;
            long   AncientTotal       = Hud.Tracker.CurrentAccountTotal.DropAncient;
            long   LegendariesTotal   = Hud.Tracker.CurrentAccountTotal.DropLegendary;
            string TotalPercPrimal    = ((float)PrimalAncientTotal / (float)LegendariesTotal).ToString("0.00%");
            string TotalPercAncient   = ((float)AncientTotal / (float)LegendariesTotal).ToString("0.00%");

            ancientDecorator = new TopLabelDecorator(Hud)
            {
                TextFont        = Hud.Render.CreateFont("arial", 7, 220, 227, 153, 25, true, false, 255, 0, 0, 0, true),
                TextFunc        = () => ancientText,
                HintFunc        = () => "Chance for the next Legendary drop to be Ancient." + Environment.NewLine + "Total Ancient drops : " + AncientTotal + " (" + TotalPercAncient + ") of Legendary drops",
                BackgroundBrush = Hud.Render.CreateBrush(50, 0, 0, 0, 0),
            };

            primalDecorator = new TopLabelDecorator(Hud)
            {
                TextFont        = Hud.Render.CreateFont("arial", 7, 180, 255, 64, 64, true, false, 255, 0, 0, 0, true),
                TextFunc        = () => primalText,
                HintFunc        = () => "Chance for the next Legendary drop to be Primal Ancient." + Environment.NewLine + "Total Primal Ancient drops : " + PrimalAncientTotal + " (" + TotalPercPrimal + ") of Legendary drops",
                BackgroundBrush = Hud.Render.CreateBrush(50, 0, 0, 0, 0),
            };


            double RNGprobaAncient  = 9.7753333;
            double RNGprobaPrimal   = 0.2246666;
            double probaAncient     = ((float)(AncientTotal) / (float)(LegendariesTotal)) * 100;
            double probaPrimal      = ((float)(PrimalAncientTotal) / (float)(LegendariesTotal)) * 100;
            double DiffProbaAncient = (RNGprobaAncient - probaAncient);
            double DiffProbaPrimal  = (RNGprobaPrimal - probaPrimal);

            probaAncient += (DiffProbaAncient * 2);
            probaPrimal  += (DiffProbaPrimal * 2);

            probaAncient = Math.Round(probaAncient, 4);
            probaPrimal  = Math.Round(probaPrimal, 5);


            ancientText = "A: " + probaAncient + "%";
            primalText  = "P: " + probaPrimal + "%";

            var uiRect = Hud.Render.GetUiElement("Root.NormalLayer.game_dialog_backgroundScreenPC.game_progressBar_healthBall").Rectangle;

            ancientDecorator.Paint(uiRect.Right - (uiRect.Width / 0.35f), uiRect.Top + (uiRect.Height / 1.168f), 75f, 25f, HorizontalAlign.Left);

            if (Hud.Game.Me.HighestSoloRiftLevel >= 70)
            {
                primalDecorator.Paint(uiRect.Right - (uiRect.Width / 0.42f), uiRect.Top + (uiRect.Height / 1.168f), 75f, 25f, HorizontalAlign.Left);
            }
        }
        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 = () => "受罚者宝石触发次数预估值(单体BOSS时精确)"
            };

            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, "野蛮人");
            classShorts.Add(HeroClass.Monk, "武僧");
            classShorts.Add(HeroClass.Necromancer, "死灵法师");
            classShorts.Add(HeroClass.Wizard, "法师");
            classShorts.Add(HeroClass.WitchDoctor, "巫医");
            classShorts.Add(HeroClass.Crusader, "圣教军");
            classShorts.Add(HeroClass.DemonHunter, "狩魔猎人");
            ClassFont = Hud.Render.CreateFont("tahoma", 7, 230, 255, 255, 255, true, false, 255, 0, 0, 0, true);
        }
        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, "Crus");
            classShorts.Add(HeroClass.DemonHunter, "DH");
            ClassFont = Hud.Render.CreateFont("tahoma", 7, 230, 255, 255, 255, true, false, 255, 0, 0, 0, true);
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

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

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

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

            CurrentDecoratorHigh = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 7, 255, 200, 175, 150, true, false, 120, 0, 0, 0, true),
                TextFunc = () => Hud.Game.CurrentLatency.ToString("F0", CultureInfo.InvariantCulture),
                HintFunc = () => "current latency"
            };
        }
 public override void Load(IController hud)
 {
     base.Load(hud);
     Decorator = new TopLabelDecorator(Hud)
     {
         TextFont = Hud.Render.CreateFont("tahoma", 16, 255, 255, 255, 255, true, false, 250, 0, 0, 0, true),
     };
 }
示例#9
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            Oldpercentage = -1;

            RedDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 10, 255, 255, 100, 100, true, false, 255, 0, 0, 0, true),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 0.0f,
                BackgroundTextureOpacity2 = 0.0f,
                TextFunc                  = () => Percentage.ToString("F0"),
                HintFunc                  = () => "durability left in %",
            };

            YellowDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 9, 255, 200, 205, 50, true, false, 255, 0, 0, 0, true),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 0.0f,
                BackgroundTextureOpacity2 = 0.0f,
                TextFunc                  = () => Percentage.ToString("F0"),
                HintFunc                  = () => "durability left in %",
            };

            GreenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 9, 255, 100, 130, 100, true, false, 255, 0, 0, 0, true),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 0.0f,
                BackgroundTextureOpacity2 = 0.0f,
                TextFunc                  = () => Percentage > 98 ? String.Empty : Percentage.ToString("F0"),
                HintFunc                  = () => "durability left in %",
            };

            F3Decorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 30, 255, 255, 100, 100, true, false, 255, 0, 0, 0, true),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 0.0f,
                BackgroundTextureOpacity2 = 0.0f,
                TextFunc                  = () => "Press F3",
            };

            F3RepairDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 25, 255, 255, 100, 100, true, false, 255, 0, 0, 0, true),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 0.0f,
                BackgroundTextureOpacity2 = 0.0f,
                TextFunc                  = () => "Repair & Press F3",
            };
        }
示例#10
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            culture = System.Globalization.CultureInfo.CurrentCulture.ToString().Substring(0, 2);

            ReadEditLineTimer           = new System.Timers.Timer();
            ReadEditLineTimer.Interval  = 500;                          // edit line filtering interval
            ReadEditLineTimer.Elapsed  += ReadEditLine;
            ReadEditLineTimer.AutoReset = true;
            ReadEditLineTimer.Enabled   = true;

            cmd.FileName                = "CMD.exe";
            cmd.WorkingDirectory        = @"C:\Program Files\NVIDIA Corporation\NVSMI";
            cmd.WindowStyle             = ProcessWindowStyle.Hidden;
            cmd.CreateNoWindow          = true;
            cmd.UseShellExecute         = false;
            cmd.RedirectStandardInput   = true;
            cmd.RedirectStandardOutput  = true;
            cmd.RedirectStandardError   = true;
            process.EnableRaisingEvents = false;
            process.StartInfo           = cmd;

            doFlag            = false;
            FPSWarningCnt     = 0;
            FrameRateKind     = 1;
            savedKind         = 0;
            MonitoredResource = string.Empty;
            BaseX             = (int)(Hud.Window.Size.Width * 0.82f);
            BaseY             = (int)(Hud.Window.Size.Height * 0.90f);

            PlayerDecorator = new TopLabelWithTitleDecorator(hud)
            {
                BorderBrush     = hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = hud.Render.CreateBrush(100, 0, 0, 0, 0),                      //200
                TextFont        = hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, true, false, false),
                TitleFont       = hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
            };

            ContentOKDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 220, 100, 255, 100, true, false, 255, 0, 0, 0, true),
                TextFunc = () => MonitoredResource,
            };

            ContentWarningDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 220, 255, 150, 80, true, false, 255, 0, 0, 0, true),
                TextFunc = () => MonitoredResource,
            };

            ContentBadDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 220, 255, 0, 0, true, false, 255, 0, 0, 0, true),
                TextFunc = () => MonitoredResource,
            };
        }
示例#11
0
 public override void Load(IController hud)
 {
     base.Load(hud);
     InArmorySetList = new TopLabelDecorator(Hud)
     {
         BackgroundBrush = Hud.Render.CreateBrush(100, 0, 0, 0, 0),
         BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
         TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, false, false, true),
     };
 }
示例#12
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            IsDownloaded    = false;
            BeingDownloaded = false;
            PlayersArrayInitialization();

            // automatic url selection according language culture --- you don't have to change it
            // if your ranking website is different from ko/KR or en/US, you need to replace the webpate url in this source code with yours for yourself
            culture = System.Globalization.CultureInfo.CurrentCulture.ToString().Substring(0, 2);
            if (culture == "ko")
            {
                WebsiteUrl = koUrl;
            }
            else
            {
                WebsiteUrl = enUrl;
            }

            webClient.Encoding = System.Text.Encoding.UTF8;

            for (int i = 0; i < GRiftRanking.GetLength(0); i++)
            {
                for (int j = 0; j < GRiftRanking.GetLength(1); j++)
                {
                    GRiftRanking[i, j] = string.Empty;
                }
            }

            for (int i = 0; i < pPlayers.GetLength(0); i++)
            {
                pPlayers[i] = string.Empty;
            }

            TitleDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 220, 120, 255, 120, true, false, 255, 0, 0, 0, true),
                TextFunc = () => TitleStr,
            };

            ContentDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 220, 255, 255, 255, true, false, 255, 0, 0, 0, true),
            };

            GRLevelSpeedHybrid   = string.Empty;
            GRLevelSpeedStandard = string.Empty;
            GRLevelDecorator     = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(150, 0, 0, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(250, 0, 0, 0, 2),
                TextFont        = Hud.Render.CreateFont("consolas", 8, 220, 255, 255, 255, true, false, 255, 0, 0, 0, true),
                TextFunc        = () => ">> R Speedy GR Level : for Hybrid (" + GRLevelSpeedHybrid + "), for 4P Standard (" + GRLevelSpeedStandard + ") <<",
            };
        }
示例#13
0
        public void PaintTopInGame(ClipState clipState)
        {
            if (Hud.Game.Me.CurrentLevelNormal != 70)
            {
                return;
            }

            ancientDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("arial", 7, 220, 227, 153, 25, true, false, 255, 0, 0, 0, true),
                TextFunc = () => ancientText,
                HintFunc = () => "Chance for the next Legendary drop to be Ancient."
            };

            primalDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("arial", 7, 180, 255, 64, 64, true, false, 255, 0, 0, 0, true),
                TextFunc = () => primalText,
                HintFunc = () => "Chance for the next Legendary drop to be Primal Ancient."
            };

            double probaAncient = 0;
            double probaPrimal  = 0;
            double powAncient   = legendaryCount - ancientMarker;
            double powPrimal    = legendaryCount - primalMarker;
            double ancientMaths = 90.00 / 100;
            double primalMaths  = 99.78 / 100;

            if (powAncient == 0)
            {
                powAncient = 1;
            }
            if (powPrimal == 0)
            {
                powPrimal = 1;
            }

            probaAncient = (1 - Math.Pow(ancientMaths, powAncient)) * 100;
            probaPrimal  = (1 - Math.Pow(primalMaths, powPrimal)) * 100;

            probaAncient = Math.Round(probaAncient, 2);
            probaPrimal  = Math.Round(probaPrimal, 2);

            ancientText = "A: " + probaAncient + "%";
            primalText  = "P: " + probaPrimal + "%";

            var uiRect = Hud.Render.GetUiElement("Root.NormalLayer.game_dialog_backgroundScreenPC.game_progressBar_manaBall").Rectangle;

            ancientDecorator.Paint(uiRect.Left - (uiRect.Width / 3f), uiRect.Bottom - (uiRect.Height / 5.7f), 50f, 50f, HorizontalAlign.Left);

            if (Hud.Game.Me.HighestSoloRiftLevel >= 70)
            {
                primalDecorator.Paint(uiRect.Left + (uiRect.Width / 10f), uiRect.Bottom - (uiRect.Height / 5.7f), 50f, 50f, HorizontalAlign.Left);
            }
        }
示例#14
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            maxX = Hud.Window.Size.Width;
            maxY = Hud.Window.Size.Height;

            DarknessDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(70, 0, 18, 52, 0),
                TextFont        = Hud.Render.CreateFont("Segoe UI Light", 7, 250, 255, 255, 255, false, false, true), // it doesn't work without that line
            };
        }
示例#15
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            GRLevelText = "";

            GRLevelDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("arial", 7, 220, 198, 174, 49, true, false, 255, 0, 0, 0, true),
                TextFunc = () => "",
                HintFunc = () => "GR level advised for this group : " + GRLevelText
            };
        }
示例#16
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 = () => GLQ_BasePluginCN.ValueToString(Hud.Game.Me.ParagonExpInThisLevel, ValueFormat.LongNumber),
                HintFunc = () => "当前经验",
            };

            OrangeThisLevelValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 200, 160, 140, false, false, 160, 0, 0, 0, true),
                TextFunc = () => GLQ_BasePluginCN.ValueToString(Hud.Game.Me.ParagonExpInThisLevel, ValueFormat.LongNumber),
                HintFunc = () => "当前经验",
            };

            BlueNextLevelValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 140, 140, 180, false, false, 160, 0, 0, 0, true),
                TextFunc = () => GLQ_BasePluginCN.ValueToString(Hud.Game.Me.ParagonExpToNextLevel, ValueFormat.LongNumber),
                HintFunc = () => "升到下一级所需经验",
            };

            OrangeNextLevelValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 200, 160, 140, false, false, 160, 0, 0, 0, true),
                TextFunc = () => GLQ_BasePluginCN.ValueToString(Hud.Game.Me.ParagonExpToNextLevel, ValueFormat.LongNumber),
                HintFunc = () => "升到下一级所需经验",
            };
            BlueExpPercentValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 140, 140, 180, false, false, 160, 0, 0, 0, true),
                TextFunc = () => GLQ_BasePluginCN.ValueToString(Hud.Game.Me.ParagonExpInThisLevel, ValueFormat.LongNumber),
                HintFunc = () => "当前经验百分比",
            };

            OrangeExpPercentValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 200, 160, 140, false, false, 160, 0, 0, 0, true),
                TextFunc = () => GLQ_BasePluginCN.ValueToString(Hud.Game.Me.ParagonExpInThisLevel, ValueFormat.LongNumber),
                HintFunc = () => "当前经验百分比",
            };

            BonusValueDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 5.5f, 255, 200, 160, 140, false, false, 160, 0, 0, 0, true),
                TextFunc = () => (10 * ((float)Hud.Game.Me.BonusPoolRemaining / Hud.Game.Me.ParagonExpToNextLevel)).ToString("f2") + "个池 " + GLQ_BasePluginCN.ValueToString(Hud.Game.Me.BonusPoolRemaining * 5, ValueFormat.LongNumber),
                HintFunc = () => "经验池数量及消耗剩余经验池所需经验",
            };
        }
示例#17
0
        public override void Load(IController hud)
        {
            base.Load(hud);


            TimeEverywhereDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(8, 255, 234, 137, 30),
                TextFont        = Hud.Render.CreateFont("Segoe UI Light", 9, 255, 255, 234, 137, false, false, true),

                TextFunc = () => DateTime.Now.ToShortTimeString(),
            };
        }
示例#18
0
 public override void Load(IController hud)
 {
     base.Load(hud);
     TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 170, 90, 90, false, false, true);
     XWidth   = 0.3f;
     YHeight  = 0.3f;
     percent  = 0;
     AncientParthanDecorator = new TopLabelDecorator(Hud)
     {
         TextFont = Hud.Render.CreateFont("tahoma", 5, 255, 255, 255, 255, false, false, 250, 0, 0, 0, true),
     };
     StackBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0);
 }
示例#19
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            _watch = Hud.Time.CreateWatch();
            maxX   = Hud.Window.Size.Width;
            maxY   = Hud.Window.Size.Height;

            NextHeroDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("Microsoft Sans Serif", 9, 225, 255, 255, 255, false, false, 100, 0, 0, 0, true),
                TextFunc = () => NextHeroText,
            };
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

            MonsterHpDecreaseDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundTexture1        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                TextFont = Hud.Render.CreateFont("tahoma", 6, 255, 200, 180, 100, true, false, 255, 0, 0, 0, true),
                TextFunc = () => GLQ_BasePluginCN.ValueToString(Hud.Stat.MonsterHitpointDecreasePerfCounter.LastValue, ValueFormat.LongNumber),
                HintFunc = () => "队伍每秒伤害",
            };
        }
示例#21
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            MoveSpeedDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundTexture1        = Hud.Texture.BackgroundTextureOrange,
                BackgroundTextureOpacity1 = 1.0f,
                TextFont = Hud.Render.CreateFont("tahoma", 6, 255, 200, 180, 100, true, false, 255, 0, 0, 0, true),
                TextFunc = () => (Hud.Game.Me.Stats.MoveSpeed).ToString() + "%",
                HintFunc = () => "MoveSpeed%(Bonus%)\n" + (Hud.Game.Me.Stats.MoveSpeed.ToString() + "%") +
                           ("(" + Hud.Game.Me.Stats.MoveSpeedBonus.ToString() + "%)"),
            };
        }
示例#22
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            ImmortalKingsCall = "-1";

            ImmortalKingsCallDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundTexture1        = Hud.Texture.Button2TextureBrown,
                BackgroundTextureOpacity1 = 0.0f,
                TextFont = Hud.Render.CreateFont("Segoe UI Light", 7, 250, 212, 144, 0, false, false, true),

                TextFunc = () => ImmortalKingsCall,
                HintFunc = () => "Immortal King's Call status",
            };
        }
示例#23
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            _Timer = Hud.Time.CreateWatch();
            _Timer.Start();
            WhichStat = 0;

            CurrentStatDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(0, 255, 234, 137, 30),
                TextFont        = Hud.Render.CreateFont("Segoe UI Light", 9, 255, 255, 234, 137, false, false, true),

                TextFunc = () => CurrentStats,
            };
        }
示例#24
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            showOk       = true;
            showWarning  = true;
            limitBad     = 300; // last {limitBad} space shards show as Bad
            limitWarning = 500; // show Warning between last {limitWarning} and {limitBad} space shards

            KadalaDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("tahoma", 8, 200, 255, 255, 255, true, false, false),
                TextFunc = () => kadalaText,
            };
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

            HighestSoloRiftLevelDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundTexture1        = Hud.Texture.Button2TextureBrown,
                BackgroundTextureOpacity1 = 0.7f,
                TextFont = Hud.Render.CreateFont("tahoma", 7, 250, 255, 255, 255, false, false, true),

                TextFunc = () => "GR " + Hud.Game.Me.HighestSoloRiftLevel,

                HintFunc = () => "Highest solo rift level",
            };
        }
示例#26
0
 public void PaintWorld(WorldLayer layer)
 {
     if (!Hud.Game.Me.IsInTown)
     {
         IScreenCoordinate coord  = Hud.Window.CreateScreenCoordinate(Hud.Window.CursorX, Hud.Window.CursorY);
         IWorldCoordinate  cursor = coord.ToWorldCoordinate();
         int count = 0;
         foreach (IMonster monster in Hud.Game.AliveMonsters)
         {
             if (monster.FloorCoordinate.XYDistanceTo(cursor) < Distance)
             {
                 count++;
             }
         }
         if (DrawCursorCircle)
         {
             CursorCircleBrush.DrawWorldEllipse(Distance, -1, cursor);
         }
         if (DrawCursorLabel)
         {
             float width  = Hud.Window.Size.Height * CursorLabelWRatio;
             float height = Hud.Window.Size.Height * CursorLabelHRatio;
             CursorLabelDecorator.Paint(coord.X + CursorLabelXOffset, coord.Y + CursorLabelYOffset, width, height, count.ToString(), null, "");
         }
         if (DrawTopLabel)
         {
             float x      = Hud.Window.Size.Width * TopLabelXRatio;
             float y      = Hud.Window.Size.Height * TopLabelYRatio;
             float width  = Hud.Window.Size.Height * TopLabelWRatio;
             float height = Hud.Window.Size.Height * TopLabelHRatio;
             TopLabelDecorator.Paint(x - width / 2, y, width, height, count.ToString(), null, "");
         }
         if (DrawCursorLine)
         {
             var player = Hud.Game.Me.ScreenCoordinate;
             LineBrush.DrawLine(player.X, player.Y, coord.X, coord.Y);
         }
         if (DrawDistanceLabel)
         {
             var   distance = Hud.Game.Me.FloorCoordinate.XYDistanceTo(cursor);
             float x        = Hud.Window.Size.Width * DistanceLabelXRatio;
             float y        = Hud.Window.Size.Height * DistanceLabelYRatio;
             float width    = Hud.Window.Size.Height * DistanceLabelWRatio;
             float height   = Hud.Window.Size.Height * DistanceLabelHRatio;
             TopLabelDecorator.Paint(x - width / 2, y, width, height, distance.ToString("F1", CultureInfo.InvariantCulture));
         }
     }
 }
示例#27
0
        public void PaintTopInGame(ClipState clipState)
        {
            var  hedPlugin = Hud.GetPlugin <HotEnablerDisablerPlugin>();
            bool GoOn      = hedPlugin.CanIRun(Hud.Game.Me, this.GetType().Name);

            if (!GoOn)
            {
                return;
            }

            if (Hud.Render.UiHidden)
            {
                return;
            }
            if (clipState != ClipState.BeforeClip)
            {
                return;
            }

            CustomLifeWarningDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(opacity, 255, 165, 0, 0),
                TextFont        = Hud.Render.CreateFont("Segoe UI Light", 7, 250, 255, 255, 255, false, false, true), // it doesn't work without that line
            };


            var percentLife = Hud.Game.Me.Defense.HealthPct;

            if (percentLife < (float)lifePercentage && percentLife > 25f)
            {
                if (opacity < 25)
                {
                    opacity++;
                }



                CustomLifeWarningDecorator.Paint(0f, 0f, (float)maxX, (float)maxY, HorizontalAlign.Center);
            }
            else
            {
                if (opacity != 0)
                {
                    opacity--;
                    CustomLifeWarningDecorator.Paint(0f, 0f, (float)maxX, (float)maxY, HorizontalAlign.Center);
                }
            }
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

            GRLevelText = string.Empty;
            CircleSize  = 10;

            GRLevelDecorator = new TopLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(150, 0, 0, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(250, 0, 0, 0, 2),
                TextFont        = Hud.Render.CreateFont("consolas", 8, 220, 255, 255, 255, true, false, 255, 0, 0, 0, true),
                TextFunc        = () => "Greater Rift level advised for this" + Environment.NewLine + Hud.Game.NumberOfPlayersInGame + " player group     >   " + GRLevelText + "   <",
            };

            BattletagsDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 220, 255, 255, 255, true, false, 255, 0, 0, 0, true),
                TextFunc = () => Battletags,
            };

            ZClassesDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 220, 0, 253, 0, true, false, 255, 0, 0, 0, true),
                TextFunc = () => ZClasses,
            };

            HighestSolosDecorator = new TopLabelDecorator(Hud)
            {
                TextFont = Hud.Render.CreateFont("consolas", 8, 220, 255, 255, 255, true, false, 255, 0, 0, 0, true),
                TextFunc = () => HighestSolos,
            };

            ObeliskClose = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(0, 182, 26, 255, 1),
                TextFont        = Hud.Render.CreateFont("arial", 7, 200, 255, 255, 110, true, false, 255, 0, 0, 0, true)
            });

            TalkToUrshiDecorator = new WorldDecoratorCollection(
                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),
            });
        }
示例#29
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", 5, 255, 170, 150, 120, false, false, true),
                TextFunc = () => Hud.Game.ServerIpAddress,
            };
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

            Offx = 0.32f;
            Offy = 0.60f;

            OnlyGR      = true;
            OnlyTrusted = true;

            TextFontDebug   = Hud.Render.CreateFont("tahoma", 8, 150, 43, 231, 6, true, false, false);
            TextFontRedOk   = Hud.Render.CreateFont("tahoma", 6, 255, 255, 100, 100, true, false, false);
            TextFontRedNo   = Hud.Render.CreateFont("tahoma", 6, 255, 255, 0, 0, true, false, false);
            TextFontRedNull = Hud.Render.CreateFont("tahoma", 6, 255, 150, 150, 150, true, false, false);

            Tiempo    = "0:00";
            IPrS      = "IP";
            PlayerIni = new IWatch [4];
            for (var i = 0; i < 4; i++)
            {
                PlayerIni[i] = Hud.Time.CreateWatch();
            }
            PlayerName = new string [4] {
                string.Empty, string.Empty, string.Empty, string.Empty
            };

            RedDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = TextFontRedOk,
                BackgroundTexture1        = Hud.Texture.ButtonTextureBlue,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureBlue,
                BackgroundTextureOpacity1 = 10.0f,
                BackgroundTextureOpacity2 = 10.0f,
                TextFunc                  = () => Tiempo,
                HintFunc                  = () => "Sin IP",
            };
            GreenDecorator = new TopLabelDecorator(Hud)
            {
                TextFont                  = Hud.Render.CreateFont("tahoma", 6, 255, 255, 255, 0, true, false, false),
                BackgroundTexture1        = Hud.Texture.ButtonTextureGray,
                BackgroundTexture2        = Hud.Texture.BackgroundTextureGreen,
                BackgroundTextureOpacity1 = 10.0f,
                BackgroundTextureOpacity2 = 10.0f,
                TextFunc                  = () => IPrS,
                HintFunc                  = () => "Con IP",
            };
        }