private void ChangeNickname(object sender, MouseEventArgs e) { TextBox tb = (TextBox)sender; // Special Character Form if (ModifierKeys != Keys.Control) { return; } var team = LB_DataEntry.SelectedIndex; var member = (int)NUP_PartyIndex.Value - 1; int offset = (team * (4 + (6 * HallFame6Entity.SIZE))) + (member * HallFame6Entity.SIZE); var nicktrash = data.AsSpan(offset + 0x18, 26); var text = tb.Text; SAV.SetString(nicktrash, text.AsSpan(), 12, StringConverterOption.ClearZero); var d = new TrashEditor(tb, nicktrash, SAV); d.ShowDialog(); tb.Text = d.FinalString; d.FinalBytes.CopyTo(nicktrash); TB_Nickname.Text = StringConverter6.GetString(nicktrash); }
private void ClickOT(object sender, MouseEventArgs e) { TextBox tb = sender as TextBox ?? TB_OTName; // Special Character Form if (ModifierKeys != Keys.Control) return; var d = new TrashEditor(tb, SAV); d.ShowDialog(); tb.Text = d.FinalString; }