Compare commits
6 Commits
v1.5
...
c5e440ee44
Author | SHA1 | Date | |
---|---|---|---|
|
c5e440ee44 | ||
|
34bec25b3d | ||
|
b1acbdd98f | ||
|
6d5f90aaac | ||
72ad6e5be0 | |||
9d1ca65f34 |
@@ -51,7 +51,7 @@ namespace McBitFont {
|
|||||||
public bool monospaced = false;
|
public bool monospaced = false;
|
||||||
bool modified = false;
|
bool modified = false;
|
||||||
bool prjModified = false;
|
bool prjModified = false;
|
||||||
public const string version = "1.4";
|
public const string version = "1.6";
|
||||||
public string prjName = "Untitled";
|
public string prjName = "Untitled";
|
||||||
public int codepage = 1251;
|
public int codepage = 1251;
|
||||||
private FrameMiniature fbuf;
|
private FrameMiniature fbuf;
|
||||||
@@ -89,6 +89,11 @@ namespace McBitFont {
|
|||||||
this.Text = "McBitFont " + version + " - " + prjName;
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
|
|
||||||
fbuf = new FrameMiniature(0, dotWidth, dotHeight);
|
fbuf = new FrameMiniature(0, dotWidth, dotHeight);
|
||||||
|
|
||||||
|
// Chek for arguments
|
||||||
|
if (Environment.GetCommandLineArgs().Length > 1) {
|
||||||
|
loadProject(Environment.GetCommandLineArgs()[1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport("user32.dll")]
|
[DllImport("user32.dll")]
|
||||||
@@ -163,6 +168,7 @@ namespace McBitFont {
|
|||||||
ilMiniatures.Images.Add(s, (Image)bmp);
|
ilMiniatures.Images.Add(s, (Image)bmp);
|
||||||
miniList.Items[s].ImageKey = s;
|
miniList.Items[s].ImageKey = s;
|
||||||
}
|
}
|
||||||
|
if (nudY.Focused) modified = true;
|
||||||
prjModified = true;
|
prjModified = true;
|
||||||
dotResize(dotWidth, (int)nudY.Value);
|
dotResize(dotWidth, (int)nudY.Value);
|
||||||
}
|
}
|
||||||
@@ -631,6 +637,11 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void saveToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void saveToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
if (modified) {
|
||||||
|
if (MessageBox.Show("Current frame is modified.\nDo you want to apply the changes first?", "The frame was modified!", MessageBoxButtons.YesNo) == DialogResult.Yes) {
|
||||||
|
saveFrame();
|
||||||
|
}
|
||||||
|
}
|
||||||
if (dlgSave.ShowDialog() == DialogResult.OK) {
|
if (dlgSave.ShowDialog() == DialogResult.OK) {
|
||||||
SaveBlock sav;
|
SaveBlock sav;
|
||||||
sav.monospaced = monospaced;
|
sav.monospaced = monospaced;
|
||||||
@@ -648,18 +659,11 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void loadProject(string filename) {
|
||||||
if (prjModified) {
|
|
||||||
if (MessageBox.Show("The project is modified.\nDo you want to save it first?", "Project was modified!", MessageBoxButtons.YesNo) == DialogResult.Yes) {
|
|
||||||
saveToolStripMenuItem.PerformClick();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (dlgOpen.ShowDialog() == DialogResult.OK) {
|
|
||||||
SaveBlock sav;
|
SaveBlock sav;
|
||||||
BinaryFormatter formatter = new BinaryFormatter();
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
|
||||||
using (FileStream fs = File.Open(dlgOpen.FileName, FileMode.Open)) {
|
using (FileStream fs = File.Open(filename, FileMode.Open)) {
|
||||||
sav = (SaveBlock)formatter.Deserialize(fs);
|
sav = (SaveBlock)formatter.Deserialize(fs);
|
||||||
fs.Close();
|
fs.Close();
|
||||||
}
|
}
|
||||||
@@ -689,11 +693,22 @@ namespace McBitFont {
|
|||||||
modified = false;
|
modified = false;
|
||||||
prjModified = false;
|
prjModified = false;
|
||||||
|
|
||||||
prjName = Path.GetFileNameWithoutExtension(dlgOpen.FileName);
|
prjName = Path.GetFileNameWithoutExtension(filename);
|
||||||
this.Text = "McBitFont " + version + " - " + prjName;
|
this.Text = "McBitFont " + version + " - " + prjName;
|
||||||
checkForAdd();
|
checkForAdd();
|
||||||
fbuffer = false;
|
fbuffer = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void openToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
if (prjModified) {
|
||||||
|
if (MessageBox.Show("The project is modified.\nDo you want to save it first?", "Project was modified!", MessageBoxButtons.YesNo) == DialogResult.Yes) {
|
||||||
|
saveToolStripMenuItem.PerformClick();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (dlgOpen.ShowDialog() == DialogResult.OK) {
|
||||||
|
loadProject(dlgOpen.FileName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void removeSymbolToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void removeSymbolToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
|
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// Можно задать все значения или принять номера сборки и редакции по умолчанию
|
// Можно задать все значения или принять номера сборки и редакции по умолчанию
|
||||||
// используя "*", как показано ниже:
|
// используя "*", как показано ниже:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.5.0.0")]
|
[assembly: AssemblyVersion("1.6.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.5.0.0")]
|
[assembly: AssemblyFileVersion("1.6.0.0")]
|
||||||
|
23
TODO.txt
Normal file
23
TODO.txt
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
Application:
|
||||||
|
- Implement "Save" menu
|
||||||
|
|
||||||
|
Functionality:
|
||||||
|
- Context menu in symbol navigator
|
||||||
|
- Delete symbols before/after selected
|
||||||
|
- Shift all symbols on code line (change symbol codes)
|
||||||
|
- Specify starting code (extends the shift)
|
||||||
|
- "Only numbers" range in the New dialog
|
||||||
|
- "Specify range" in the New dialog
|
||||||
|
- "Single frame", "only numbers" and "specify range" as radio buttons
|
||||||
|
- Button to Clear/Fill a block
|
||||||
|
- Undo/Redo
|
||||||
|
- Image import from a file
|
||||||
|
- Import from a text array
|
||||||
|
- Copy-paste to a symbol with different size
|
||||||
|
- Rectangle selection to mass-paint, shift and mirror pixels
|
||||||
|
- Change height of variable width fonts with ability to choose which side to add pixels to
|
||||||
|
- Make it possible to have zero width chars in VarWidth fonts
|
||||||
|
- "Packed" fonts export
|
||||||
|
|
||||||
|
Bugs:
|
||||||
|
- Every char changes its width to default on VarWidth font height change!
|
Binary file not shown.
BIN
examples/haxrcorp_4089_cyrillic_altgr.mbf
Normal file
BIN
examples/haxrcorp_4089_cyrillic_altgr.mbf
Normal file
Binary file not shown.
BIN
examples/helvB08_PREFAB.mbf
Normal file
BIN
examples/helvB08_PREFAB.mbf
Normal file
Binary file not shown.
BIN
examples/helvB08_t_cyrillic.mbf
Normal file
BIN
examples/helvB08_t_cyrillic.mbf
Normal file
Binary file not shown.
Reference in New Issue
Block a user