about summary refs log tree commit diff
path: root/src/game/client/gc_menu.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-01-12 17:09:00 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-01-12 17:09:00 +0000
commit906ece7894927983b8ac69e37dd3cb82cfe7aad1 (patch)
treec3e83b60f04c5f26975106d807ad5185d20827be /src/game/client/gc_menu.cpp
parent99f0a47d6b03b005d0a7dae064cb6eb7cb4f60b5 (diff)
downloadzcatch-906ece7894927983b8ac69e37dd3cb82cfe7aad1.tar.gz
zcatch-906ece7894927983b8ac69e37dd3cb82cfe7aad1.zip
continued the cleanup
Diffstat (limited to 'src/game/client/gc_menu.cpp')
-rw-r--r--src/game/client/gc_menu.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/game/client/gc_menu.cpp b/src/game/client/gc_menu.cpp
index 34558402..e0c2a19f 100644
--- a/src/game/client/gc_menu.cpp
+++ b/src/game/client/gc_menu.cpp
@@ -23,6 +23,7 @@ extern "C" {
 
 #include "../generated/gc_data.h"
 #include "gc_render.h"
+#include "gc_anim.h"
 #include "gc_skin.h"
 #include "gc_ui.h"
 #include <mastersrv/mastersrv.h>
@@ -73,11 +74,6 @@ enum
 	PAGE_SYSTEM,
 };
 
-extern void select_sprite(int id, int flags=0, int sx=0, int sy=0);
-
-extern void draw_round_rect_ext(float x, float y, float w, float h, float r, int corners);
-extern void draw_round_rect(float x, float y, float w, float h, float r);
-
 static void ui_draw_rect(const RECT *r, vec4 color, int corners, float rounding)
 {
 	gfx_texture_set(-1);
@@ -259,12 +255,6 @@ int ui_do_edit_box(void *id, const RECT *rect, char *str, int str_size, bool hid
 		r = 1;
 	}
 
-	int box_type;
-	if (ui_active_item() == id || ui_hot_item() == id || ui_last_active_item() == id)
-		box_type = GUI_BOX_SCREEN_INFO;
-	else
-		box_type = GUI_BOX_SCREEN_TEXTBOX;
-
 	bool just_got_active = false;
 	
 	if(ui_active_item() == id)
@@ -1972,7 +1962,7 @@ int menu2_render()
 	return 0;
 }
 
-void modmenu_render()
+void menu_render()
 {
 	static int mouse_x = 0;
 	static int mouse_y = 0;