void LimboText(char plr,int astro) { RectFill(44,31,145,40,3);grSetColor(11); int col; if (Data->P[plr].Pool[astro].Mood>=65) col=16; if (Data->P[plr].Pool[astro].Mood<65 && Data->P[plr].Pool[astro].Mood>=40) col=11; if (Data->P[plr].Pool[astro].Mood<40 && Data->P[plr].Pool[astro].Mood>=20) col=8; if (Data->P[plr].Pool[astro].Mood<20) col=0; if (Data->P[plr].Pool[astro].Mood==0) col=3; grSetColor(col); // Print name in green/yellow/red/black depending on mood -Leon if (Data->P[plr].Pool[astro].RDelay>0) grSetColor(0); // Print name in black if 'naut has announced retirement (override mood) -Leon PrintAt(46,37,Data->P[plr].Pool[astro].Name); grSetColor(11); RectFill(49,112,80,119,3);grSetColor(11); switch (Data->P[plr].Pool[astro].Group) { case 0: PrintAt(53,118,"I");break; case 1: PrintAt(53,118,"II");break; case 2: PrintAt(53,118,"III");break; case 3: PrintAt(53,118,"IV");break; case 4: PrintAt(53,118,"V");break; } RectFill(123,62,145,77,3); RectFill(125,79,145,85,3); RectFill(131,86,145,92,3); RectFill(123,95,145,101,3); RectFill(130,54,155,61,3); grSetColor(col); // Print mood in green/yellow/red/black depending on mood -Leon DispNum(132,60,Data->P[plr].Pool[astro].Mood); grSetColor(11); DispNum(125,68,Data->P[plr].Pool[astro].Cap); DispNum(123,76,Data->P[plr].Pool[astro].LM); DispNum(125,84,Data->P[plr].Pool[astro].EVA); DispNum(131,92,Data->P[plr].Pool[astro].Docking); DispNum(125,100,Data->P[plr].Pool[astro].Endurance); RectFill(127,113,141,120,3);grSetColor(11); DispNum(130,118,Data->P[plr].Pool[astro].Active); AstFaces(plr,10,52,Data->P[plr].Pool[astro].Face); return; }
void LimboText(char plr, int astro) { fill_rectangle(44, 31, 145, 40, 3); display::graphics.setForegroundColor(11); int col; if (Data->P[plr].Pool[astro].Mood >= 65) { col = 16; } if (Data->P[plr].Pool[astro].Mood < 65 && Data->P[plr].Pool[astro].Mood >= 40) { col = 11; } if (Data->P[plr].Pool[astro].Mood < 40 && Data->P[plr].Pool[astro].Mood >= 20) { col = 8; } if (Data->P[plr].Pool[astro].Mood < 20) { col = 0; } if (Data->P[plr].Pool[astro].Mood == 0) { col = 3; } display::graphics.setForegroundColor(col); // Print 'naut name in green/yellow/red/black depending on mood -Leon if (Data->P[plr].Pool[astro].RetirementDelay > 0) { display::graphics.setForegroundColor(0); // Print name in black if 'naut has announced retirement (override mood) -Leon } draw_string(46, 37, Data->P[plr].Pool[astro].Name); display::graphics.setForegroundColor(11); fill_rectangle(49, 112, 80, 119, 3); display::graphics.setForegroundColor(11); switch (Data->P[plr].Pool[astro].Group) { case 0: draw_string(53, 118, "I"); break; case 1: draw_string(53, 118, "II"); break; case 2: draw_string(53, 118, "III"); break; case 3: draw_string(53, 118, "IV"); break; case 4: draw_string(53, 118, "V"); break; } fill_rectangle(123, 62, 145, 77, 3); fill_rectangle(125, 79, 145, 85, 3); fill_rectangle(131, 86, 145, 92, 3); fill_rectangle(123, 95, 145, 101, 3); fill_rectangle(130, 54, 155, 61, 3); display::graphics.setForegroundColor(col); // Print 'naut mood in green/yellow/red/black depending on mood -Leon draw_number(132, 60, Data->P[plr].Pool[astro].Mood); display::graphics.setForegroundColor(11); draw_number(125, 68, Data->P[plr].Pool[astro].Cap); draw_number(123, 76, Data->P[plr].Pool[astro].LM); draw_number(125, 84, Data->P[plr].Pool[astro].EVA); draw_number(131, 92, Data->P[plr].Pool[astro].Docking); draw_number(125, 100, Data->P[plr].Pool[astro].Endurance); fill_rectangle(127, 113, 141, 120, 3); display::graphics.setForegroundColor(11); draw_number(130, 118, Data->P[plr].Pool[astro].Active); AstFaces(plr, 10, 52, Data->P[plr].Pool[astro].Face); return; }
void DisplAst(char plr, char *where, char *where2) { char temp[11] = "GROUP \0"; char Ast_Name[11]; if (Data->P[plr].AstroCount == 0) { return; } fill_rectangle(165, 39, 230, 35, 3); fill_rectangle(165, 49, 230, 45, 3); fill_rectangle(172, 68, 230, 63, 3); fill_rectangle(211, 78, 229, 73, 3); fill_rectangle(214, 89, 231, 84, 3); fill_rectangle(250, 107, 263, 102, 3); fill_rectangle(223, 115, 241, 110, 3); fill_rectangle(202, 123, 218, 118, 3); fill_rectangle(216, 131, 240, 126, 3); fill_rectangle(230, 139, 254, 134, 3); fill_rectangle(248, 149, 272, 144, 3); fill_rectangle(216, 159, 318, 154, 3); fill_rectangle(220, 169, 280, 164, 3); fill_rectangle(288, 105, 308, 133, 3); fill_rectangle(239, 83, 306, 97, 3); display::graphics.setForegroundColor(1); if ((plr == 0 && abuf[*where].Missions >= 4) || abuf[*where].Hero == 1) { Display_ARROW(4, 289, 105); } else if ((plr == 1 && abuf[*where].Missions >= 4) || abuf[*where].Hero == 1) { Display_ARROW(5, 290, 105); } if (abuf[*where].Missions > 0) { Display_ARROW(6, 245, 83); } draw_number(214, 78, abuf[*where].Missions); draw_number(217, 89, abuf[*where].Prestige); draw_number(258, 149, abuf[*where].Days); draw_number(253, 107, abuf[*where].Cap); draw_number(227, 115, abuf[*where].LM); draw_number(204, 123, abuf[*where].EVA); draw_number(220, 131, abuf[*where].Docking); draw_number(234, 139, abuf[*where].Endurance); draw_number(173, 68, abuf[*where].Active / 2); draw_string(0, 0, " YEAR"); if (abuf[*where].Active / 2 != 1) { draw_string(0, 0, "S"); } memset(Ast_Name, 0x00, sizeof Ast_Name); strncpy(Ast_Name, abuf[*where].Name, 10); if (abuf[*where].Sex == 1) { display::graphics.setForegroundColor(5); // Show females in blue } draw_string(165, 39, Ast_Name); // Displays name of astronaut/cosmonaut display::graphics.setForegroundColor(11); strcat(temp, Nums[abuf[*where].Group]); draw_string(165, 49, temp); display::graphics.setForegroundColor(12); draw_number(225, 169, *where + 1); draw_string(0, 0, " OF "); draw_number(0, 0, Data->P[plr].AstroCount); DispLoc(plr, where); DisplAstData(plr, where, where2); GradRect(234, 30, 313, 79, plr); AstFaces(plr, 234, 30, abuf[*where].Face); //30 }