Ejemplo n.º 1
0
        private void btnOAMeditor_Click(object sender, EventArgs e)
        {
            Dialogs.OAMEditor editor;
            if (pluginHost is IPluginHost)
            {
                editor = new Dialogs.OAMEditor(pluginHost.Get_LangXML(), sprite.Banks[comboBank.SelectedIndex], sprite, image, palette);
            }
            else
            {
                editor = new Dialogs.OAMEditor(lang.Element("OAMEditor"), sprite.Banks[comboBank.SelectedIndex], sprite, image, palette);
            }

            if (editor.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            Update_BankInfo(comboBank.SelectedIndex);
            sprite.Banks[comboBank.SelectedIndex] = editor.Bank;
            Update_Image();
            Save_Files();
        }
Ejemplo n.º 2
0
        private void btnOAMeditor_Click(object sender, EventArgs e)
        {
            Dialogs.OAMEditor editor;
            if (pluginHost is IPluginHost)
                editor = new Dialogs.OAMEditor(pluginHost.Get_LangXML(), sprite.Banks[comboBank.SelectedIndex], sprite, image, palette);
            else
                editor = new Dialogs.OAMEditor(lang.Element("OAMEditor"), sprite.Banks[comboBank.SelectedIndex], sprite, image, palette);

            if (editor.ShowDialog() != DialogResult.OK)
                return;

            Update_BankInfo(comboBank.SelectedIndex);
            sprite.Banks[comboBank.SelectedIndex] = editor.Bank;
            Update_Image();
            Save_Files();
        }