public MapEditor() { try { InitializeComponent(); EntryArrayBox.Load("Chapter List.txt"); Current = new StructFile("Chapter Struct.txt"); Current.Address = Core.GetPointer("Chapter Array"); ArrayFile map_file = new ArrayFile("Map List.txt"); MapData_ArrayBox.Load(map_file); Changes_ArrayBox.Load(map_file); TileAnim1_ArrayBox.Load(map_file); TileAnim2_ArrayBox.Load(map_file); Palette_ArrayBox.Load(map_file); TilesetTSA_ArrayBox.Load(map_file); Tileset1_ArrayBox.Load(map_file); Tileset2_ArrayBox.Load(map_file); Chapter_MagicButton.EditorToOpen = "Module:Chapter Editor"; } catch (Exception ex) { Program.ShowError("Could not properly open the " + this.Text, ex); Core_CloseEditor(this, null); } }
public SpellAnimEditor() { try { InitializeComponent(); EntryArrayBox.Load("Spell Animations.txt"); EntryArrayBox.Value = 0; EntryArrayBox.ValueChanged += EntryArrayBox_ValueChanged; Commands = new SpellCommands("Spell Commands.txt"); Anim_CodeBox.KeyDown += new KeyEventHandler(TextBox_SelectAll); Anim_CodeBox.AddSyntax(ASM.GetInstructionsRegex_Thumb(), System.Drawing.Color.Black, FontStyle.Bold | FontStyle.Italic); Anim_CodeBox.AddSyntax(Commands.GetRegex(), SystemColors.Highlight); Anim_CodeBox.AddSyntax(@"((\b[0-9]+)|((\b0x|\$)[0-9a-fA-F]+))\b", System.Drawing.Color.SlateBlue); Anim_CodeBox.AddSyntax("return|label.*", SystemColors.ControlDark); Anim_CodeBox.AddSyntax("@.*", SystemColors.ControlDark); } catch (Exception ex) { Program.ShowError("Could not properly open the " + this.Text, ex); Core_CloseEditor(this, null); } }
public BattleScreenEditor() { try { InitializeComponent(); EntryArrayBox.Load("Battle Platform List.txt"); Current = new StructFile("Battle Platform Struct.txt"); Current.Address = Core.GetPointer("Battle Platform Array"); } catch (Exception ex) { Program.ShowError("Could not properly open the " + this.Text, ex); Core_CloseEditor(this, null); } }
public MusicEditor() { try { InitializeComponent(); EntryArrayBox.Load("Music List.txt"); Current = new StructFile("Music Struct.txt"); Current.Address = Core.GetPointer("Music Array"); Preview = new Music(); } catch (Exception ex) { Program.ShowError("Could not properly open the " + this.Text, ex); Core_CloseEditor(this, null); } }
private void Array_RadioButton_CheckedChanged(object sender, EventArgs e) { EntryArrayBox.ValueChanged -= EntryArrayBox_ValueChanged; EntryArrayBox.Value = 0; EntryArrayBox.ValueChanged += EntryArrayBox_ValueChanged; if (DialogArray_RadioButton.Checked) { EntryArrayBox.Load("Dialog Background List.txt"); } if (BattleArray_RadioButton.Checked) { EntryArrayBox.Load("Battle Background List.txt"); } if (ScreenArray_RadioButton.Checked) { EntryArrayBox.Load("Cutscene Screen List.txt"); } Core_Update(); }
public BackgroundEditor() { try { InitializeComponent(); EntryArrayBox.Load("Dialog Background List.txt"); CurrentDialog = new StructFile("Dialog Background Struct.txt"); CurrentBattle = new StructFile("Battle Background Struct.txt"); CurrentScreen = new StructFile("Cutscene Screen Struct.txt"); CurrentDialog.Address = Core.GetPointer("Dialog Background Array"); CurrentBattle.Address = Core.GetPointer("Battle Background Array"); CurrentScreen.Address = Core.GetPointer("Cutscene Screen Array"); } catch (Exception ex) { Program.ShowError("Could not properly open the " + this.Text, ex); Core_CloseEditor(this, null); } }