Skip to content

Commit

Permalink
Some small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
capashaa committed Dec 26, 2024
1 parent 00731af commit c290c57
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.1.0
Fixed: Npc didn't use correct messages when placed.
Fixed: Save as, ended with error.
Fixed: Now possible to cancel Middle circle.
Fixed: Paint on Minimap use the current selected pen blockid.

## 2.0.9

Added: Nord theme as dark theme.
Expand Down
1 change: 0 additions & 1 deletion EEditor/Frame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ public void SaveLVL(FileStream file)
}
else
{
if (File.Exists(file.Name)) File.Delete(file.Name);
savelvl.Save(file);
file.Dispose();
}
Expand Down
5 changes: 3 additions & 2 deletions EEditor/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4861,11 +4861,12 @@ private void circleSizeButton_Click(object sender, EventArgs e)
{
editArea.Tool.CleanUp(false);
ToolCircleSize toolCircleMiddle = new ToolCircleSize();
if (MessageBox.Show("Circle around border?", "Circle Middle", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
DialogResult yesno = MessageBox.Show("Yes = Circle around border, No = Circle on border", "Circle Middle", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
if (yesno == DialogResult.Yes)
{
toolCircleMiddle.CircleSize(new Point(0, 0), new Point(editArea.BlockWidth - 1, editArea.BlockHeight - 1), selectedBrick.ID);
}
else
else if (yesno == DialogResult.No)
{
toolCircleMiddle.CircleSize(new Point(1, 1), new Point(editArea.BlockWidth - 2, editArea.BlockHeight - 2), selectedBrick.ID);
}
Expand Down
4 changes: 3 additions & 1 deletion EEditor/Minimap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public partial class Minimap : UserControl
{
public int BlockWidth { get; set; }
public int BlockHeight { get; set; }


public static Bitmap Bitmap { get; set; }
public static uint[] Colors = new uint[3000];
public static bool[] ImageColor = new bool[Colors.Length];
Expand Down Expand Up @@ -103,7 +105,7 @@ void DrawLine(System.Drawing.Point P, System.Drawing.Point Q)
for (int i = 0; i < xs.Count; ++i)
{
SetPixel(xs[i], ys[i], 9);
MainForm.editArea.Frames[0].Foreground[ys[i], xs[i]] = 9;
MainForm.editArea.Frames[0].Foreground[ys[i], xs[i]] = MainForm.editArea.Tool.PenID;
MainForm.editArea.Draw(xs[i], ys[i], Graphics.FromImage(MainForm.editArea.Back), MainForm.userdata.thisColor);
r.X = xs[i];
r.Y = ys[i];
Expand Down
4 changes: 2 additions & 2 deletions EEditor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0.9")]
[assembly: AssemblyFileVersion("2.0.0.9")]
[assembly: AssemblyVersion("2.1.0")]
[assembly: AssemblyFileVersion("2.1.0")]
4 changes: 2 additions & 2 deletions EEditor/ToolPen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private void PlaceBrick(int x, int y, bool button, bool useincfg, bool mousedown
{
if (editArea.Tool.NPCtempMessage1 != null) { editArea.CurFrame.BlockData4[y, x] = editArea.Tool.NPCtempMessage1; }
else { editArea.CurFrame.BlockData4[y, x] = "Welcome"; }
if (editArea.Tool.NPCtempMessage2 != null) { editArea.CurFrame.BlockData5[y, x] = editArea.Tool.NPCtempMessage3; }
if (editArea.Tool.NPCtempMessage2 != null) { editArea.CurFrame.BlockData5[y, x] = editArea.Tool.NPCtempMessage2; }
else { editArea.CurFrame.BlockData5[y, x] = "To"; }
if (editArea.Tool.NPCtempMessage3 != null) { editArea.CurFrame.BlockData6[y, x] = editArea.Tool.NPCtempMessage3; }
else { editArea.CurFrame.BlockData6[y, x] = "My World!"; }
Expand All @@ -429,7 +429,7 @@ private void PlaceBrick(int x, int y, bool button, bool useincfg, bool mousedown
{
if (editArea.Tool.NPCtempMessage1 != null) { editArea.CurFrame.BlockData4[y, x] = editArea.Tool.NPCtempMessage1; }
else { editArea.CurFrame.BlockData4[y, x] = "Welcome"; }
if (editArea.Tool.NPCtempMessage2 != null) { editArea.CurFrame.BlockData5[y, x] = editArea.Tool.NPCtempMessage3; }
if (editArea.Tool.NPCtempMessage2 != null) { editArea.CurFrame.BlockData5[y, x] = editArea.Tool.NPCtempMessage2; }
else { editArea.CurFrame.BlockData5[y, x] = "To"; }
if (editArea.Tool.NPCtempMessage3 != null) { editArea.CurFrame.BlockData6[y, x] = editArea.Tool.NPCtempMessage3; }
else { editArea.CurFrame.BlockData6[y, x] = "My World!"; }
Expand Down

0 comments on commit c290c57

Please sign in to comment.