private void AddCharEditing(Font f) { ushort[] chars = GetChars(SAV.Generation); if (chars.Length == 0) return; FLP_Characters.Visible = true; foreach (ushort c in chars) { var l = GetLabel(((char)c).ToString()); l.Font = f; l.AutoSize = false; l.Size = new Size(20, 20); l.Click += (s, e) => { if (TB_Text.Text.Length < TB_Text.MaxLength) TB_Text.AppendText(l.Text); }; FLP_Characters.Controls.Add(l); } }
private void addCharEditing() { ushort[] chars = getChars(Main.SAV.Generation); if (chars.Length == 0) { return; } FLP_Characters.Visible = true; foreach (ushort c in chars) { var l = getLabel((char)c + ""); l.Font = pkxFont; l.AutoSize = false; l.Size = new Size(20, 20); l.Click += (s, e) => { if (TB_Text.Text.Length < TB_Text.MaxLength) { TB_Text.AppendText(l.Text); } }; FLP_Characters.Controls.Add(l); } }