private void IndependenceButton_Click(object sender, EventArgs e) { if (this.AddressList.SelectedIndex < 0) { return; } uint classid = (uint)U.atoh(this.AddressList.Text); uint classaddr = ClassForm.GetClassAddr(classid); string name = U.ToHexString(classid) + " " + ClassForm.GetClassNameLow(classaddr); uint p = InputFormRef.SelectToAddr(this.AddressList); uint setting = ClassForm.GetMoveCostPointerAddrLow(classaddr, (uint)this.FilterComboBox.SelectedIndex); if (setting == U.NOT_FOUND) { return; } Undo.UndoData undodata = Program.Undo.NewUndoData(this, "MoveCost Independence"); PatchUtil.WriteIndependence(p, 68, setting, name, undodata); Program.Undo.Push(undodata); InputFormRef.ShowWriteNotifyAnimation(this, p); this.ReloadListButton.PerformClick(); this.InputFormRef.JumpTo(classid); }