1
0
Fork 0
forked from fte/fteqw

proxy:menu stuff.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2015 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-22 23:54:07 +00:00
parent e6ecd20e8f
commit 27a1a4b309

View file

@ -20,6 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "qtv.h"
void Menu_Enter(cluster_t *cluster, viewer_t *viewer, int buttonnum);
#ifdef _WIN32
int snprintf(char *buffer, int buffersize, char *format, ...)
{
@ -1253,6 +1255,41 @@ void QTV_Say(cluster_t *cluster, sv_t *qtv, viewer_t *v, char *message)
{
QW_StuffcmdToViewer(v, "cmd admin\n");
}
else if (!strncmp(message, "proxy:menu up", 13))
{
v->menuop -= 1;
}
else if (!strncmp(message, "proxy:menu down", 15))
{
v->menuop += 1;
}
else if (!strncmp(message, "proxy:menu right", 16))
{
Menu_Enter(cluster, v, 1);
}
else if (!strncmp(message, "proxy:menu left", 15))
{
Menu_Enter(cluster, v, -1);
}
else if (!strncmp(message, "proxy:menu select", 17))
{
Menu_Enter(cluster, v, 0);
}
else if (!strncmp(message, "proxy:menu home", 15))
{
v->menuop -= 100000;
}
else if (!strncmp(message, "proxy:menu end", 14))
{
v->menuop += 100000;
}
else if (!strncmp(message, "proxy:menu back", 15))
{
}
else if (!strncmp(message, "proxy:menu", 10))
{
Menu_Enter(cluster, v, 0);
}
else
{
*v->expectcommand = '\0';
@ -1322,8 +1359,6 @@ printf("\"%s\"", buf);
static const filename_t ConnectionlessModelList[] = {{""}, {"maps/start.bsp"}, {"progs/player.mdl"}, {""}};
static const filename_t ConnectionlessSoundList[] = {{""}, {""}};
void Menu_Enter(cluster_t *cluster, viewer_t *viewer, int buttonnum);
void ParseQWC(cluster_t *cluster, sv_t *qtv, viewer_t *v, netmsg_t *m)
{