summaryrefslogtreecommitdiff
path: root/src/ui/ui_atoms.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_atoms.c')
-rw-r--r--src/ui/ui_atoms.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/ui/ui_atoms.c b/src/ui/ui_atoms.c
index 64efa914..d2bb6b26 100644
--- a/src/ui/ui_atoms.c
+++ b/src/ui/ui_atoms.c
@@ -52,8 +52,6 @@ void QDECL Com_Printf( const char *msg, ... ) {
trap_Print( va("%s", text) );
}
-qboolean newUI = qfalse;
-
/*
=================
@@ -298,6 +296,8 @@ static void UI_CalcPostGameStats( void ) {
/*
=================
UI_ConsoleCommand
+
+FIXME: lookup table
=================
*/
qboolean UI_ConsoleCommand( int realTime )
@@ -353,6 +353,30 @@ qboolean UI_ConsoleCommand( int realTime )
return qtrue;
}
+ if ( Q_strncmp( cmd, "messagemode", 11 ) == 0 ) {
+ trap_Cvar_Set( "ui_sayBuffer", "" );
+
+ switch( cmd[ 11 ] )
+ {
+ default:
+ case '\0':
+ // Global
+ uiInfo.chatTeam = qfalse;
+ uiInfo.chatTargetClientNum = -1;
+ break;
+
+ case '2':
+ // Team
+ uiInfo.chatTeam = qtrue;
+ uiInfo.chatTargetClientNum = -1;
+ break;
+ }
+
+ trap_Key_SetCatcher( KEYCATCH_UI );
+ Menus_ActivateByName( "say" );
+ return qtrue;
+ }
+
if( Q_stricmp ( cmd, "menu" ) == 0 )
{
arg1 = UI_Argv( 1 );