menu and sounds
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@31 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -125,7 +125,7 @@ dynent *newdynent() // create a new blank player or monster
|
||||
d->outsidemap = false;
|
||||
d->inwater = false;
|
||||
d->radius = 1.1f;
|
||||
d->eyeheight = 3.2f;
|
||||
d->eyeheight = 4.25f;
|
||||
d->aboveeye = 0.7f;
|
||||
d->frags = 0;
|
||||
d->plag = 0;
|
||||
|
||||
@@ -121,6 +121,7 @@ bool menukey(int code, bool isdown)
|
||||
{
|
||||
menuset(-1);
|
||||
if(!menustack.empty()) menuset(menustack.pop());
|
||||
execute("musicvol 0; music $menu_music");
|
||||
return true;
|
||||
}
|
||||
else if(code==SDLK_UP || code==-4) menusel--;
|
||||
|
||||
@@ -48,7 +48,7 @@ void blendbox(int x1, int y1, int x2, int y2, bool border)
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
glBlendFunc(GL_ZERO, GL_ONE_MINUS_SRC_COLOR);
|
||||
glBegin(GL_QUADS);
|
||||
if(border) glColor3d(0.5, 0.3, 0.4);
|
||||
if(border) glColor3d(0.7, 0.7, 0.7); //glColor3d(0.5, 0.3, 0.4);
|
||||
else glColor3d(1.0, 1.0, 1.0);
|
||||
glVertex2i(x1, y1);
|
||||
glVertex2i(x2, y1);
|
||||
@@ -58,7 +58,7 @@ void blendbox(int x1, int y1, int x2, int y2, bool border)
|
||||
glDisable(GL_BLEND);
|
||||
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
|
||||
glBegin(GL_POLYGON);
|
||||
glColor3d(0.2, 0.7, 0.4);
|
||||
glColor3d(0.6, 0.6, 0.6); //glColor3d(0.2, 0.7, 0.4);
|
||||
glVertex2i(x1, y1);
|
||||
glVertex2i(x2, y1);
|
||||
glVertex2i(x2, y2);
|
||||
|
||||
@@ -76,7 +76,7 @@ void music(char *name)
|
||||
if(soundvol && musicvol)
|
||||
{
|
||||
string sn;
|
||||
strcpy_s(sn, "packages/");
|
||||
strcpy_s(sn, "packages/songs/");
|
||||
strcat_s(sn, name);
|
||||
#ifdef USE_MIXER
|
||||
if(mod = Mix_LoadMUS(path(sn)))
|
||||
|
||||
Reference in New Issue
Block a user