summaryrefslogtreecommitdiff
path: root/inc/client/ui.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2012-07-24 20:58:02 +0400
committerAndrey Nazarov <skuller@skuller.net>2012-07-24 20:58:02 +0400
commitbbaf5e130a68e0a435065cf177294bade69511bc (patch)
tree4e6809ae1950e434e2bb111d5340a97e75b3d0f2 /inc/client/ui.h
parent7294f4a70981ea084148ab75f35a25af8d993213 (diff)
Remove most of ‘#if USE_UI’ tests.
Diffstat (limited to 'inc/client/ui.h')
-rw-r--r--inc/client/ui.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/inc/client/ui.h b/inc/client/ui.h
index ae3975f..a446073 100644
--- a/inc/client/ui.h
+++ b/inc/client/ui.h
@@ -31,7 +31,8 @@ typedef enum {
UIMENU_GAME
} uiMenu_t;
-qboolean UI_Init(void);
+#if USE_UI
+void UI_Init(void);
void UI_Shutdown(void);
void UI_ModeChanged(void);
void UI_Keydown(int key);
@@ -43,5 +44,19 @@ void UI_StatusEvent(const serverStatus_t *status);
void UI_ErrorEvent(netadr_t *from);
void UI_MouseEvent(int x, int y);
qboolean UI_IsTransparent(void);
+#else
+#define UI_Init() (void)0
+#define UI_Shutdown() (void)0
+#define UI_ModeChanged() (void)0
+#define UI_Keydown(key) (void)0
+#define UI_CharEvent(key) (void)0
+#define UI_Draw(realtime) (void)0
+#define UI_OpenMenu(menu) (void)0
+#define UI_Frame(msec) (void)0
+#define UI_StatusEvent(status) (void)0
+#define UI_ErrorEvent(from) (void)0
+#define UI_MouseEvent(x, y) (void)0
+#define UI_IsTransparent() qtrue
+#endif
#endif // UI_H