cmodes closer to what they used to be, change icons
This commit is contained in:
parent
93f5837974
commit
52d2facf91
@ -2733,6 +2733,11 @@ void set_cmode(int cm) // sets to given view mode
|
||||
itc = 51;
|
||||
if (cmode==CM_VEL)
|
||||
{
|
||||
free(render_modes);
|
||||
render_modes = calloc(2, sizeof(unsigned int));
|
||||
render_mode |= RENDER_EFFE;
|
||||
render_modes[0] = RENDER_EFFE;
|
||||
render_modes[1] = 0;
|
||||
free(display_modes);
|
||||
display_modes = calloc(2, sizeof(unsigned int));
|
||||
display_mode |= DISPLAY_AIRV;
|
||||
@ -2742,6 +2747,11 @@ void set_cmode(int cm) // sets to given view mode
|
||||
}
|
||||
else if (cmode==CM_PRESS)
|
||||
{
|
||||
free(render_modes);
|
||||
render_modes = calloc(2, sizeof(unsigned int));
|
||||
render_mode |= RENDER_EFFE;
|
||||
render_modes[0] = RENDER_EFFE;
|
||||
render_modes[1] = 0;
|
||||
free(display_modes);
|
||||
display_modes = calloc(2, sizeof(unsigned int));
|
||||
display_mode |= DISPLAY_AIRP;
|
||||
@ -2751,6 +2761,11 @@ void set_cmode(int cm) // sets to given view mode
|
||||
}
|
||||
else if (cmode==CM_PERS)
|
||||
{
|
||||
free(render_modes);
|
||||
render_modes = calloc(2, sizeof(unsigned int));
|
||||
render_mode |= RENDER_EFFE;
|
||||
render_modes[0] = RENDER_EFFE;
|
||||
render_modes[1] = 0;
|
||||
free(display_modes);
|
||||
display_modes = calloc(2, sizeof(unsigned int));
|
||||
display_mode |= DISPLAY_PERS;
|
||||
@ -2762,10 +2777,12 @@ void set_cmode(int cm) // sets to given view mode
|
||||
else if (cmode==CM_FIRE)
|
||||
{
|
||||
free(render_modes);
|
||||
render_modes = calloc(2, sizeof(unsigned int));
|
||||
render_modes = calloc(3, sizeof(unsigned int));
|
||||
render_mode |= RENDER_FIRE;
|
||||
render_mode |= RENDER_EFFE;
|
||||
render_modes[0] = RENDER_FIRE;
|
||||
render_modes[1] = 0;
|
||||
render_modes[1] = RENDER_EFFE;
|
||||
render_modes[2] = 0;
|
||||
memset(fire_r, 0, sizeof(fire_r));
|
||||
memset(fire_g, 0, sizeof(fire_g));
|
||||
memset(fire_b, 0, sizeof(fire_b));
|
||||
@ -2774,12 +2791,13 @@ void set_cmode(int cm) // sets to given view mode
|
||||
else if (cmode==CM_BLOB)
|
||||
{
|
||||
free(render_modes);
|
||||
render_modes = calloc(3, sizeof(unsigned int));
|
||||
render_modes = calloc(4, sizeof(unsigned int));
|
||||
render_mode |= RENDER_FIRE;
|
||||
render_mode |= RENDER_BLOB;
|
||||
render_modes[0] = RENDER_FIRE;
|
||||
render_modes[1] = RENDER_BLOB;
|
||||
render_modes[2] = 0;
|
||||
render_modes[2] = RENDER_EFFE;
|
||||
render_modes[3] = 0;
|
||||
memset(fire_r, 0, sizeof(fire_r));
|
||||
memset(fire_g, 0, sizeof(fire_g));
|
||||
memset(fire_b, 0, sizeof(fire_b));
|
||||
@ -2827,6 +2845,11 @@ void set_cmode(int cm) // sets to given view mode
|
||||
}
|
||||
else if (cmode==CM_CRACK)
|
||||
{
|
||||
free(render_modes);
|
||||
render_modes = calloc(2, sizeof(unsigned int));
|
||||
render_mode |= RENDER_EFFE;
|
||||
render_modes[0] = RENDER_EFFE;
|
||||
render_modes[1] = 0;
|
||||
free(display_modes);
|
||||
display_modes = calloc(2, sizeof(unsigned int));
|
||||
display_mode |= DISPLAY_AIRC;
|
||||
@ -6254,13 +6277,15 @@ void drawIcon(pixel * vid_buf, int x, int y, int cmode)
|
||||
drawtext(vid_buf, x, y, "\xC4", 100, 150, 255, 255);
|
||||
break;
|
||||
case CM_NOTHING:
|
||||
drawtext(vid_buf, x, y, "\xD1", 100, 150, 255, 255);//drawtext(vid_buf, x, y, "\x00", 100, 150, 255, 255);
|
||||
//drawtext(vid_buf, x, y, "\xD1", 100, 150, 255, 255);
|
||||
drawtext(vid_buf, x, y, "\x00", 100, 150, 255, 255);
|
||||
break;
|
||||
case CM_GRAD:
|
||||
drawtext(vid_buf, x, y, "\xD3", 255, 50, 255, 255);
|
||||
break;
|
||||
case CM_LIFE:
|
||||
drawtext(vid_buf, x, y, "\xD1", 255, 50, 255, 255);//drawtext(vid_buf, x, y, "\x00", 255, 50, 255, 255);
|
||||
//drawtext(vid_buf, x, y, "\xD1", 255, 50, 255, 255);
|
||||
drawtext(vid_buf, x, y, "\x00", 255, 50, 255, 255);
|
||||
break;
|
||||
case CM_CRACK:
|
||||
drawtext(vid_buf, x, y, "\xD4", 255, 55, 55, 255);
|
||||
@ -6295,7 +6320,7 @@ void render_ui(pixel * vid_buf, int xcoord, int ycoord, int orientation)
|
||||
|
||||
int colour_optioncount = 3;
|
||||
int colour_options[] = {COLOUR_LIFE, COLOUR_HEAT, COLOUR_GRAD};
|
||||
int colour_optionicons[] = {-1, 5, 8};
|
||||
int colour_optionicons[] = {9, 5, 8};
|
||||
char * colour_desc[] = {"Life", "Heat", "Heat Gradient"};
|
||||
|
||||
yoffset = 16;
|
||||
|
Loading…
Reference in New Issue
Block a user