Пример #1
0
 private void ReloadSpriteGraphicEditor()
 {
     if (spriteGraphicEditor != null)
     {
         spriteGraphicEditor.Reload(Model.ObjectGraphics, Model.ObjectGraphics.Length, 0, Model.ObjectPaletteSet, 0, 0x20);
     }
 }
Пример #2
0
 private void ReloadGraphicEditor()
 {
     if (GraphicEditor != null)
     {
         GraphicEditor.Reload(Tileset.Graphics, Tileset.Graphics.Length, 0, PaletteSet, 0, 0x20);
     }
 }
Пример #3
0
 private void ReloadMenuGraphicEditor()
 {
     if (menuGraphicEditor != null)
     {
         menuGraphicEditor.Reload(Model.Graphics_BattleMenu, Model.Graphics_BattleMenu.Length, 0, Model.Palette_BattleMenu, 0, 0x20);
     }
 }
Пример #4
0
 private void ReloadGraphicEditor()
 {
     if (graphicEditor != null)
     {
         graphicEditor.Reload(graphics, graphics.Length, 0, PaletteSet, 0, 0x20, 1);
     }
 }
Пример #5
0
 private void ReloadNumeralGraphicEditor()
 {
     if (numeralGraphicEditor != null)
     {
         numeralGraphicEditor.Reload(Model.Graphics_Numerals, Model.Graphics_Numerals.Length, 0, Model.Palette_Numerals, 0, 0x20);
     }
 }
Пример #6
0
 private void ReloadGraphicEditor()
 {
     if (graphicEditor != null)
     {
         graphicEditor.Reload(animation.GraphicSet, animation.GraphicSetLength, 0, animation.PaletteSet, 0,
                              animation.Codec == 1 ? (byte)0x10 : (byte)0x20);
     }
 }
Пример #7
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);
     }
 }
Пример #8
0
 private void LoadLogoGraphicEditor()
 {
     if (logoGraphicEditor == null)
     {
         logoGraphicEditor       = new GraphicEditor(new LogoGraphicUpdater(), Model.Logos_Graphics, Model.Logos_Graphics.Length, 0, Model.Logos_PaletteSet, 0, 0x20);
         logoGraphicEditor.Owner = this;
     }
     else
     {
         logoGraphicEditor.Reload(Model.Logos_Graphics, Model.Logos_Graphics.Length, 0, Model.Logos_PaletteSet, 0, 0x20);
     }
 }
Пример #9
0
 private void LoadGraphicEditor()
 {
     if (graphicEditor == null)
     {
         graphicEditor = new GraphicEditor(new GraphicUpdater(),
                                           tileset.Graphics, tileset.Graphics.Length, 0, paletteSets[palette], 1, 0x20);
         graphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         graphicEditor.Reload(tileset.Graphics, tileset.Graphics.Length, 0, paletteSets[palette], 1, 0x20);
     }
 }
Пример #10
0
 private void LoadGraphicEditor()
 {
     if (graphicEditor == null)
     {
         graphicEditor = new GraphicEditor(new GraphicPreGameUpdater(), castGraphics,
                                           castGraphics.Length, 0, paletteSet, 0, 0x10);
         graphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
         graphicEditor.Owner        = this.Owner;
     }
     else
     {
         graphicEditor.Reload(castGraphics, castGraphics.Length, 0, paletteSet, 0, 0x10);
     }
 }
Пример #11
0
 private void LoadSpriteGraphicEditor()
 {
     if (spriteGraphicEditor == null)
     {
         spriteGraphicEditor = new GraphicEditor(new GraphicSpriteUpdater(),
                                                 Model.Title_SpriteGraphics, Model.Title_SpriteGraphics.Length, 0, spritePaletteSet, 0, 0x20);
         spriteGraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
         spriteGraphicEditor.Owner        = this;
     }
     else
     {
         spriteGraphicEditor.Reload(Model.Title_SpriteGraphics, Model.Title_SpriteGraphics.Length, 0, spritePaletteSet, 0, 0x20);
     }
 }
Пример #12
0
 private void LoadSpriteGraphicEditor()
 {
     if (spriteGraphicEditor == null)
     {
         spriteGraphicEditor = new GraphicEditor(new LogoGraphicUpdater(),
                                                 Model.Sprites_Graphics, Model.Sprites_Graphics.Length, 0, logoPalette, 0, 0x20);
         spriteGraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
         spriteGraphicEditor.Owner        = this;
     }
     else
     {
         spriteGraphicEditor.Reload(Model.Sprites_Graphics, Model.Sprites_Graphics.Length, 0, logoPalette, 0, 0x20);
     }
 }
Пример #13
0
 private void LoadMenuGraphicEditor()
 {
     if (menuGraphicEditor == null)
     {
         menuGraphicEditor = new GraphicEditor(new Function(MenuGraphicUpdate),
                                               Model.BattleMenuGraphics, Model.BattleMenuGraphics.Length, 0, Model.BattleMenuPalette, 0, 0x20);
         menuGraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         menuGraphicEditor.Reload(new Function(MenuGraphicUpdate),
                                  Model.BattleMenuGraphics, Model.BattleMenuGraphics.Length, 0, Model.BattleMenuPalette, 0, 0x20);
     }
 }
Пример #14
0
 //
 private void LoadGraphicEditor()
 {
     if (numeralGraphicEditor == null)
     {
         numeralGraphicEditor = new GraphicEditor(new Function(GraphicUpdate),
                                                  Model.NumeralGraphics, Model.NumeralGraphics.Length, 0, Model.NumeralPaletteSet, 0, 0x20);
         numeralGraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         numeralGraphicEditor.Reload(new Function(GraphicUpdate),
                                     Model.NumeralGraphics, Model.NumeralGraphics.Length, 0, Model.NumeralPaletteSet, 0, 0x20);
     }
 }
Пример #15
0
 public void LoadGraphicEditor()
 {
     if (graphicEditor == null)
     {
         graphicEditor = new GraphicEditor(new Function(GraphicUpdate),
                                           graphics, graphics.Length, 0, paletteSet, 0, 0x20, 1);
         graphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         graphicEditor.Reload(new Function(GraphicUpdate),
                              graphics, graphics.Length, 0, paletteSet, 0, 0x20, 1);
     }
 }
Пример #16
0
 private void LoadLogoGraphicEditor()
 {
     if (logoGraphicEditor == null)
     {
         logoGraphicEditor = new GraphicEditor(new Function(LogoGraphicUpdate),
                                               Model.WorldMapLogos, Model.WorldMapLogos.Length, 0, logoPalette, 0, 0x20);
         logoGraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         logoGraphicEditor.Reload(new Function(LogoGraphicUpdate),
                                  Model.WorldMapLogos, Model.WorldMapLogos.Length, 0, logoPalette, 0, 0x20);
     }
 }
Пример #17
0
 private void LoadSpriteGraphicEditor()
 {
     if (spriteGraphicEditor == null)
     {
         spriteGraphicEditor = new GraphicEditor(new Function(SpriteGraphicUpdate),
                                                 Model.TitleSpriteGraphics, Model.TitleSpriteGraphics.Length, 0, spritePaletteSet, 0, 0x20);
         spriteGraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         spriteGraphicEditor.Reload(new Function(SpriteGraphicUpdate),
                                    Model.TitleSpriteGraphics, Model.TitleSpriteGraphics.Length, 0, spritePaletteSet, 0, 0x20);
     }
 }
Пример #18
0
 private void LoadStageGraphicEditor()
 {
     if (stageGraphicEditor == null)
     {
         stageGraphicEditor = new GraphicEditor(new Function(StageGraphicUpdate),
                                                tileset.Graphics, tileset.Graphics.Length, 0, paletteSet, 0, 0x20);
         stageGraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         stageGraphicEditor.Reload(new Function(StageGraphicUpdate),
                                   tileset.Graphics, tileset.Graphics.Length, 0, paletteSet, 0, 0x20);
     }
 }
Пример #19
0
 public void LoadGraphicEditor()
 {
     if (graphicEditor == null)
     {
         graphicEditor = new GraphicEditor(new Function(GraphicUpdate),
                                           animation.GraphicSet, animation.GraphicSetLength, 0, animation.PaletteSet, 0,
                                           animation.Codec == 1 ? (byte)0x10 : (byte)0x20);
         graphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         graphicEditor.Reload(new Function(GraphicUpdate),
                              animation.GraphicSet, animation.GraphicSetLength, 0, animation.PaletteSet, 0,
                              animation.Codec == 1 ? (byte)0x10 : (byte)0x20);
     }
 }
Пример #20
0
 private void LoadGraphicEditor()
 {
     if (GraphicEditor == null)
     {
         GraphicEditor = new GraphicEditor(new GraphicTitleUpdater(),
                                           Layer != 2 ? Tileset.Graphics : Tileset.GraphicsL3,
                                           Layer != 2 ? Tileset.Graphics.Length : Tileset.GraphicsL3.Length,
                                           0, PaletteSet, 0, 0x20);
         GraphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
         GraphicEditor.Owner        = this.Owner;
     }
     else
     {
         GraphicEditor.Reload(Layer != 2 ? Tileset.Graphics : Tileset.GraphicsL3,
                              Layer != 2 ? Tileset.Graphics.Length : Tileset.GraphicsL3.Length,
                              0, PaletteSet, 0, 0x20);
     }
 }
Пример #21
0
 private void LoadGraphicEditor()
 {
     if (graphicEditor == null)
     {
         graphicEditor = new GraphicEditor(new Function(GraphicUpdate),
                                           layer != 2 ? tileset.Graphics : tileset.GraphicsL3,
                                           layer != 2 ? tileset.Graphics.Length : tileset.GraphicsL3.Length,
                                           0, paletteSet, 0, 0x20);
         graphicEditor.FormClosing += new FormClosingEventHandler(editor_FormClosing);
     }
     else
     {
         graphicEditor.Reload(new Function(GraphicUpdate),
                              layer != 2 ? tileset.Graphics : tileset.GraphicsL3,
                              layer != 2 ? tileset.Graphics.Length : tileset.GraphicsL3.Length,
                              0, paletteSet, 0, 0x20);
     }
 }
Пример #22
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);
     }
 }