当前位置: 首页>>代码示例>>C#>>正文


C# ColorBGRA类代码示例

本文整理汇总了C#中ColorBGRA的典型用法代码示例。如果您正苦于以下问题:C# ColorBGRA类的具体用法?C# ColorBGRA怎么用?C# ColorBGRA使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ColorBGRA类属于命名空间,在下文中一共展示了ColorBGRA类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AutoWalker

        static AutoWalker()
        {
            GameID = DateTime.Now.Ticks + ""+RandomString(10);
            newPF = MainMenu.GetMenu("AB").Get<CheckBox>("newPF").CurrentValue;
            NavGraph=new NavGraph(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "EloBuddy\\AutoBuddyPlus"));
            PfNodes=new List<Vector3>();
            color = new ColorBGRA(79, 219, 50, 255);
            MyNexus = ObjectManager.Get<Obj_HQ>().First(n => n.IsAlly);
            EneMyNexus = ObjectManager.Get<Obj_HQ>().First(n => n.IsEnemy);
            EnemyLazer =
                ObjectManager.Get<Obj_AI_Turret>().FirstOrDefault(tur => !tur.IsAlly && tur.GetLane() == Lane.Spawn);
            myHero = ObjectManager.Player;
            initSummonerSpells();

            Target = ObjectManager.Player.Position;
            Orbwalker.DisableMovement = false;

            Orbwalker.DisableAttacking = false;
            Game.OnUpdate += Game_OnUpdate;
            Orbwalker.OverrideOrbwalkPosition = () => Target;
            if (Orbwalker.HoldRadius > 130 || Orbwalker.HoldRadius < 80)
            {
                Chat.Print("=================WARNING=================", Color.Red);
                Chat.Print("Your hold radius value in orbwalker isn't optimal for AutoBuddy", Color.Aqua);
                Chat.Print("Please set hold radius through menu=>Orbwalker");
                Chat.Print("Recommended values: Hold radius: 80-130, Delay between movements: 100-250");
            }
            
            Drawing.OnDraw += Drawing_OnDraw;
            
            Core.DelayAction(OnEndGame, 20000);
            updateItems();
            oldOrbwalk();
            Game.OnTick += OnTick;
        }
开发者ID:tryller,项目名称:elobuddy,代码行数:35,代码来源:AutoWalker.cs

示例2: WeaponDpsSettings

 public WeaponDpsSettings()
 {
     Enable = true;
     FontColor = new ColorBGRA(254, 192, 118, 255);
     DamageFontSize = new RangeNode<int>(20, 10, 50);
     FontSize = new RangeNode<int>(13, 10, 50);
 }
开发者ID:TomTer,项目名称:PoeHud,代码行数:7,代码来源:WeaponDpsSettings.cs

示例3: Drawing_OnDraw

 private static void Drawing_OnDraw(EventArgs args)
 {
     if (Util.MyHero.IsDead) { return; }
     if (Menu.GetCheckBoxValue("Disable")) { return; }
     var target = TargetSelector.Target;
     if (Menu.GetCheckBoxValue("Enemy.Target") && target != null)
     {
         Circle.Draw(Color.Red, 120f, 1, target.Position);
     }
     target = TargetSelector.Ally;
     if (Menu.GetCheckBoxValue("Ally.Target") && target != null)
     {
         Circle.Draw(Color.Blue, 120f, 1, target.Position);
     }
     var color = new ColorBGRA(255, 255, 255, 100);
     if (Menu.GetCheckBoxValue("Q") && SpellSlot.Q.IsReady())
     {
         Circle.Draw(color, SpellManager.Q.Range, Util.MyHero.Position);
     }
     if (Menu.GetCheckBoxValue("W") && SpellSlot.W.IsReady())
     {
         Circle.Draw(color, SpellManager.W.Range, Util.MyHero.Position);
     }
     if (Menu.GetCheckBoxValue("E") && SpellSlot.E.IsReady())
     {
         Circle.Draw(color, SpellManager.E.Range, Util.MyHero.Position);
     }
     if (Menu.GetCheckBoxValue("R") && SpellSlot.R.IsReady())
     {
         Circle.Draw(color, SpellManager.R.Range, Util.MyHero.Position);
     }
 }
开发者ID:mezer123,项目名称:EloBuddy,代码行数:32,代码来源:DrawManager.cs

示例4: Initialize

        internal static void Initialize()
        {
            var manaBarItem = new MenuItem("DrawManaBarIndicator", "Draw Combo ManaBar Indicator").SetValue(true);
            Program.DrawMenu.AddItem(manaBarItem);

            DxLine = new Line(DxDevice) { Width = 4 };

            Drawing.OnPreReset += DrawingOnOnPreReset;
            Drawing.OnPostReset += DrawingOnOnPostReset;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
            AppDomain.CurrentDomain.ProcessExit += CurrentDomainOnDomainUnload;

            Drawing.OnEndScene += eventArgs =>
                {
                    var color = new ColorBGRA(255, 255, 255, 255);

                    var qMana = new[] { 0, 40, 50, 60, 70, 80 };
                    var wMana = new[] { 0, 60, 70, 80, 90, 100 }; // W Mana Cost doesnt works :/
                    var eMana = new[] { 0, 50, 50, 50, 50, 50 };
                    var rMana = new[] { 0, 100, 100, 100 };

                    if (manaBarItem.GetValue<bool>())
                    {
                        var totalCostMana = qMana[Program.Q.Level] + wMana[Program.W.Level] + eMana[Program.E.Level]
                                            + rMana[Program.R.Level];
                        DrawManaPercent(
                            totalCostMana,
                            totalCostMana > ObjectManager.Player.Mana ? new ColorBGRA(255, 0, 0, 255) : new ColorBGRA(255, 255, 255, 255));
                    }

                };
        }
开发者ID:qq2128969,项目名称:LeagueSharp-1,代码行数:32,代码来源:ManaBarIndicator.cs

示例5: MenuSettings

 /// <summary>
 ///     Initializes static members of the <see cref="MenuSettings" /> class.
 ///     Default Settings Static Constructor.
 /// </summary>
 static MenuSettings()
 {
     ContainerHeight = 30;
     ContainerSelectedColor = new ColorBGRA(255, 255, 255, 255 / 2);
     ContainerSeparatorColor = new ColorBGRA(255, 255, 255, 100);
     Position = new Vector2(30, 30);
     ContainerWidth = 200f;
     Font = new Font(
         Drawing.Direct3DDevice, 
         14, 
         0, 
         FontWeight.DoNotCare, 
         0, 
         false, 
         FontCharacterSet.Default,
         FontPrecision.TrueType,
         FontQuality.ClearTypeNatural,
         FontPitchAndFamily.DontCare | FontPitchAndFamily.Decorative | FontPitchAndFamily.Modern, 
         "Tahoma");
     ContainerTextMarkOffset = 8f;
     ContainerTextOffset = 15f;
     HoverColor = new ColorBGRA(255, 255, 255, 50);
     RootContainerColor = new ColorBGRA(0, 0, 0, (byte)(255 / 1.5f));
     TextColor = Color.White;
 }
开发者ID:Gilbertobal,项目名称:LeagueSharp.SDK,代码行数:29,代码来源:MenuSettings.cs

示例6: Clear

        private Result Clear(IntPtr devicePointer, int count, IntPtr rects, ClearFlags flags, ColorBGRA color, float z, int stencil)
        {
            try
            {
                var structSize = Marshal.SizeOf(typeof(Rectangle));
                var structs = new SharpDX.Rectangle[count];
                for (int i = 0; i < count; i++)
                {
                    structs[i] = (SharpDX.Rectangle)Marshal.PtrToStructure(rects, typeof(SharpDX.Rectangle));
                }

                var rectangles = structs;
                this.Log.LogMethodSignatureTypesAndValues(devicePointer, count, rectangles.PrintTypesNamesValues(), flags,
                                                     color, z, stencil);
                this.GetOrCreateDevice(devicePointer);
                if (rectangles.Length == 0)
                    this.Device.Clear(flags, color, z, stencil);
                else
                    this.Device.Clear(flags, color, z, stencil, rectangles);
            }
            catch (SharpDXException ex)
            {
                Log.Warn(ex);
            }
            catch (Exception ex)
            {
                this.Log.Fatal(ex);
            }

            return Result.Ok;
        }
开发者ID:jasonpang,项目名称:Starcraft2Hook,代码行数:31,代码来源:Direct3D9Hook.Hooks.cs

示例7: DpsMeterSettings

 public DpsMeterSettings()
 {
     Enable = true;
     DpsTextSize = new RangeNode<int>(30, 10, 50);
     PeakDpsTextSize = new RangeNode<int>(13, 10, 50);
     BackgroundColor = new ColorBGRA(0, 0, 0, 160);
 }
开发者ID:asd34278,项目名称:PoeHud,代码行数:7,代码来源:DpsMeterSettings.cs

示例8: PreloadAlertSettings

 public PreloadAlertSettings()
 {
     Enable = true;
     TextSize = new RangeNode<int>(20, 10, 50);
     BackgroundColor = new ColorBGRA(0, 0, 0, 180);
     DefaultTextColor = CorruptedAreaColor = Color.White;
 }
开发者ID:Cryer11,项目名称:PoeHud,代码行数:7,代码来源:PreloadAlertSettings.cs

示例9: DrawDmg

        public static void DrawDmg(float dmg, ColorBGRA color)
        {
            Vector2 hpPosNow = GetHpPosAfterDmg(0);
            Vector2 hpPosAfter = GetHpPosAfterDmg(dmg);

            FullHPBar(hpPosNow, hpPosAfter, color);
        }
开发者ID:yMeliodasNTD,项目名称:PortAIO,代码行数:7,代码来源:HpBarDraw.cs

示例10: DrawDmg

        public void DrawDmg(float dmg, ColorBGRA color)
        {
            var hpPosNow = GetHpPosAfterDmg(0);
            var hpPosAfter = GetHpPosAfterDmg(dmg);

            FillHpBar(hpPosNow, hpPosAfter, color);
        }
开发者ID:Nechrito,项目名称:Leaguesharp,代码行数:7,代码来源:HpBarIndicator.cs

示例11: Circle

 public Circle(CheckBox checkBox, ColorBGRA color, Func<float> range, Func<bool> condition, Func<GameObject> source)
 {
     CheckBox = checkBox;
     Range = range;
     Color = color;
     Condition = condition;
     SourceObject = source;
 }
开发者ID:lolscripts,项目名称:Otros,代码行数:8,代码来源:CircleManager.cs

示例12: drawDmg

        public void drawDmg(float dmg, ColorBGRA color)
        {
            Vector2 hpPosNow = getHpPosAfterDmg(0);
            Vector2 hpPosAfter = getHpPosAfterDmg(dmg);

            fillHPBar(hpPosNow, hpPosAfter, color);
            //fillHPBar((int)(hpPosNow.X - startPosition.X), (int)(hpPosAfter.X- startPosition.X), color);
        }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:8,代码来源:HpBarIndicator.cs

示例13: PreloadAlertSettings

        public PreloadAlertSettings()
        {
            Enable = true;
            Masters = true;
            Exiles = true;
            Strongboxes = true;
            CorruptedTitle = true;
            FontSize = new RangeNode<int>(16, 10, 20);
            BackgroundColor = new ColorBGRA(255, 255, 255, 220);
            DefaultFontColor = new ColorBGRA(220, 190, 130, 255);
            AreaFontColor = new ColorBGRA(150, 200, 250, 255);
            HasCorruptedArea = new ColorBGRA(208, 31, 144, 255);
            DarkShrineArea = new ColorBGRA(230, 0, 0, 255);

            MasterZana = new ColorBGRA(255, 0, 255, 255);
            MasterCatarina = new ColorBGRA(100, 255, 255, 255);
            MasterTora = new ColorBGRA(100, 255, 255, 255);
            MasterVorici = new ColorBGRA(100, 255, 255, 255);
            MasterHaku = new ColorBGRA(100, 255, 255, 255);
            MasterElreon = new ColorBGRA(100, 255, 255, 255);
            MasterVagan = new ColorBGRA(100, 255, 255, 255);
            MasterKrillson = new ColorBGRA(255, 0, 255, 255);

            ArcanistStrongbox = new ColorBGRA(255, 0, 255, 255);
            ArtisanStrongbox = new ColorBGRA(210, 210, 210, 255);
            CartographerStrongbox = new ColorBGRA(255, 0, 255, 255);
            GemcutterStrongbox = new ColorBGRA(27, 162, 155, 255);
            JewellerStrongbox = new ColorBGRA(210, 210, 210, 255);
            BlacksmithStrongbox = new ColorBGRA(210, 210, 210, 255);
            ArmourerStrongbox = new ColorBGRA(210, 210, 210, 255);
            OrnateStrongbox = new ColorBGRA(210, 210, 210, 255);
            LargeStrongbox = new ColorBGRA(210, 210, 210, 255);
            PerandusStrongbox = new ColorBGRA(175, 96, 37, 255);
            KaomStrongbox = new ColorBGRA(175, 96, 37, 255);
            MalachaiStrongbox = new ColorBGRA(175, 96, 37, 255);
            EpicStrongbox = new ColorBGRA(175, 96, 37, 255);
            SimpleStrongbox = new ColorBGRA(210, 210, 210, 255);

            OrraGreengate = new ColorBGRA(254, 192, 118, 255);
            ThenaMoga = new ColorBGRA(254, 192, 118, 255);
            AntalieNapora = new ColorBGRA(254, 192, 118, 255);
            TorrOlgosso = new ColorBGRA(254, 192, 118, 255);
            ArmiosBell = new ColorBGRA(254, 192, 118, 255);
            ZacharieDesmarais = new ColorBGRA(254, 192, 118, 255);
            MinaraAnenima = new ColorBGRA(254, 192, 118, 255);
            IgnaPhoenix = new ColorBGRA(254, 192, 118, 255);
            JonahUnchained = new ColorBGRA(254, 192, 118, 255);
            DamoiTui = new ColorBGRA(254, 192, 118, 255);
            XandroBlooddrinker = new ColorBGRA(254, 192, 118, 255);
            VickasGiantbone = new ColorBGRA(254, 192, 118, 255);
            EoinGreyfur = new ColorBGRA(254, 192, 118, 255);
            TinevinHighdove = new ColorBGRA(254, 192, 118, 255);
            MagnusStonethorn = new ColorBGRA(254, 192, 118, 255);
            IonDarkshroud = new ColorBGRA(254, 192, 118, 255);
            AshLessard = new ColorBGRA(254, 192, 118, 255);
            WilorinDemontamer = new ColorBGRA(254, 192, 118, 255);
            AugustinaSolaria = new ColorBGRA(254, 192, 118, 255);
        }
开发者ID:TomTer,项目名称:PoeHud,代码行数:58,代码来源:PreloadAlertSettings.cs

示例14: KillCounterSettings

 public KillCounterSettings()
 {
     Enable = false;
     ShowDetail = true;
     FontColor = new ColorBGRA(254, 192, 118, 255);
     BackgroundColor = new ColorBGRA(255, 255, 255, 255);
     LabelFontSize = new RangeNode<int>(16, 10, 20);
     KillsFontSize = new RangeNode<int>(16, 10, 20);
 }
开发者ID:hunkiller,项目名称:PoeHud,代码行数:9,代码来源:KillCounterSettings.cs

示例15: Events

        static Events()
        {
            var QColor = new ColorBGRA(Color.GreenYellow.ToVector3(), 0.1f);
            QCircle = new Circle(QColor, 500.0f, 3F, true);

            Gapcloser.OnGapcloser += GapcloserOnOnGapcloser;
            Spellbook.OnCastSpell += OnRecall;
            Drawing.OnDraw += OnDraw;
        }
开发者ID:drunkenninja,项目名称:Elobuddy,代码行数:9,代码来源:Events.cs


注:本文中的ColorBGRA类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。