mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
fancy gradient at a few more places; minor corrections
git-svn-id: https://svn.eduke32.com/eduke32@1392 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d4641adc03
commit
d897eca725
2 changed files with 54 additions and 9 deletions
|
@ -2116,13 +2116,13 @@ void overheadeditor(void)
|
||||||
{
|
{
|
||||||
// keystatus[0x3f] = 0;
|
// keystatus[0x3f] = 0;
|
||||||
|
|
||||||
for (i=0; i<numsectors; i++)
|
// for (i=0; i<numsectors; i++)
|
||||||
if (inside(mousxplc,mousyplc,i) == 1)
|
// if (inside(mousxplc,mousyplc,i) == 1)
|
||||||
{
|
{
|
||||||
ydim16 = STATUS2DSIZ;
|
ydim16 = STATUS2DSIZ;
|
||||||
ExtShowSectorData((int16_t)i);
|
ExtShowSectorData((int16_t)0/*i*/);
|
||||||
ydim16 = ydim-STATUS2DSIZ2;
|
ydim16 = ydim-STATUS2DSIZ2;
|
||||||
break;
|
// break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (keystatus[0x40]) //F6
|
if (keystatus[0x40]) //F6
|
||||||
|
@ -2145,6 +2145,12 @@ void overheadeditor(void)
|
||||||
ExtShowWallData((int16_t)i);
|
ExtShowWallData((int16_t)i);
|
||||||
ydim16 = ydim-STATUS2DSIZ2;
|
ydim16 = ydim-STATUS2DSIZ2;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ydim16 = STATUS2DSIZ;
|
||||||
|
ExtShowWallData((int16_t)0);
|
||||||
|
ydim16 = ydim-STATUS2DSIZ2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (keystatus[0x41]) //F7
|
if (keystatus[0x41]) //F7
|
||||||
{
|
{
|
||||||
|
|
|
@ -949,7 +949,7 @@ void ExtShowSectorData(int16_t sectnum) //F5
|
||||||
{
|
{
|
||||||
int16_t statnum=0;
|
int16_t statnum=0;
|
||||||
int32_t x,x2,y;
|
int32_t x,x2,y;
|
||||||
int32_t i;
|
int32_t i,color;
|
||||||
int32_t secrets=0;
|
int32_t secrets=0;
|
||||||
int32_t totalactors1=0,totalactors2=0,totalactors3=0,totalactors4=0;
|
int32_t totalactors1=0,totalactors2=0,totalactors3=0,totalactors4=0;
|
||||||
int32_t totalrespawn=0;
|
int32_t totalrespawn=0;
|
||||||
|
@ -992,9 +992,24 @@ void ExtShowSectorData(int16_t sectnum) //F5
|
||||||
}
|
}
|
||||||
|
|
||||||
clearmidstatbar16(); //Clear middle of status bar
|
clearmidstatbar16(); //Clear middle of status bar
|
||||||
|
|
||||||
|
ydim -= 8;
|
||||||
|
color = whitecol-16;
|
||||||
|
begindrawing();
|
||||||
|
for (i=ydim-STATUS2DSIZ+16; i<ydim; i++)
|
||||||
|
{
|
||||||
|
clearbufbyte((char *)(frameplace + (i*bytesperline)), bytesperline, ((int32_t)color<<24)|((int32_t)color<<16)|((int32_t)color<<8)|color);
|
||||||
|
color--;
|
||||||
|
if (color <= 0) break;
|
||||||
|
}
|
||||||
|
clearbufbyte((char *)(frameplace + (i*bytesperline)), (ydim-i)*(bytesperline), 0);
|
||||||
|
enddrawing();
|
||||||
|
ydim += 8;
|
||||||
|
|
||||||
Bsprintf(tempbuf,"Level %s",levelname);
|
Bsprintf(tempbuf,"Level %s",levelname);
|
||||||
printmessage16(tempbuf);
|
printmessage16(tempbuf);
|
||||||
|
|
||||||
|
ydim -= 8; // reset at end!!
|
||||||
x=1;
|
x=1;
|
||||||
x2=14;
|
x2=14;
|
||||||
y=4;
|
y=4;
|
||||||
|
@ -1094,12 +1109,13 @@ void ExtShowSectorData(int16_t sectnum) //F5
|
||||||
PrintStatus("Skill 3 =",totalactors3,65,12,11);
|
PrintStatus("Skill 3 =",totalactors3,65,12,11);
|
||||||
PrintStatus("Skill 4 =",totalactors4,65,13,11);
|
PrintStatus("Skill 4 =",totalactors4,65,13,11);
|
||||||
PrintStatus("Respawn =",totalrespawn,65,14,11);
|
PrintStatus("Respawn =",totalrespawn,65,14,11);
|
||||||
|
ydim += 8; // see above!
|
||||||
|
|
||||||
}// end ExtShowSectorData
|
}// end ExtShowSectorData
|
||||||
|
|
||||||
void ExtShowWallData(int16_t wallnum) //F6
|
void ExtShowWallData(int16_t wallnum) //F6
|
||||||
{
|
{
|
||||||
int32_t i,nextfreetag=0,total=0;
|
int32_t i,nextfreetag=0,total=0,color;
|
||||||
char x,y;
|
char x,y;
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(wallnum);
|
UNREFERENCED_PARAMETER(wallnum);
|
||||||
|
@ -1253,6 +1269,17 @@ void ExtShowWallData(int16_t wallnum) //F6
|
||||||
|
|
||||||
clearmidstatbar16();
|
clearmidstatbar16();
|
||||||
|
|
||||||
|
color = whitecol-16;
|
||||||
|
begindrawing();
|
||||||
|
for (i=ydim-STATUS2DSIZ+16; i<ydim; i++)
|
||||||
|
{
|
||||||
|
clearbufbyte((char *)(frameplace + (i*bytesperline)), bytesperline, ((int32_t)color<<24)|((int32_t)color<<16)|((int32_t)color<<8)|color);
|
||||||
|
color--;
|
||||||
|
if (color <= 0) break;
|
||||||
|
}
|
||||||
|
clearbufbyte((char *)(frameplace + (i*bytesperline)), (ydim-i)*(bytesperline), 0);
|
||||||
|
enddrawing();
|
||||||
|
|
||||||
Bsprintf(tempbuf,"Level %s next tag %d",levelname,nextfreetag);
|
Bsprintf(tempbuf,"Level %s next tag %d",levelname,nextfreetag);
|
||||||
printmessage16(tempbuf);
|
printmessage16(tempbuf);
|
||||||
|
|
||||||
|
@ -1373,13 +1400,25 @@ void ExtShowWallData(int16_t wallnum) //F6
|
||||||
|
|
||||||
static void Show2dText(char *name)
|
static void Show2dText(char *name)
|
||||||
{
|
{
|
||||||
int32_t fp,t;
|
int32_t fp,t,i,color;
|
||||||
uint8_t x=0,y=4,xmax=0,xx=0,col=0;
|
uint8_t x=0,y=4,xmax=0,xx=0,col=0;
|
||||||
clearmidstatbar16();
|
clearmidstatbar16();
|
||||||
|
|
||||||
|
color = whitecol-16;
|
||||||
|
begindrawing();
|
||||||
|
for (i=ydim-STATUS2DSIZ+16; i<ydim; i++)
|
||||||
|
{
|
||||||
|
clearbufbyte((char *)(frameplace + (i*bytesperline)), bytesperline, ((int32_t)color<<24)|((int32_t)color<<16)|((int32_t)color<<8)|color);
|
||||||
|
color--;
|
||||||
|
if (color <= 0) break;
|
||||||
|
}
|
||||||
|
clearbufbyte((char *)(frameplace + (i*bytesperline)), (ydim-i)*(bytesperline), 0);
|
||||||
|
enddrawing();
|
||||||
|
|
||||||
if ((fp=kopen4load(name,0)) == -1)
|
if ((fp=kopen4load(name,0)) == -1)
|
||||||
{
|
{
|
||||||
begindrawing();
|
begindrawing();
|
||||||
printext16(1*4,ydim16+4*8,editorcolors[11],-1,"ERROR: file not found.",0);
|
printext16(1*4,ydim-STATUS2DSIZ+4*8,editorcolors[11],-1,"ERROR: file not found.",0);
|
||||||
enddrawing();
|
enddrawing();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1400,7 +1439,7 @@ static void Show2dText(char *name)
|
||||||
if (x>xmax) xmax=x;
|
if (x>xmax) xmax=x;
|
||||||
}
|
}
|
||||||
tempbuf[x]=0;
|
tempbuf[x]=0;
|
||||||
printext16(xx*4,ydim16+(y*6)+2,editorcolors[11],-1,tempbuf,1);
|
printext16(xx*4,ydim-STATUS2DSIZ+(y*6)+2,editorcolors[11],-1,tempbuf,1);
|
||||||
x=0;
|
x=0;
|
||||||
y++;
|
y++;
|
||||||
if (y>18)
|
if (y>18)
|
||||||
|
|
Loading…
Reference in a new issue