mp_chatmessages.c

Go to the documentation of this file.
00001 
00005 /*
00006 Copyright (C) 2002-2010 UFO: Alien Invasion.
00007 
00008 This program is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016 
00017 See the GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00023 */
00024 
00025 #include "../cl_shared.h"
00026 #include "../ui/ui_main.h"
00027 #include "../ui/ui_data.h"
00028 #include "../ui/node/ui_node_text.h"
00029 #include "mp_chatmessages.h"
00030 
00031 static linkedList_t *mp_chatMessageStack = NULL;
00032 
00036 void MP_AddChatMessage (const char *text)
00037 {
00038     char message[2048];
00039     Q_strncpyz(message, text, sizeof(message));
00040     LIST_AddString(&mp_chatMessageStack, Com_Trim(message));
00041     UI_RegisterLinkedListText(TEXT_CHAT_WINDOW, mp_chatMessageStack);
00042     UI_ExecuteConfunc("unhide_chatscreen");
00043 }

Generated by  doxygen 1.6.2