diff options
Diffstat (limited to 'src/ui/ui_public.h')
-rw-r--r-- | src/ui/ui_public.h | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/src/ui/ui_public.h b/src/ui/ui_public.h index 5936319f..3de3bc7f 100644 --- a/src/ui/ui_public.h +++ b/src/ui/ui_public.h @@ -2,19 +2,19 @@ =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. Copyright (C) 2000-2006 Tim Angus - + This file is part of Tremulous. - + Tremulous is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + Tremulous is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with Tremulous; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA @@ -26,16 +26,19 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define UI_API_VERSION 6 -typedef struct { +typedef struct +{ connstate_t connState; int connectPacketCount; int clientNum; char servername[MAX_STRING_CHARS]; char updateInfoString[MAX_STRING_CHARS]; char messageString[MAX_STRING_CHARS]; -} uiClientState_t; +} +uiClientState_t; -typedef enum { +typedef enum +{ UI_ERROR, UI_PRINT, UI_MILLISECONDS, @@ -133,13 +136,16 @@ typedef enum { UI_SQRT, UI_FLOOR, UI_CEIL -} uiImport_t; +} +uiImport_t; -typedef enum { +typedef enum +{ UIMENU_NONE, UIMENU_MAIN, UIMENU_INGAME -} uiMenuCommand_t; +} +uiMenuCommand_t; typedef enum { @@ -147,41 +153,44 @@ typedef enum SORT_MAP, SORT_CLIENTS, SORT_PING -} serverSortField_t; +} +serverSortField_t; -typedef enum { +typedef enum +{ UI_GETAPIVERSION = 0, // system reserved UI_INIT, -// void UI_Init( void ); + // void UI_Init( void ); UI_SHUTDOWN, -// void UI_Shutdown( void ); + // void UI_Shutdown( void ); UI_KEY_EVENT, -// void UI_KeyEvent( int key ); + // void UI_KeyEvent( int key ); UI_MOUSE_EVENT, -// void UI_MouseEvent( int dx, int dy ); + // void UI_MouseEvent( int dx, int dy ); UI_REFRESH, -// void UI_Refresh( int time ); + // void UI_Refresh( int time ); UI_IS_FULLSCREEN, -// qboolean UI_IsFullscreen( void ); + // qboolean UI_IsFullscreen( void ); UI_SET_ACTIVE_MENU, -// void UI_SetActiveMenu( uiMenuCommand_t menu ); + // void UI_SetActiveMenu( uiMenuCommand_t menu ); UI_CONSOLE_COMMAND, -// qboolean UI_ConsoleCommand( int realTime ); + // qboolean UI_ConsoleCommand( int realTime ); UI_DRAW_CONNECT_SCREEN -// void UI_DrawConnectScreen( qboolean overlay ); + // void UI_DrawConnectScreen( qboolean overlay ); -// if !overlay, the background will be drawn, otherwise it will be -// overlayed over whatever the cgame has drawn. -// a GetClientState syscall will be made to get the current strings -} uiExport_t; + // if !overlay, the background will be drawn, otherwise it will be + // overlayed over whatever the cgame has drawn. + // a GetClientState syscall will be made to get the current strings +} +uiExport_t; #endif |