void Mission_Data_Buttons(char plr, int *where) { char index, yr, season, j, temp = 0; /* Okay, now we have to decide whether there are any missions displayed on the screen at this time. If there are any, parse the button. */ if (Data->P[plr].PastMissionCount == 0) { return; } index = 0; season = *where % 2; yr = (*where - season) / 2 + 57; while (yr > Data->P[plr].History[index].MissionYear) { index++; } if (Data->P[plr].History[index].MissionYear > yr) { return; } if (season == 1) { while (Data->P[plr].History[index].Month < 6) { index++; } if (Data->P[plr].History[index].MissionYear > yr) { return; } } do { if (Data->P[plr].History[index].Month > 6 && season == 0) { break; } j = (Data->P[plr].History[index].Month < 6) ? Data->P[plr].History[index].Month : Data->P[plr].History[index].Month - 6; Button2(13 + 49 * j, 40 * (1 + temp), 62 + 49 * j, 40 * (2 + temp) , Draw_Mis_Stats(plr, index, where, 0), key, 0x31 + temp); temp++; index++; } while (Data->P[plr].History[index].MissionYear == yr); }
void MisRev(char plr, int pres) { if (!AI[plr]) { music_start((pres > 0) ? M_SUCCESS : M_UNSUCC); } FadeOut(2, display::graphics.palette(), 10, 0, 0); display::graphics.screen()->clear(0); ShBox(0, 0, 319, 22); InBox(3, 3, 30, 19); IOBox(243, 3, 316, 19); draw_heading(40, 5, "MISSION REVIEW", 0, -1); display::graphics.setForegroundColor(1); draw_string(258, 13, "CONTINUE"); draw_small_flag(plr, 4, 4); key = 0; Draw_Mis_Stats(plr, Data->P[plr].PastMissionCount - 1, 0, 1); key = 0; display::graphics.screen()->clear(0); return; }
void MisRev(char plr, int pres) { if (!AI[plr]) { music_start((pres > 0) ? M_SUCCESS : M_UNSUCC); } FadeOut(2, pal, 10, 0, 0); gxClearDisplay(0, 0); ShBox(0, 0, 319, 22); InBox(3, 3, 30, 19); IOBox(243, 3, 316, 19); DispBig(40, 5, "MISSION REVIEW", 0, -1); grSetColor(1); PrintAt(258, 13, "CONTINUE"); FlagSm(plr, 4, 4); key = 0; Draw_Mis_Stats(plr, Data->P[plr].PastMis - 1, 0, 1); key = 0; gxClearDisplay(0, 0); return; }