예제 #1
0
 private void LoadFontGraphicEditor()
 {
     if (fontGraphicEditor == null)
     {
         fontGraphicEditor = new GraphicEditor(new Function(FontGraphicUpdate),
                                               font[currentFontChar], paletteSet, paletteRow, paletteCol, 0x10);
         fontGraphicEditor.SetWidth(font[currentFontChar].Width, font[currentFontChar].Height,
                                    font[currentFontChar].MaxWidth / 8, font[currentFontChar].Height / 8);
         fontGraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
         fontGraphicEditor.DockToPanel(panelCharacter, true, false);
         fontGraphicEditor.ZoomIn();
     }
     else
     {
         fontGraphicEditor.Reload(new Function(FontGraphicUpdate),
                                  font[currentFontChar], paletteSet, paletteRow, paletteCol, 0x10);
         fontGraphicEditor.SetWidth(font[currentFontChar].Width, font[currentFontChar].Height,
                                    font[currentFontChar].MaxWidth / 8, font[currentFontChar].Height / 8);
     }
 }