diff --git a/Plugins/RSBot.Map/Views/Main.Designer.cs b/Plugins/RSBot.Map/Views/Main.Designer.cs index 8921fd95..eb4a8594 100644 --- a/Plugins/RSBot.Map/Views/Main.Designer.cs +++ b/Plugins/RSBot.Map/Views/Main.Designer.cs @@ -147,12 +147,15 @@ private void InitializeComponent() "All"}); this.comboViewType.Location = new System.Drawing.Point(392, 17); this.comboViewType.Name = "comboViewType"; + this.comboViewType.Radius = 5; + this.comboViewType.ShadowDepth = 4F; this.comboViewType.Size = new System.Drawing.Size(180, 23); this.comboViewType.TabIndex = 10; // // trmInterval // this.trmInterval.Enabled = true; + this.trmInterval.Interval = 50; this.trmInterval.Tick += new System.EventHandler(this.trmInterval_Tick); // // labelSectorInfo @@ -205,12 +208,13 @@ private void InitializeComponent() // this.checkBoxAutoSelectUniques.AutoSize = true; this.checkBoxAutoSelectUniques.BackColor = System.Drawing.Color.Transparent; - this.checkBoxAutoSelectUniques.Checked = false; this.checkBoxAutoSelectUniques.Location = new System.Drawing.Point(35, 374); this.checkBoxAutoSelectUniques.Name = "checkBoxAutoSelectUniques"; + this.checkBoxAutoSelectUniques.ShadowDepth = 1; this.checkBoxAutoSelectUniques.Size = new System.Drawing.Size(175, 15); this.checkBoxAutoSelectUniques.TabIndex = 17; this.checkBoxAutoSelectUniques.Text = "Automatically select uniques"; + this.checkBoxAutoSelectUniques.UseVisualStyleBackColor = false; this.checkBoxAutoSelectUniques.CheckedChanged += new System.EventHandler(this.checkBoxAutoSelectUniques_CheckedChanged); // // label3 diff --git a/Plugins/RSBot.Map/Views/Main.cs b/Plugins/RSBot.Map/Views/Main.cs index ca584499..73142c38 100644 --- a/Plugins/RSBot.Map/Views/Main.cs +++ b/Plugins/RSBot.Map/Views/Main.cs @@ -10,7 +10,6 @@ using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; -using System.Threading.Tasks; using System.Windows.Forms; namespace RSBot.Map.Views @@ -140,7 +139,7 @@ private void DrawPointAt(Graphics gfx, Position position, int entityIndex) if (entityIndex == 0) { - gfx.DrawImage(RotateImage(img, Geometry.RadianToDegree(Game.Player.Movement.Angle)), + gfx.DrawImage(RotateImage(img, Geometry.RadianToDegree(Game.Player.Movement.Angle)), x - img.Width / 2, y - img.Height / 2); } @@ -351,7 +350,7 @@ private Image LoadSectorImage(int xSec, int ySec) _cachedImages.Add(sectorImgName, img); return (Image)img.Clone(); } - + return new Bitmap(SectorSize, SectorSize); } @@ -388,7 +387,7 @@ private void RedrawMap() #if DEBUG var pen = new Pen(Color.Black); - pen.DashStyle = DashStyle.Dot; + pen.DashStyle = DashStyle.Dot; gfx.DrawRectangle(pen, new Rectangle(pos, new Size(SectorSize, SectorSize))); #endif bitmap.Dispose(); @@ -448,8 +447,8 @@ private void trmInterval_Tick(object sender, EventArgs e) lblRegion.Text = Game.ReferenceManager.GetTranslation(Game.Player.Movement.Source.RegionID.ToString()); - lblX.Text = Game.Player.Movement.Source.XCoordinate.ToString("0.00"); - lblY.Text = Game.Player.Movement.Source.YCoordinate.ToString("0.00"); + lblX.Text = Game.Player.Movement.Source.XCoordinate.ToString("0.0"); + lblY.Text = Game.Player.Movement.Source.YCoordinate.ToString("0.0"); #if DEBUG labelSectorInfo.Text = $"{Game.Player.Movement.Source.RegionID} ({Game.Player.Movement.Source.XSector}x{Game.Player.Movement.Source.YSector})";