public void GetInformTb(string who, string withWhat, int howMuch) { //if player attacked if (who == player.Name) { Tb_get_informed.Text += ">> you attacked on " + enemy.Name + " with " + withWhat + " for " + howMuch + " damage!" + Environment.NewLine; Tb_get_informed.Text += "-------------------------------------" + Environment.NewLine; } //if enemy attacked else if (who == enemy.Name) { Tb_get_informed.Text += "<< " + who + " attacked on " + player.Name + " with " + withWhat + " for " + howMuch + " damage!" + Environment.NewLine; Tb_get_informed.Text += "-------------------------------------" + Environment.NewLine; } Tb_get_informed.ScrollToEnd(); }
public void GetInformTb(string whateverYouWant) { Tb_get_informed.Text += whateverYouWant + Environment.NewLine; Tb_get_informed.Text += "-------------------------------------" + Environment.NewLine; Tb_get_informed.ScrollToEnd(); }