예제 #1
0
        private static void DrawBuffs()
        {
            var drawBuffs = MenuLocal.Item(GetPcModeStringValue + "DrawBuffs").GetValue <StringList>().SelectedIndex;

            if ((drawBuffs == 1 | drawBuffs == 3) && ObjectManager.Player.HasBlueBuff())
            {
                if (BlueBuff.EndTime >= Game.Time)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), 190f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 190f, Game.Time - BlueBuff.StartTime, BlueBuff.EndTime - BlueBuff.StartTime).ToPolygon();
                    circle.Draw(Color.DarkBlue, 4);
                    //   Drawing.DrawCircle(ObjectManager.Player.Position, 150f, System.Drawing.Color.DarkBlue);
                }
            }

            if ((drawBuffs == 2 || drawBuffs == 3) && ObjectManager.Player.HasRedBuff())
            {
                if (RedBuff.EndTime >= Game.Time)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), 160f, Game.Time - RedBuff.StartTime, RedBuff.EndTime - RedBuff.StartTime).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 160f, Game.Time - RedBuff.StartTime, RedBuff.EndTime - RedBuff.StartTime).ToPolygon();
                    circle.Draw(Color.DarkRed, 4);
                    //Drawing.DrawCircle(ObjectManager.Player.Position, 130f, System.Drawing.Color.IndianRed);
                }
            }
        }
예제 #2
0
        private static void DrawHorror()
        {
            //foreach (var obj in ObjectManager.Get<Obj_AI_Base>().Where(o => !o.IsDead))
            //{
            //    if (obj.IsValidTarget(E.Range) && MenuLocal.Item(GetPcModeStringValue + "DrawEStatus").GetValue<StringList>().SelectedIndex == 1 & obj.HasNocturneUnspeakableHorror())
            //    {
            //        if (NocturneUnspeakableHorror.EndTime >= Game.Time)
            //        {
            //            var circle =
            //                new CommonGeometry.Circle2(obj.Position.To2D(), 180f,
            //                    Game.Time*100 - NocturneUnspeakableHorror.StartTime*100,
            //                    NocturneUnspeakableHorror.EndTime*100 - NocturneUnspeakableHorror.StartTime*100)
            //                    .ToPolygon();
            //            circle.Draw(Color.Red, 5);
            //            // Drawing.DrawCircle(ObjectManager.Player.Position, 180f, System.Drawing.Color.LightCoral);
            //        }
            //    }

            //}
            var t = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Physical);

            if (t.IsValidTarget() && MenuLocal.Item(GetPcModeStringValue + "DrawEStatus").GetValue <StringList>().SelectedIndex == 1 & t.HasNocturneUnspeakableHorror())
            {
                if (NocturneUnspeakableHorror.EndTime >= Game.Time)
                {
                    var circle = new CommonGeometry.Circle2(t.Position.To2D(), 180f, Game.Time * 100 - NocturneUnspeakableHorror.StartTime * 100, NocturneUnspeakableHorror.EndTime * 100 - NocturneUnspeakableHorror.StartTime * 100).ToPolygon();
                    circle.Draw(Color.Red, 3);
                    // Drawing.DrawCircle(ObjectManager.Player.Position, 180f, System.Drawing.Color.LightCoral);
                }
            }
        }
예제 #3
0
        private static void DrawRStatus()
        {
            if (MenuLocal.Item(GetPcModeStringValue + "DrawRStatus").GetValue <StringList>().SelectedIndex == 1 && ObjectManager.Player.HasNocturneParanoia())
            {
                if (NocturneParanoia.EndTime >= Game.Time)
                {
                    var circle1 = new CommonGeometry.Circle2(new Vector2(ObjectManager.Player.Position.X + 3, ObjectManager.Player.Position.Y - 3), 220f, Game.Time * 100 - NocturneParanoia.StartTime * 100, NocturneParanoia.EndTime * 100 - NocturneParanoia.StartTime * 100).ToPolygon();
                    circle1.Draw(Color.Black, 4);

                    var circle = new CommonGeometry.Circle2(ObjectManager.Player.Position.To2D(), 220f, Game.Time * 100 - NocturneParanoia.StartTime * 100, NocturneParanoia.EndTime * 100 - NocturneParanoia.StartTime * 100).ToPolygon();
                    circle.Draw(Color.DarkOrange, 4);
                    // Drawing.DrawCircle(ObjectManager.Player.Position, 180f, System.Drawing.Color.LightCoral);
                }
            }
        }