// Export private void Export_Architecture() { byte[] array = new byte[0x80000]; ExportPalette(array, 0); ExportGraphics(array, 0x200); ExportTileset(array, 0, 0x10200); ExportTileset(array, 1, 0x11200); ExportTileset(array, 2, 0x12200); ExportTilemap(array, 0, 0x13200); ExportTilemap(array, 1, 0x33200); ExportTilemap(array, 2, 0x53200); ExportPriority(array, 0x73200); Do.Export(array, "", fullPath); }
private void Export() { if (this.element is Areas.Area[]) { this.Enabled = false; if (radioButtonCurrent.Checked) { Areas.Model.ExportArea(currentIndex, fullPath); } else { Areas.Model.ExportAreas(fullPath); } } else if (this.element is Battlefields.Battlefield[]) { if (radioButtonCurrent.Checked) { Battlefields.Model.ExportBattlefield(currentIndex, fullPath); } else { Battlefields.Model.ExportBattlefields(fullPath); } } else if (this.element is Audio.BRRSample[]) { if (this.Text == "EXPORT SAMPLE BRRs...") { if (radioButtonCurrent.Checked) { Audio.Model.ExportBRRSample(fullPath, currentIndex); } else { Audio.Model.ExportBRRSamples(fullPath); } } else if (this.Text == "EXPORT SAMPLE WAVs...") { if (radioButtonCurrent.Checked) { Audio.Model.ExportWAVSample(fullPath, currentIndex, (int)args[0]); } else { Audio.Model.ExportWAVSamples(fullPath, (int)args[0]); } } } else if (this.element is Audio.SPCTrack[]) { if (radioButtonCurrent.Checked) { Audio.Model.ExportSPC(textBoxCurrent.Text, currentIndex); } else { Audio.Model.ExportSPCs(fullPath); } } else { try { string name = this.Text.ToLower().Substring(7, this.Text.Length - 7 - 4); if (this.Text.Substring(0, 6) == "EXPORT") { Element[] array = element as Element[]; if (radioButtonCurrent.Checked) { Do.Export(array[currentIndex], null, textBoxCurrent.Text); } else { Do.Export(array, fullPath + "\\" + Model.GetFileNameWithoutPath() + " - " + Lists.ToTitleCase(name) + "s" + "\\" + name, name.ToUpper(), true); } } } catch { } } }
private void menuSaveImageAs_Click(object sender, EventArgs e) { Do.Export(tilesetImage, "tileset.png"); }