Skip to content

Commit

Permalink
File > Reload menu option.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Oct 10, 2024
1 parent cfec3bf commit 118ba9d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 21 deletions.
50 changes: 30 additions & 20 deletions BinxelviewForm.Designer.cs

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

12 changes: 11 additions & 1 deletion BinxelviewForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public partial class BinxelviewForm : Form
const int PALETTE_DIM = 128; // should match paletteBox size

byte[] data = {};
string data_path = "";
string data_file = "";
long pos_byte = 0;
int pos_bit = 0;
Expand Down Expand Up @@ -652,6 +653,7 @@ bool openFile(string path)
pos_bit = 0;
updatePos();
scrollRange();
data_path = path;
data_file = Path.GetFileName(path);
this.Text = "Binxelview (" + data_file + ")";
redrawPixels();
Expand Down Expand Up @@ -1117,6 +1119,14 @@ private void openToolStripMenuItem_Click(object sender, EventArgs e)
}
}

private void reloadFileToolStripMenuItem_Click(object sender, EventArgs e)
{
if (data_path.Length > 0)
{
openFile(data_path);
}
}

private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
Expand Down Expand Up @@ -1165,7 +1175,7 @@ private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
MessageBox.Show(about, "Binxelview");
}

private void reloadToolStripMenuItem_Click(object sender, EventArgs e)
private void reloadPresetsToolStripMenuItem_Click(object sender, EventArgs e)
{
reloadPresets();
}
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Changes
- SNES 8BPP preset. (Contributor: ButThouMust)
- Maximum file size increased from 256MB to 2GB.
- Right click context menu option to move position to the selected pixel.
- File menu reload option.

1.5.0.0 (2020-07-31)
- Twiddle option for inspecting textures stored with morton ordering of pixels.
Expand Down

0 comments on commit 118ba9d

Please sign in to comment.