public void SetText(string mess) { text = mess; textRect.Size = GameFont.GetRect(14, text); Resize(800, 600); }