예제 #1
0
 private void ReloadFontGraphicEditor()
 {
     if (fontGraphicEditor != null)
     {
         fontGraphicEditor.Reload(Glyphs[currentGlyph], paletteSet, paletteRow, paletteCol, 0x10);
         fontGraphicEditor.SetControlSizes(Glyphs[currentGlyph].Width, Glyphs[currentGlyph].Height,
                                           Glyphs[currentGlyph].MaxWidth / 8, Glyphs[currentGlyph].Height / 8);
     }
 }
예제 #2
0
 private void LoadFontGraphicEditor()
 {
     if (fontGraphicEditor == null)
     {
         fontGraphicEditor = new GraphicEditor(new GraphicFontUpdater(),
                                               Glyphs[currentGlyph], paletteSet, paletteRow, paletteCol, 0x10);
         fontGraphicEditor.SetControlSizes(Glyphs[currentGlyph].Width, Glyphs[currentGlyph].Height,
                                           Glyphs[currentGlyph].MaxWidth / 8, Glyphs[currentGlyph].Height / 8);
         fontGraphicEditor.Owner = this;
         fontGraphicEditor.ZoomIn();
     }
     else
     {
         ReloadFontGraphicEditor();
     }
 }