summaryrefslogtreecommitdiff
path: root/source/ui_local.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-05-09 18:04:42 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-05-09 18:04:42 +0000
commit026b51719172c865bc8fefe7ffd63cc79c74db1c (patch)
tree559947ebd3f8f0ba000bd72f927dc337430c38c6 /source/ui_local.h
parent89e431fa54b292ff1ebd5346c06e733cdb710bd9 (diff)
Autodetect gzipped demos during playback.
Extended menu scripts.
Diffstat (limited to 'source/ui_local.h')
-rw-r--r--source/ui_local.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/ui_local.h b/source/ui_local.h
index bda131b..7c1cf3d 100644
--- a/source/ui_local.h
+++ b/source/ui_local.h
@@ -28,8 +28,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "cl_public.h"
#include "ui_public.h"
-#define UI_Malloc( size ) Z_TagMalloc( size, TAG_UI )
-#define UI_Mallocz( size ) Z_TagMallocz( size, TAG_UI )
+#define UI_Malloc( s ) Z_TagMalloc( s, TAG_UI )
+#define UI_Mallocz( s ) Z_TagMallocz( s, TAG_UI )
+#define UI_CopyString( s ) Z_TagCopyString( s, TAG_UI )
#define MAXMENUITEMS 64
@@ -41,8 +42,9 @@ typedef enum {
MTYPE_SPINCONTROL,
MTYPE_SEPARATOR,
MTYPE_FIELD,
- MTYPE_BITMAP,
- MTYPE_IMAGELIST,
+ MTYPE_BITFIELD,
+ MTYPE_PAIRS,
+ MTYPE_TOGGLE,
MTYPE_STATIC,
MTYPE_KEYBIND
} menuType_t;
@@ -185,8 +187,12 @@ typedef struct menuSpinControl_s {
cvar_t *cvar;
char **itemnames;
+ char **itemvalues;
int numItems;
int curvalue;
+
+ int mask;
+ qboolean negate;
} menuSpinControl_t;
typedef struct menuAction_s {
@@ -264,7 +270,6 @@ qboolean UI_CursorInRect( vrect_t *rect );
void *UI_FormatColumns( int extrasize, ... ) q_sentinel;
char *UI_GetColumn( char *s, int n );
void UI_AddToServerList( const serverStatus_t *status );
-char *UI_CopyString( const char *in );
void UI_DrawLoading( int realtime );
void UI_SetupDefaultBanner( menuStatic_t *banner, const char *name );
void UI_DrawString( int x, int y, const color_t color, int flags, const char *string );