internal static List <MenuItem> GetContentsLog(CAPlayer player) { var log = player.GetCombinedLog(50); List <MenuItem> logMenu = new List <MenuItem>(); foreach (ChatMessage msg in log) { logMenu.Add(new MenuItem(msg.Text, 0, false, false, msg.Color)); } return(logMenu); }
public static void DisplayLog(CAPlayer player, int offset) { if (player == null) { return; } var log = player.GetCombinedLog(offset); foreach (ChatMessage msg in log) { player.TSPlayer.SendData(PacketTypes.ChatText, msg.Text, 255, msg.Color.R, msg.Color.G, msg.Color.B, 1); } }
internal static List<MenuItem> GetContentsLog(CAPlayer player) { var log = player.GetCombinedLog(50); List<MenuItem> logMenu = new List<MenuItem>(); foreach (ChatMessage msg in log) { logMenu.Add(new MenuItem(msg.Text, 0, false, false, msg.Color)); } return logMenu; }
public static void DisplayLog(CAPlayer player, int offset) { if (player == null) return; var log = player.GetCombinedLog(offset); foreach (ChatMessage msg in log) { player.TSPlayer.SendData(PacketTypes.ChatText, msg.Text, 255, msg.Color.R, msg.Color.G, msg.Color.B, 1); } }