From 6cbc20626049de3a8b40fc786ff88b69999b8b95 Mon Sep 17 00:00:00 2001 From: Anton Mukhin Date: Tue, 8 Jul 2025 10:10:35 +0300 Subject: [PATCH] TODO feature: Show note field in Export comments --- McBitFont/Export.cs | 5 ++++- TODO.txt | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/McBitFont/Export.cs b/McBitFont/Export.cs index 9bd7b4c..338ad2c 100644 --- a/McBitFont/Export.cs +++ b/McBitFont/Export.cs @@ -233,7 +233,9 @@ namespace McBitFont { if (com && lines != 1 && fcount > 1) { // Comments enabled and other than "1 symbol per line" selected // Print a symbol comment before its data - output += " // " + f.code.ToString() + " --> " + mainForm.DecodeSymbol(f.code) + "\n"; + output += " // " + f.code.ToString() + " --> " + mainForm.DecodeSymbol(f.code); + if (f.note != "" && f.note != null) output += " (" + f.note.ToString() + ")"; + output += "\n"; } if (lines == 1) { // "1 symbol per line" - new line offset @@ -370,6 +372,7 @@ namespace McBitFont { if (com && fcount > 1) { //...with a comment output += " // " + f.code.ToString() + " --> " + mainForm.DecodeSymbol(f.code); + if (f.note != "" && f.note != null) output += " (" + f.note.ToString() + ")"; } output += "\n"; } diff --git a/TODO.txt b/TODO.txt index 71ea186..d4ed246 100644 --- a/TODO.txt +++ b/TODO.txt @@ -2,9 +2,7 @@ Application: - Consider migrating to WPF in order to make DPI aware UI Functionality: -V Screensot a frame function -V Frame note field to store a frame description -- Show note field in Export comments +V Show note field in Export comments Bugs: