Added "Tools" menu.
This commit is contained in:
parent
9bec43c45b
commit
021168ad1b
@ -33,9 +33,10 @@ typedef struct menu_wall menu_wall;
|
||||
#define SC_NUCLEAR 8
|
||||
#define SC_SPECIAL 9
|
||||
#define SC_LIFE 10
|
||||
#define SC_TOOL 11
|
||||
#define SC_CRACKER 13
|
||||
#define SC_CRACKER2 14
|
||||
#define SC_TOTAL 11
|
||||
#define SC_TOTAL 12
|
||||
|
||||
static menu_section msections[] = //doshow does not do anything currently.
|
||||
{
|
||||
@ -50,6 +51,7 @@ static menu_section msections[] = //doshow does not do anything currently.
|
||||
{"\xC6", "Radioactive", 0, 1},
|
||||
{"\xCC", "Special", 0, 1},
|
||||
{"\xD2", "Life", 0, 1},
|
||||
{"\xC8", "Tools", 0, 1},
|
||||
{"\xD2", "More Life", 0, 1},
|
||||
{"\xC8", "", 0, 0},
|
||||
{"\xC8", "Cracker", 0, 0},
|
||||
|
@ -1946,12 +1946,8 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int *dae, int b, int bq
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (i==SC_SPECIAL)//special menu
|
||||
else if (i==SC_TOOL)//tools menu
|
||||
{
|
||||
if (fwidth > XRES-BARSIZE) { //fancy scrolling
|
||||
float overflow = fwidth-(XRES-BARSIZE), location = ((float)XRES-BARSIZE)/((float)(mx-(XRES-BARSIZE)));
|
||||
xoff = (int)(overflow / location);
|
||||
}
|
||||
for (n = UI_WALLSTART; n<UI_WALLSTART+UI_WALLCOUNT; n++)
|
||||
{
|
||||
if (n==SPC_AIR||n==SPC_HEAT||n==SPC_COOL||n==SPC_VACUUM||n==SPC_WIND||n==SPC_PGRV||n==SPC_NGRV)
|
||||
@ -1986,6 +1982,13 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int *dae, int b, int bq
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (i==SC_SPECIAL)//special menu
|
||||
{
|
||||
if (fwidth > XRES-BARSIZE) { //fancy scrolling
|
||||
float overflow = fwidth-(XRES-BARSIZE), location = ((float)XRES-BARSIZE)/((float)(mx-(XRES-BARSIZE)));
|
||||
xoff = (int)(overflow / location);
|
||||
}
|
||||
for (n = 0; n<PT_NUM; n++)
|
||||
{
|
||||
if (ptypes[n].menusection==i&&ptypes[n].menu==1)
|
||||
@ -2101,7 +2104,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int *dae, int b, int bq
|
||||
{
|
||||
drawtext(vid_buf, XRES-textwidth((char *)msections[i].name)-BARSIZE, sy-10, (char *)msections[i].name, 255, 255, 255, 255);
|
||||
}
|
||||
else if (i==SC_WALL||(i==SC_SPECIAL&&h>=UI_WALLSTART))
|
||||
else if (i==SC_WALL||i==SC_TOOL)
|
||||
{
|
||||
drawtext(vid_buf, XRES-textwidth((char *)wtypes[h-UI_WALLSTART].descs)-BARSIZE, sy-10, (char *)wtypes[h-UI_WALLSTART].descs, 255, 255, 255, 255);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user