Ejemplo n.º 1
0
        private void SwitchListExpandsButton_Click(object sender, EventArgs e)
        {
            if (this.L_0_COMBO.Items.Count <= 0)
            {
                return;
            }
            uint defAddr = U.atoh(this.L_0_COMBO.Items[0].ToString());

            uint newCount = ImagePortraitForm.DataCount();

            Undo.UndoData undodata = Program.Undo.NewUndoData(this, "MapLoadFunction SwithExpands");

            PatchUtil.Switch1Expands(Program.ROM.RomInfo.unit_increase_height_pointer()
                                     , Program.ROM.RomInfo.map_load_function_switch1_address()
                                     , newCount
                                     , defAddr
                                     , undodata);
            Program.Undo.Push(undodata);

            ReInit(this.InputFormRef);
        }