Skip to content

Commit

Permalink
Merge pull request #5 from GreenJamesDev/0.4.0.0
Browse files Browse the repository at this point in the history
0.4.0.0
  • Loading branch information
GreenJamesDev authored Jul 9, 2021
2 parents ebe0ddc + 3a8b2ac commit 1e4098c
Show file tree
Hide file tree
Showing 18 changed files with 2,172 additions and 990 deletions.
60 changes: 60 additions & 0 deletions RsMapper/Components.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,66 @@
"info": "Emits a redstone signal when struck by lightning.",
"acceptswire": "no"

},

{

"name": "Straight Rail",
"type": "Misc",
"image": "\\Imgs\\nrail_straight.png",
"info": "A normal rail.",
"acceptswire": "no"

},

{

"name": "Curved Rail",
"type": "Misc",
"image": "\\Imgs\\nrail_bend.png",
"info": "A normal rail.",
"acceptswire": "no"

},

{

"name": "Powered Rail",
"type": "Output",
"image": "\\Imgs\\prail.png",
"info": "A rail that increases or decreases the speed of minecarts.",
"acceptswire": "no"

},

{

"name": "Activator Rail",
"type": "Output",
"image": "\\Imgs\\arail.png",
"info": "Ejects entities from minecarts, primes TNT minecarts, disables hopper minecarts, and activates command block minecarts.",
"acceptswire": "no"

},

{

"name": "Detector Rail",
"type": "Input",
"image": "\\Imgs\\drail.png",
"info": "Emits a signal when a minecart is on it.",
"acceptswire": "no"

},

{

"name": "Slime Block",
"type": "Misc",
"image": "\\Imgs\\slime_block.png",
"info": "Moves adjacent blocks when pushed or pulled by a piston.",
"acceptswire": "no"

}
]
}
34 changes: 16 additions & 18 deletions RsMapper/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 37 additions & 23 deletions RsMapper/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,6 @@ public void UnsavedChangesExit()
CancelFormExit = false;
UnsavedDialog unsavedDialog = new UnsavedDialog();

unsavedDialog.Disposed += unsavedDialog_Disposed;

// If there are unsaved changes, show a confirmation dialog and
// handle the result accordingly.
if (unsavedChanges == true)
Expand Down Expand Up @@ -417,19 +415,6 @@ private void Form1_FormClosing(object sender, FormClosingEventArgs e)

}

private void unsavedDialog_Disposed(object sender, EventArgs e)
{

}

protected void panel1_Paint(object sender, PaintEventArgs e)
{



}



private void documentationToolStripMenuItem_Click(object sender, EventArgs e)
{
Expand Down Expand Up @@ -466,17 +451,46 @@ private void panel1_MouseDown(object sender, MouseEventArgs e)

// If the component is a command block, show the set command
// dialog and give the command block the command.
if (listvi.Text == "Command Block")
CommandEnter ce;
switch (listvi.Text)
{

CommandEnter ce = new CommandEnter();

if (ce.ShowDialog() == DialogResult.OK)
{
case "Command Block":
ce = new CommandEnter("Enter Command");

picb.ComponentTag = ce.Command;
}
}
if (ce.ShowDialog() == DialogResult.OK)
{

picb.ComponentTag = ce.Command;
}
ce.Dispose();
break;
case "Dropper":
ce = new CommandEnter("Enter Dropper Contents");

if (ce.ShowDialog() == DialogResult.OK)
{

picb.ComponentTag = ce.Command;
}
ce.Dispose();
break;
case "Dispenser":
ce = new CommandEnter("Enter Dispenser Contents");

if (ce.ShowDialog() == DialogResult.OK)
{

picb.ComponentTag = ce.Command;
}
ce.Dispose();
break;
default:

break;

}

// Set rect location to a grid location.
rect.Location = p;
Expand Down Expand Up @@ -526,7 +540,7 @@ private void panel1_MouseDown(object sender, MouseEventArgs e)

Rectangle rect = new Rectangle();

Image src = Rotate(compImg);
Image src = compImg;

Graphics graphics = Graphics.FromImage(src);
graphics.InterpolationMode = InterpolationMode.NearestNeighbor;
Expand Down
Loading

0 comments on commit 1e4098c

Please sign in to comment.