// public MenusEditor() { // InitializeComponent(); Do.AddShortcut(toolStrip2, Keys.Control | Keys.S, new EventHandler(save_Click)); LoadOverworldEditor(); // for (int i = 0; i < Model.MenuTexts.Length; i++) { this.menuTextName.Items.Add(Model.MenuTexts[i].GetMenuString(textView.Checked)); } this.Index = 0; // menus.TopLevel = false; menus.Dock = DockStyle.Fill; //overworld.SetToolTips(toolTip1); panel1.Controls.Add(menus); menus.BringToFront(); //openMenus.Checked = true; menus.Visible = true; new ToolTipLabel(this, null, helpTips); // this.History = new History(this, false); GC.Collect(); }
// public Audio() { InitializeComponent(); Do.AddShortcut(toolStrip1, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip1, Keys.F1, helpTips); // create editors spcEditor = new SPCEditor(); spcEditor.TopLevel = false; spcEditor.Dock = DockStyle.Fill; //spcEditor.SetToolTips(toolTip1); panel1.Controls.Add(spcEditor); spcEditor.Visible = true; sampleEditor = new SampleEditor(); sampleEditor.TopLevel = false; sampleEditor.Dock = DockStyle.Top; sampleEditor.Height = 148; //sampleEditor.SetToolTips(toolTip1); panel1.Controls.Add(sampleEditor); sampleEditor.Visible = true; new ToolTipLabel(this, null, helpTips); if (Settings.Default.RememberLastIndex) { sampleEditor.Index = Settings.Default.LastAudioSample; spcEditor.Index = Settings.Default.LastSPC; } this.History = new History(this, false); }
// Main public Battlefields() { this.overlay = new Overlay(); InitializeComponent(); Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); toolTip1.InitialDelay = 0; labelWindow = new EditLabel(battlefieldName, battlefieldNum, "Battlefields", true); this.battlefieldName.Items.AddRange(Lists.Numerize(Lists.BattlefieldNames)); this.battlefieldGFXSet1Name.Items.AddRange(Lists.Numerize(Lists.GraphicSetNames)); battlefieldGFXSet1Name.Items.Add("{NONE}"); this.battlefieldGFXSet2Name.Items.AddRange(Lists.Numerize(Lists.GraphicSetNames)); battlefieldGFXSet2Name.Items.Add("{NONE}"); this.battlefieldGFXSet3Name.Items.AddRange(Lists.Numerize(Lists.GraphicSetNames)); battlefieldGFXSet3Name.Items.Add("{NONE}"); this.battlefieldGFXSet4Name.Items.AddRange(Lists.Numerize(Lists.GraphicSetNames)); battlefieldGFXSet4Name.Items.Add("{NONE}"); this.battlefieldGFXSet5Name.Items.AddRange(Lists.Numerize(Lists.GraphicSetNames)); battlefieldGFXSet5Name.Items.Add("{NONE}"); RefreshBattlefield(); LoadPaletteEditor(); LoadGraphicEditor(); LoadTileEditor(); new ToolTipLabel(this, baseConvertor, helpTips); this.History = new History(this, battlefieldName, battlefieldNum); if (settings.RememberLastIndex) { index = settings.LastBattlefield; } // }
// constructor public AttacksEditor() { InitializeComponent(); Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); this.toolTip1.InitialDelay = 0; // create editors attacksEditor = new Attacks(); attacksEditor.TopLevel = false; attacksEditor.Dock = DockStyle.Left; panel1.Controls.Add(attacksEditor); attacksEditor.Visible = true; spellsEditor = new Spells(); spellsEditor.TopLevel = false; spellsEditor.Dock = DockStyle.Left; panel1.Controls.Add(spellsEditor); spellsEditor.Visible = true; new ToolTipLabel(this, baseConvertor, helpTips); // if (settings.RememberLastIndex) { spellsEditor.Index = settings.LastSpell; attacksEditor.Index = settings.LastAttack; } this.History = new History(this, false); }
public Monsters() { InitializeComponent(); Do.AddShortcut(toolStrip4, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip4, Keys.F1, helpTips); Do.AddShortcut(toolStrip4, Keys.F2, baseConvertor); labelWindow = new EditLabel(monsterName, monsterNum, "Monsters", false); // create editors battleScriptsEditor = new BattleScripts(this); battleScriptsEditor.TopLevel = false; battleScriptsEditor.Dock = DockStyle.Fill; //battleScriptsEditor.SetToolTips(toolTip1); hackingToolsWindow = new HackingTools(new Function(RefreshMonsterTab), monsterNum); panel1.Controls.Add(battleScriptsEditor); battleScriptsEditor.BringToFront(); battleScriptsEditor.Visible = true; toolTip1.InitialDelay = 0; InitializeStrings(); RefreshMonsterTab(); new ToolTipLabel(this, baseConvertor, helpTips); this.History = new History(this, monsterName, monsterNum); // if (settings.RememberLastIndex) { Index = settings.LastMonster; } //MessageBox.Show(battleScriptsEditor.Width + " x " + battleScriptsEditor.Height); }
// Constructor public OwnerForm() { InitializeComponent(); // Add shortcuts to ToolStripButton controls Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); // Set list control items using sorted lists InitializeListControls(); // Set control values to class properties LoadAllyProperties(); LoadInventoryProperties(); // Set control values - Status this.coins.Value = newGame.Coins; this.frogCoins.Value = newGame.FrogCoins; this.currentFP.Value = newGame.CurrentFP; this.maximumFP.Value = newGame.MaximumFP; // Set control values - Defense timing this.defenseStartL1.Value = newGame.DefenseStartL1; this.defenseStartL2.Value = newGame.DefenseStartL2; this.defenseEndL2.Value = newGame.DefenseEndL2; this.defenseEndL1.Value = newGame.DefenseEndL1; // Create ToolTipLabel for form new ToolTipLabel(this, baseConvertor, helpTips); // Create history instance for form this.History = new History(this, allyName, null); }
// main public WorldMaps() { fontPalettes[0] = new PaletteSet(Model.ROM, 0, 0x3DFEE0, 2, 16, 32); fontPalettes[1] = new PaletteSet(Model.ROM, 0, 0x3E2D55, 2, 16, 32); fontPalettes[2] = new PaletteSet(Model.ROM, 0, 0x01EF40, 2, 16, 32); for (int i = 0; i < fontDialogue.Length; i++) { fontDialogue[i] = new FontCharacter(i, FontType.Dialogue); } InitializeComponent(); this.worldMapName.Items.AddRange(Lists.Numerize(Lists.WorldMapNames)); this.music.Items.AddRange(Lists.Numerize(Lists.MusicNames)); this.music.SelectedIndex = Model.ROM[0x037DCF]; Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); toolTip1.InitialDelay = 0; labelWindow = new EditLabel(worldMapName, null, "World Maps", true); InitializeLocationsEditor(); worldMapName.SelectedIndex = 0; //LoadPaletteEditor(); //LoadGraphicEditor(); //LoadLogoPaletteEditor(); //LoadLogoGraphicEditor(); LoadTileEditor(); new ToolTipLabel(this, baseConvertor, helpTips); this.History = new History(this, worldMapName, null); }
// constructor public FormationsEditor() { InitializeComponent(); Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); // create editors formationsEditor = new Formations(); packsEditor = new FormationPacks(formationsEditor); packsEditor.TopLevel = false; packsEditor.Dock = DockStyle.Top; panel1.Controls.Add(packsEditor); packsEditor.Visible = true; formationsEditor.TopLevel = false; formationsEditor.Dock = DockStyle.Top; panel1.Controls.Add(formationsEditor); formationsEditor.Visible = true; new ToolTipLabel(this, baseConvertor, helpTips); // if (settings.RememberLastIndex) { packsEditor.Index = Settings.Default.LastFormationPack; formationsEditor.Index = Settings.Default.LastFormation; } this.History = new History(this, false); }
public HexEditor(byte[] current, byte[] original) { this.current_unmodified = current; this.current = Bits.Copy(current); this.original = original; InitializeComponent(); RefreshHexEditor(); Do.AddShortcut(toolStrip2, Keys.F1, helpTips); new ToolTipLabel(this, null, helpTips); }
public TileEditor(Delegate update, Tile tile, byte[] graphics, PaletteSet paletteSet, byte format) { this.update = update; this.tile = tile; this.tileBackup = tile.Copy(); this.graphics = graphics; this.paletteSet = paletteSet; this.format = format; InitializeTile(); Do.AddShortcut(toolStrip1, Keys.F1, helpTips); Do.AddShortcut(toolStrip1, Keys.F2, baseConvertor); new ToolTipLabel(this, baseConvertor, helpTips); }
// special controls #endregion #region Functions // main public Effects() { // set data InitializeComponent(); Do.AddShortcut(toolStrip2, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip2, Keys.F1, helpTips); Do.AddShortcut(toolStrip2, Keys.F2, baseConvertor); // tooltips toolTip1.InitialDelay = 0; searchWindow = new Search(number, searchBox, searchEffectNames, name.Items); labelWindow = new EditLabel(name, number, "Effects", true); // set control values this.Updating = true; this.animation.Tileset_tiles = new E_Tileset(animation, palette); this.name.Items.AddRange(Lists.Numerize(Lists.EffectNames)); this.name.SelectedIndex = 0; foreach (E_Animation a in animations) { a.Tileset_tiles = new E_Tileset(a, 0); a.Assemble(); } RefreshEffectsEditor(); this.Updating = false; GC.Collect(); // create editors molds.TopLevel = false; molds.Dock = DockStyle.Fill; panelMolds.Controls.Add(molds); molds.BringToFront(); openMolds.Checked = true; molds.Visible = true; sequences.TopLevel = false; sequences.Dock = DockStyle.Fill; panelSequences.Controls.Add(sequences); sequences.SendToBack(); openSequences.Checked = true; sequences.Visible = true; new ToolTipLabel(this, baseConvertor, helpTips); // this.History = new History(this, name, number); if (settings.RememberLastIndex) { index = settings.LastEffect; } }
// Constructor public OwnerForm() { InitializeComponent(); InitializeListControls(); Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); new ToolTipLabel(this, baseConvertor, helpTips); LoadProperties(); LoadTimingTwo(); if (settings.RememberLastIndex) { Index = settings.LastSpell; } labelWindow = new EditLabel(name, num, "Spells", false); // this.History = new History(this, name, num); }
// public MiniGames() { InitializeComponent(); Do.AddShortcut(toolStrip1, Keys.Control | Keys.S, new EventHandler(save_Click)); LoadMineCartEditor(); // minecart.TopLevel = false; minecart.Dock = DockStyle.Fill; //overworld.SetToolTips(toolTip1); panel1.Controls.Add(minecart); minecart.BringToFront(); //openMenus.Checked = true; minecart.Visible = true; new ToolTipLabel(this, null, helpTips); this.History = new History(this, false); // GC.Collect(); }
// Constructor public Editor(ProgramController controls) { this.AppControl = controls; // InitializeComponent(); //LoadWebpage(); Do.AddShortcut(toolStrip4, Keys.Control | Keys.S, new EventHandler(saveToolStripMenuItem_Click)); loadRomTextBox.Anchor = AnchorStyles.Left | AnchorStyles.Right; // MRU LoadSettingsFromRegistry(); mruManager = new MRUManager(); mruManager.Initialize(this, recentFiles, registryPath); // if (settings.LoadLastUsedROM && mruManager.MRUList.Count > 0) { try { Open((string)mruManager.MRUList[0]); } catch (Exception e) { MessageBox.Show("Could not load most recently used ROM.\n\n" + e.Message, "LAZY SHELL", MessageBoxButtons.OK, MessageBoxIcon.Error); } } // create backup list collections BEFORE loading notes Model.CreateListCollections(); if (settings.LoadNotes && settings.NotePathCustom != "") { try { OpenProject(settings.NotePathCustom); } catch (Exception e) { MessageBox.Show("Could not load most recently used project database.\n\n" + e.Message, "LAZY SHELL", MessageBoxButtons.OK, MessageBoxIcon.Error); } } this.History = new History(this); if (!settings.FirstLoad) Help.CreateHelp(Model.LAZYSHELL_xml, true); settings.FirstLoad = true; }
public Intro() { InitializeComponent(); Do.AddShortcut(toolStrip1, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip1, Keys.F1, helpTips); // create editors opening = new Opening(this); opening.TopLevel = false; opening.Dock = DockStyle.Fill; panel1.Controls.Add(opening); opening.Visible = true; // mainTitle = new MainTitle(this); mainTitle.TopLevel = false; mainTitle.Dock = DockStyle.Right; panel1.Controls.Add(mainTitle); mainTitle.Visible = true; // new ToolTipLabel(this, null, helpTips); this.History = new History(this, false); }
// constructor public ItemsEditor() { InitializeComponent(); Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); this.toolTip1.InitialDelay = 0; // create editors shopsEditor = new Shops(this); shopsEditor.TopLevel = false; shopsEditor.Dock = DockStyle.Left; panel1.Controls.Add(shopsEditor); shopsEditor.Visible = true; itemsEditor = new Items(shopsEditor); itemsEditor.TopLevel = false; itemsEditor.Dock = DockStyle.Left; panel1.Controls.Add(itemsEditor); itemsEditor.Visible = true; new ToolTipLabel(this, baseConvertor, helpTips); // this.History = new History(this, false); }
// constructor public AlliesEditor() { // InitializeComponent(); Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); this.toolTip1.InitialDelay = 0; // create editors levelUpsEditor = new LevelUps(); levelUpsEditor.TopLevel = false; levelUpsEditor.Dock = DockStyle.Left; panel1.Controls.Add(levelUpsEditor); levelUpsEditor.Visible = true; alliesEditor = new Allies(); alliesEditor.TopLevel = false; alliesEditor.Dock = DockStyle.Left; panel1.Controls.Add(alliesEditor); alliesEditor.Visible = true; new ToolTipLabel(this, baseConvertor, helpTips); this.History = new History(this, false); }
private void CreateShortcuts() { Do.AddShortcut(toolStrip1, Keys.Control | Keys.S, new EventHandler(save_Click)); }
private void CreateShortcuts() { Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); }
// special controls #endregion #region Methods // main public Sprites() { InitializeComponent(); Do.AddShortcut(toolStrip3, Keys.Control | Keys.S, new EventHandler(save_Click)); Do.AddShortcut(toolStrip3, Keys.F1, helpTips); Do.AddShortcut(toolStrip3, Keys.F2, baseConvertor); toolTip1.InitialDelay = 0; searchWindow = new Search(number, searchBox, searchEffectNames, name.Items); labelWindow = new EditLabel(name, number, "Sprites", true); // set data this.rom = Model.ROM; this.sprites = Model.Sprites; this.animations = Model.Animations; this.palettes = Model.SpritePalettes; this.images = Model.GraphicPalettes; this.overlay = new Overlay(); graphics = image.Graphics(spriteGraphics); // controls this.Updating = true; for (int i = 0; i < Lists.SpriteNames.Length; i++) { string itemName = Lists.SpriteNames[i]; if (i >= 256 && i <= 511) { string monsterName = Do.RawToASCII(Model.Monsters[i - 256].Name, Lists.KeystrokesMenu); if (monsterName.Trim() != "") { itemName = Lists.ToTitleCase(monsterName); } } name.Items.Add(Lists.Numerize(itemName, i, 4)); } if (settings.RememberLastIndex) { name.SelectedIndex = settings.LastSprite; number.Value = settings.LastSprite; } else { name.SelectedIndex = 0; } foreach (Animation a in animations) { a.Assemble(); } RefreshSpritesEditor(); this.Updating = false; GC.Collect(); // editors molds.TopLevel = false; molds.Dock = DockStyle.Fill; panelMolds.Controls.Add(molds); molds.BringToFront(); openMolds.Checked = true; molds.Visible = true; sequences.TopLevel = false; sequences.Dock = DockStyle.Fill; panelSequences.Controls.Add(sequences); sequences.SendToBack(); openSequences.Checked = true; sequences.Visible = true; new ToolTipLabel(this, baseConvertor, helpTips); // this.History = new History(this, name, number); }