Changeset 2990 for ttyvaders/trunk/src/overlay.c
- Timestamp:
- Oct 18, 2008, 11:42:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ttyvaders/trunk/src/overlay.c
r1460 r2990 25 25 26 26 /* Draw life jauge */ 27 c ucul_set_color(g->cv, CUCUL_COLOR_DARKGRAY, CUCUL_COLOR_BLACK);28 c ucul_putstr(g->cv, 4, 1, dots30);27 caca_set_color(g->cv, CACA_COLOR_DARKGRAY, CACA_COLOR_BLACK); 28 caca_putstr(g->cv, 4, 1, dots30); 29 29 30 30 if(g->p->life > MAX_LIFE * 7 / 10) 31 31 { 32 c ucul_set_color(g->cv, CUCUL_COLOR_GREEN, CUCUL_COLOR_BLACK);32 caca_set_color(g->cv, CACA_COLOR_GREEN, CACA_COLOR_BLACK); 33 33 } 34 34 else if(g->p->life > MAX_LIFE * 3 / 10) 35 35 { 36 c ucul_set_color(g->cv, CUCUL_COLOR_YELLOW, CUCUL_COLOR_BLACK);36 caca_set_color(g->cv, CACA_COLOR_YELLOW, CACA_COLOR_BLACK); 37 37 } 38 38 else 39 39 { 40 c ucul_set_color(g->cv, CUCUL_COLOR_RED, CUCUL_COLOR_BLACK);40 caca_set_color(g->cv, CACA_COLOR_RED, CACA_COLOR_BLACK); 41 41 } 42 42 43 c ucul_putstr(g->cv, 4, 1, dashes30 + (MAX_LIFE - g->p->life) * 30 / MAX_LIFE);43 caca_putstr(g->cv, 4, 1, dashes30 + (MAX_LIFE - g->p->life) * 30 / MAX_LIFE); 44 44 45 c ucul_set_color(g->cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK);46 c ucul_putstr(g->cv, 1, 1, "L |");47 c ucul_putstr(g->cv, 34, 1, "|");45 caca_set_color(g->cv, CACA_COLOR_WHITE, CACA_COLOR_BLACK); 46 caca_putstr(g->cv, 1, 1, "L |"); 47 caca_putstr(g->cv, 34, 1, "|"); 48 48 49 49 /* Draw weapon jauge */ 50 c ucul_set_color(g->cv, CUCUL_COLOR_DARKGRAY, CUCUL_COLOR_BLACK);51 c ucul_putstr(g->cv, 42, 1, dots30 + 10);50 caca_set_color(g->cv, CACA_COLOR_DARKGRAY, CACA_COLOR_BLACK); 51 caca_putstr(g->cv, 42, 1, dots30 + 10); 52 52 53 53 if(g->p->special > MAX_SPECIAL * 9 / 10) 54 54 { 55 c ucul_set_color(g->cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK);55 caca_set_color(g->cv, CACA_COLOR_WHITE, CACA_COLOR_BLACK); 56 56 } 57 57 else if(g->p->special > MAX_SPECIAL * 3 / 10) 58 58 { 59 c ucul_set_color(g->cv, CUCUL_COLOR_CYAN, CUCUL_COLOR_BLACK);59 caca_set_color(g->cv, CACA_COLOR_CYAN, CACA_COLOR_BLACK); 60 60 } 61 61 else 62 62 { 63 c ucul_set_color(g->cv, CUCUL_COLOR_BLUE, CUCUL_COLOR_BLACK);63 caca_set_color(g->cv, CACA_COLOR_BLUE, CACA_COLOR_BLACK); 64 64 } 65 65 66 c ucul_putstr(g->cv, 42, 1, dashes30 + 1066 caca_putstr(g->cv, 42, 1, dashes30 + 10 67 67 + (MAX_SPECIAL - g->p->special) * 20 / MAX_SPECIAL); 68 68 69 c ucul_set_color(g->cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK);70 c ucul_putstr(g->cv, 39, 1, "S |");71 c ucul_putstr(g->cv, 62, 1, "|");69 caca_set_color(g->cv, CACA_COLOR_WHITE, CACA_COLOR_BLACK); 70 caca_putstr(g->cv, 39, 1, "S |"); 71 caca_putstr(g->cv, 62, 1, "|"); 72 72 } 73 73
Note: See TracChangeset
for help on using the changeset viewer.