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

            WarningMessageDecorator = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 20, 255, 255, 0, 0, true, true, true),
            });

            NoticeMessageDecorator = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 20, 255, 0, 255, 0, true, true, true),
            });

            NemesisPlayerDecorator = new TopLabelWithTitleDecorator(hud)
            {
                BorderBrush     = hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = hud.Render.CreateBrush(200, 0, 0, 0, 0),
                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),
            };
        }
Пример #2
0
 public override void Load(IController hud)
 {
     base.Load(hud);
     RedDoor0        = false;
     RedDoor1        = false;
     RedDoor2        = false;
     RedDoor3        = false;
     Finished        = false;
     Times           = 0;
     MarkerDecorator = new WorldDecoratorCollection(
         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),
     }
         );
     FinishedDecorator = new TopLabelWithTitleDecorator(Hud)
     {
         TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 0, 0, true, false, true),
     };
     TimesDecorator = new TopLabelWithTitleDecorator(Hud)
     {
         TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 239, 220, 129, false, false, true),
     };
     _actorSnoList.Add(258384); //Uber_PortalSpot0
     _actorSnoList.Add(258385); //Uber_PortalSpot1
     _actorSnoList.Add(258386); //Uber_PortalSpot2
     _actorSnoList.Add(366533); //Uber_PortalSpot3
 }
Пример #3
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            DeadBodyCircle         = true;
            DeadBodyCount          = true;
            DeadBodyCountDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(80, 134, 238, 240, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 255, 0, 0, true, false, true),
            };

            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
            }
                );
        }
        public override void Load(IController hud)
        {
            base.Load(hud);
            CursorCircleBrush = Hud.Render.CreateBrush(200, 255, 255, 255, 4);

            DrawCursorCircle = true;
            DrawCursorLabel  = true;
            DrawCursorLine   = true;
            Distance         = 15;

            CursorLabelDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                TextFont        = hud.Render.CreateFont("tahoma", 9, 255, 255, 255, 255, false, false, true),
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 255, 255, -1),
                BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
            };
            CursorLabelXOffset = -10f;
            CursorLabelYOffset = 35f;
            CursorLabelWRatio  = 0.025f;
            CursorLabelHRatio  = 0.015f;

            DistanceLabelOnLineDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                TextFont        = hud.Render.CreateFont("tahoma", 9, 255, 255, 255, 255, false, false, true),
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 255, 255, -1),
                BackgroundBrush = Hud.Render.CreateBrush(150, 0, 0, 0, 0),
            };
            DistanceLabelOnLineWRatio = 0.045f;
            DistanceLabelOnLineHRatio = 0.015f;

            LineBrush = Hud.Render.CreateBrush(255, 255, 255, 255, 3.0f);
        }
Пример #5
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,
            };
        }
Пример #6
0
 public MyItem(uint?sno, ItemQuality?quality, int?ancientRank, string hint, string title, int duration, TopLabelWithTitleDecorator decorator = null)
 {
     this.SNO         = sno;
     this.Title       = title;
     this.Duration    = duration;
     this.Quality     = quality;
     this.AncientRank = ancientRank;
     this.Decorator   = decorator;
 }
 public MyMonster(uint sno, string name, string hint, string title, int duration, TopLabelWithTitleDecorator decorator = null)
 {
     MaxHitpoints   = new List <double>();
     this.Sno       = sno;
     this.Hint      = hint;
     this.Name      = name;
     this.Title     = title;
     this.Duration  = duration;
     this.Decorator = decorator;
 }
Пример #8
0
 public Buff(uint sno, int icon, string name, string hint, string title, int duration, TopLabelWithTitleDecorator decorator = null)
 {
     this.SNO       = sno;
     this.Icon      = icon;
     this.Displayed = false;
     this.Name      = name;
     this.Title     = title;
     this.Duration  = duration;
     this.Decorator = decorator;
 }
Пример #9
0
 public MyActor(uint sno, string name, string hint, string title, int duration, TopLabelWithTitleDecorator decorator = null)
 {
     FloorCoords    = new List <IWorldCoordinate>();
     CreatedTicks   = new List <float>();
     this.Sno       = sno;
     this.Hint      = hint;
     this.Name      = name;
     this.Title     = title;
     this.Duration  = duration;
     this.Decorator = decorator;
 }
Пример #10
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            LabelDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 9, 255, 255, 210, 150, true, false, false),
                TitleFont       = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
            };
        }
Пример #11
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            LabelDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 230, 30, 30, -1),
                BackgroundBrush = Hud.Render.CreateBrush(190, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 230, 30, 30, false, false, false),
                TitleFont       = Hud.Render.CreateFont("tahoma", 10, 255, 255, 0, 0, true, false, false),
            };

            playerMissingLegendaryGemsPowersCount = (p) => 3 - p.Powers.UsedLegendaryGems.AllGemPrimaryBuffs().Count(b => b.Active && b.SnoPower.Sno != 403459 && b.SnoPower.Sno != 454736);
            messageFormat = (p) => string.Format("{0} ({1}) -> {2} missing\n", p.BattleTagAbovePortrait, p.HeroClassDefinition.HeroClass, playerMissingLegendaryGemsPowersCount(p));
        }
Пример #12
0
        public override void Load(IController hud)
        {
            base.Load(hud);
            cursorBrush = Hud.Render.CreateBrush(200, 255, 255, 255, 4);

            drawCursorCircle = false;
            drawCursorLabel  = false;

            cursorDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                TextFont        = hud.Render.CreateFont("tahoma", 10, 255, 255, 255, 255, false, false, false),
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 255, 255, -1),
                BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
            };
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

            BountyPopupDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 23, 0, -1),
                BackgroundBrush = Hud.Render.CreateBrush(200, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 255, 23, 0, true, false, false),
                TitleFont       = Hud.Render.CreateFont("tahoma", 6, 255, 255, 23, 0, true, false, false),
            };

            RatioW = 0.36f;
            RatioH = 0.05f;
            RatioY = 0.15f;
            RatioX = 0.4f;
        }
        public override void Load(IController hud)
        {
            base.Load(hud);

            CallerSignDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush = Hud.Render.CreateBrush(255, 0, 255, 0, 20)
            });

            PlayerLabelDecorator = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                TextFont        = Hud.Render.CreateFont("tahoma", 13.0f, 255, 0, 255, 0, false, false, false),
                BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0)
            });

            TagDecorator = new TopLabelDecorator(Hud)
            {
                TextFont           = Hud.Render.CreateFont("tahoma", 8, 200, 255, 255, 255, true, false, false),
                BackgroundTexture1 = hud.Texture.ButtonTextureBlue,
            };

            CallerPopupDecorator = new TopLabelWithTitleDecorator(hud)
            {
                BorderBrush     = hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = hud.Render.CreateBrush(200, 0, 0, 0, 0),
                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),
            };

            //PressKeyEvent = Hud.Input.CreateKeyEvent(true, Key.Divide, false, false, false);

            _bannersSnoList.Add(ActorSnoEnum._banner_player_1);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_2);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_3);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_4);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_1_act2);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_2_act2);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_3_act2);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_4_act2);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_1_act5);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_2_act5);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_3_act5);
            _bannersSnoList.Add(ActorSnoEnum._banner_player_4_act5);
        }
Пример #15
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            PopupDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = Hud.Render.CreateBrush(200, 0, 0, 0, 0),
                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),
            };

            RatioX      = 0.6f;
            RatioY      = 0.75f;
            RatioW      = 0.18f;
            RatioH      = 0.05f;
            VerticalGap = 1.20f;
        }
Пример #16
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            brus                          = Hud.Render.CreateBrush(255, 0, 0, 0, 0);
            ShowClosingTimer              = true;
            GreaterRiftCountdown          = true;
            ShowGreaterRiftTimer          = true;
            ShowGreaterRiftCompletedTimer = true;
            CompletionDisplayLimit        = 90;

            ObjectiveProgressSymbol = "\u2694";       //⚔
            GuardianAliveSymbol     = "\uD83D\uDC7F"; //👿
            GuardianDeadSymbol      = "\uD83D\uDC80"; //💀

            ObjectiveProgressSymbol = "";
            GuardianAliveSymbol     = "\uD83D\uDC7F"; //??
            GuardianDeadSymbol      = "\uD83D\uDC80"; //??uDC80"; //??

            MinutesSecondsFormat = "{0:%m}:{0:ss}";
            SecondsFormat        = "{0:%s}";

            ProgressPercentFormat = "({0:F1}%)";
            ClosingSecondsFormat  = "({0:%s})";

            ProgressBarTimerFont = Hud.Render.CreateFont("tahoma", 7, 255, 255, 210, 150, true, false, 160, 0, 0, 0, true);

            ObjectiveProgressFont = Hud.Render.CreateFont("tahoma", 8, 224, 240, 240, 240, false, false, false);
            ObjectiveProgressFont.SetShadowBrush(222, 0, 0, 0, true);

            RiftCompletionTitleFunc  = () => riftQuest.QuestStep.SplashLocalized.Trim();
            CompletionLabelDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 9, 255, 255, 210, 150, true, false, false),
                TitleFont       = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
            };

            pauseTimer    = Hud.Time.CreateWatch();
            riftTimer     = Hud.Time.CreateWatch();
            guardianTimer = Hud.Time.CreateWatch();
        }
        public override void Load(IController hud)
        {
            base.Load(hud);
            DeadBodyCircle         = true;
            DeadBodyCount          = true;
            DeadBodyCountDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(80, 134, 238, 240, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 255, 0, 0, true, false, false),
            };

            DeadBodyCircleDecorator = new WorldDecoratorCollection(
                new GroundCircleDecorator(Hud)
            {
                Brush  = Hud.Render.CreateBrush(255, 255, 0, 0, 2f),
                Radius = 1.5f
            }
                );
        }
Пример #18
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            PopupDecorator1 = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = Hud.Render.CreateBrush(100, 0, 0, 0, 0),                      // opacity
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, true, false, false),
                TitleFont       = Hud.Render.CreateFont("tahoma", 7, 255, 180, 147, 109, true, false, false),
            };

            PopupDecorator2 = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = Hud.Render.CreateBrush(100, 0, 0, 50, 0),                     // opacity
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 150, 255, 0, true, false, false),
                TitleFont       = Hud.Render.CreateFont("tahoma", 7, 255, 180, 147, 109, true, false, false),
            };
        }
        public override void Load(IController hud)
        {
            base.Load(hud);
            FullBackgroundBrush         = Hud.Render.CreateBrush(100, 0, 255, 0, 0);
            ReapersWrapsBackgroundBrush = Hud.Render.CreateBrush(100, 255, 165, 0, 0);
            NotFullBackgroundBrush      = Hud.Render.CreateBrush(100, 255, 0, 0, 0);

            ShowInTown = true;
            ReapersWrapsResourceRestore = 30;
            w    = Hud.Window.Size.Width * 0.03f;
            h    = Hud.Window.Size.Height * 0.02f;
            XPos = Hud.Window.Size.Width * 0.5f - w / 2;
            YPos = Hud.Window.Size.Height * 0.5f + Hud.Window.Size.Height * 0.00001f;

            EssenceDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BackgroundBrush = FullBackgroundBrush,
                BorderBrush     = Hud.Render.CreateBrush(150, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 150, 0, 0, 0, true, false, false),
            };
        }
Пример #20
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            GreenBrush  = Hud.Render.CreateBrush(160, 0, 255, 0, 0);
            OrangeBrush = Hud.Render.CreateBrush(160, 255, 165, 0, 0);
            RedBrush    = Hud.Render.CreateBrush(160, 255, 0, 0, 0);

            ShowInTown = false;
            w          = Hud.Window.Size.Width * 0.03f;
            h          = Hud.Window.Size.Height * 0.02f;
            XPos       = Hud.Window.Size.Width * 0.5f - w / 2;
            YPos       = Hud.Window.Size.Height * 0.5f + Hud.Window.Size.Height * 0.00001f;

            ChantodoDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BackgroundBrush = GreenBrush,
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 0, 0, 0, true, false, false),
            };
        }
Пример #21
0
            public Popup(string text, string title, TimeSpan lifetime, string hint, IController hud, TopLabelWithTitleDecorator decorator = null)
            {
                this.Text     = text;
                this.Title    = title;
                this.LifeTime = lifetime;
                this.Hint     = hint;
                this.QueuedOn = DateTime.Now;

                if (decorator == null)
                {
                    this.Decorator = new TopLabelWithTitleDecorator(hud)
                    {
                        BorderBrush     = hud.Render.CreateBrush(255, 180, 147, 109, -1),
                        BackgroundBrush = hud.Render.CreateBrush(200, 0, 0, 0, 0),
                        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),
                    };
                }
                else
                {
                    this.Decorator = decorator;
                }
            }
Пример #22
0
        public CustomLabel(float x, float y, int width, int heigth, string text, string hint, IController hud)
        {
            this.customExpression = null;
            this.conditions       = new List <ICondition>();
            this.Enabled          = true;
            this.Hud      = hud;
            this.x        = x;
            this.y        = y;
            this.defaultX = x;
            this.defaultY = y;
            this.width    = width;
            this.heigth   = heigth;
            this.baseText = text;
            this.hint     = hint;

            Decorator = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 9, 255, 255, 210, 150, true, false, false),
                TitleFont       = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
            };
        }
Пример #23
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            logo1Decorator = new TopLabelWithTitleDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(160, 255, 255, 255, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 0, 0, 0, true, false, false),
            };

            logo2Decorator = new TopLabelWithTitleDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(160, 255, 100, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 9, 255, 0, 0, 0, true, false, false),
            };
            logo3Decorator = new TopLabelWithTitleDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(160, 250, 200, 20, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 0, 0, 0, true, false, false),
            };
        }
        public override void Load(IController hud)
        {
            base.Load(hud);
            Order = 1001;

            ShowOthers          = true;                 // Also show for other players.
            ShowCounter         = true;                 // Counter
            ShowExplosionCircle = true;                 // Show  additional circle after "CircleSeconds"
            CircleSeconds       = 8;                    // 0 .. 10 ,  Draw additional circle after this seconds ( 8 -> the last 2 seconds)

            BrushDash          = hud.Render.CreateBrush(150, 0, 128, 255, 3, SharpDX.Direct2D1.DashStyle.Dash);
            BrushSolid         = hud.Render.CreateBrush(255, 0, 128, 255, 2);
            BrushCounter       = hud.Render.CreateBrush(255, 0, 128, 255, 0);
            TimeLeftClockBrush = Hud.Render.CreateBrush(220, 0, 0, 0, 0);

            FontText = Hud.Render.CreateFont("tahoma", 9f, 255, 100, 255, 150, true, false, 128, 0, 0, 0, true);

            PhantomCountDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(80, 134, 238, 240, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 0, 0, 0, -1),
                TextFont        = Hud.Render.CreateFont("tahoma", 8, 255, 255, 0, 0, true, false, true),
            };
        }
 public void Add(uint sno, string name, string hint, string title, int duration, TopLabelWithTitleDecorator decorator = null)
 {
     MonstersToWatch.Add(new MyMonster(sno, name, hint, title, duration, decorator));
 }
Пример #26
0
 public void Add(uint sno, int icon, string name, string hint, string title, int duration, TopLabelWithTitleDecorator decorator = null)
 {
     BuffsToWatch.Add(new Buff(sno, icon, name, hint, title, duration, decorator));
 }
Пример #27
0
 public void Add(uint?sno, ItemQuality?quality, int?ancientRank, string hint, string title, int duration, TopLabelWithTitleDecorator decorator = null)
 {
     this.ItemsToWatch.Add(new MyItem(sno, quality, ancientRank, hint, title, duration, decorator));
 }
Пример #28
0
 public void Show(string text, string title, int duration, string hint = null, TopLabelWithTitleDecorator decorator = null)
 {
     Hud.Queue.AddItem(new Popup(text, title, new TimeSpan(0, 0, 0, 0, duration), hint, Hud, decorator));
 }
Пример #29
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            culture       = System.Globalization.CultureInfo.CurrentCulture.ToString().Substring(0, 2);
            IsGRiftDialog = false;
            ScanPlayer    = true;
            keys          = 0;

            WarningMessageDecorator = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 20, 255, 255, 0, 0, true, true, true),
            });

            NoticeMessageDecorator = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(0, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 20, 255, 0, 255, 0, true, true, true),
            });

            NemesisPlayerDecorator = 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),
            };

            keysDecoratorOk = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(190, 0, 122, 26, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 255, 255, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 7f, 255, 255, 255, 255, false, false, false),
            }
                );

            keysDecoratorBad = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(190, 122, 0, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 255, 255, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 7f, 255, 255, 255, 255, true, false, false),
            }
                );

            keysDecoratorWarning = new WorldDecoratorCollection(
                new GroundLabelDecorator(Hud)
            {
                BackgroundBrush = Hud.Render.CreateBrush(190, 178, 110, 0, 0),
                BorderBrush     = Hud.Render.CreateBrush(255, 255, 255, 255, 1),
                TextFont        = Hud.Render.CreateFont("tahoma", 7f, 255, 255, 255, 255, false, false, false),
            }
                );

            CheckPixelTimer           = new System.Timers.Timer();
            CheckPixelTimer.Interval  = 500;                    // edit line filtering interval
            CheckPixelTimer.Elapsed  += CheckScreenPixel;
            CheckPixelTimer.AutoReset = true;
            CheckPixelTimer.Enabled   = true;
        }
Пример #30
0
        public override void Load(IController hud)
        {
            base.Load(hud);

            Show           = false;
            ToggleKeyEvent = Hud.Input.CreateKeyEvent(true, Key.F8, false, false, false);

            LegendaryGemItemIDs = new Dictionary <uint, uint>();

            SkillPainter = new SkillPainter(Hud, true)
            {
                TextureOpacity        = 1.0f,
                EnableSkillDpsBar     = true,
                EnableDetailedDpsHint = true,
                CooldownFont          = Hud.Render.CreateFont("arial", 8, 255, 255, 255, 255, true, false, 255, 0, 0, 0, true),
                SkillDpsBackgroundBrushesByElementalType = new IBrush[]
                {
                    Hud.Render.CreateBrush(222, 255, 6, 0, 0),
                    Hud.Render.CreateBrush(222, 183, 57, 7, 0),
                    Hud.Render.CreateBrush(222, 0, 38, 119, 0),
                    Hud.Render.CreateBrush(222, 77, 102, 155, 0),
                    Hud.Render.CreateBrush(222, 50, 106, 21, 0),
                    Hud.Render.CreateBrush(222, 138, 0, 94, 0),
                    Hud.Render.CreateBrush(222, 190, 117, 0, 0),
                },
                SkillDpsFont = Hud.Render.CreateFont("tahoma", 7, 222, 255, 255, 255, false, false, 0, 0, 0, 0, false),
            };
            SkillRatio = 0.025f;
            KanaiRatio = 0.025f;
            ItemRatio  = 0.025f;
            GemRatio   = 0.0166666666666667f;

            LabelDecorator = new TopLabelWithTitleDecorator(Hud)
            {
                BorderBrush     = Hud.Render.CreateBrush(255, 180, 147, 109, -1),
                BackgroundBrush = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
                TextFont        = Hud.Render.CreateFont("tahoma", 6, 255, 255, 210, 150, false, false, false),
                TitleFont       = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, false, false, false),
            };

            LegendaryGemItemIDs.Add(428348, 3249948847); //Stricken
            LegendaryGemItemIDs.Add(383014, 3248511367); //BotP
            LegendaryGemItemIDs.Add(403456, 3248547304); //BotT
            LegendaryGemItemIDs.Add(403470, 3249805099); //Hoarder
            LegendaryGemItemIDs.Add(428352, 3250847272); //Boyarskys
            LegendaryGemItemIDs.Add(403466, 3249661351); //Enforcer
            LegendaryGemItemIDs.Add(428029, 3249876973); //Esoteric
            LegendaryGemItemIDs.Add(403459, 3248583241); //Ease
            LegendaryGemItemIDs.Add(403461, 3248655115); //Toxin
            LegendaryGemItemIDs.Add(403464, 3248762926); //Gogok
            LegendaryGemItemIDs.Add(428354, 3250883209); //Iceblink
            LegendaryGemItemIDs.Add(403465, 3248798863); //Invigoration
            LegendaryGemItemIDs.Add(403463, 3248726989); //Mirinae
            LegendaryGemItemIDs.Add(428031, 3249912910); //Gizzard
            LegendaryGemItemIDs.Add(403467, 3249697288); //Moratorium
            LegendaryGemItemIDs.Add(428350, 3249984784); //Mutilation
            LegendaryGemItemIDs.Add(403462, 3248691052); //PE
            LegendaryGemItemIDs.Add(454736, 3250919146); //Soul Shard
            LegendaryGemItemIDs.Add(403469, 3249769162); //Simplicitys
            LegendaryGemItemIDs.Add(403471, 3249841036); //Taeguk
            LegendaryGemItemIDs.Add(403460, 3248619178); //WoL
            LegendaryGemItemIDs.Add(403468, 3249733225); //Zeis

            XOffset  = 0.14f;
            YOffset  = 0.012f;
            GapRatio = 0.012f;

            DrawGems             = true;
            DrawKanai            = true;
            DrawSkills           = true;
            DrawLegendaryItems   = true;
            DrawMetaInformations = true;

            ElementOrder = new List <int>(new int[] { 0, 1, 2, 4, 3 });

            UpperMeta.Add(new MetaElement(((p) => p.Offense.AttackSpeed.ToString("0.000")), "AS", "Attack Speed"));
            UpperMeta.Add(new MetaElement(((p) => p.Offense.AreaDamageBonus.ToString("F0", CultureInfo.InvariantCulture) + "%"), "AD", "Area Damage"));
            UpperMeta.Add(new MetaElement(((p) => (p.Stats.CooldownReduction * 100).ToString("F2", CultureInfo.InvariantCulture) + "%"), "CDR", "Cooldown reduction"));
            UpperMeta.Add(new MetaElement(((p) => (p.Stats.ResourceCostReduction * 100).ToString("F2", CultureInfo.InvariantCulture) + "%"), "RCR", "Resource cost reduction"));

            LowerMeta.Add(new MetaElement(((p) => ValueToString(p.Defense.EhpMax, ValueFormat.ShortNumber)), "EHP", "Effective health pool"));
            LowerMeta.Add(new MetaElement(((p) => ValueToString(p.Defense.LifeRegen, ValueFormat.ShortNumber)), "LPS", "Life per second"));
            LowerMeta.Add(new MetaElement(((p) => ValueToString(p.Stats.PickupRange, ValueFormat.ShortNumber)), "PR", "Pickup range"));
        }