UFO: Alien Invasion
|
Go to the source code of this file.
Functions | |
bool | CL_DisplayHomebasePopup (aircraft_t *aircraft, bool alwaysDisplay) |
Display the popup_homebase. More... | |
void | CL_PopupInit (void) |
Initialise popups. More... | |
void | CL_DisplayPopupInterceptUFO (aircraft_t *ufo) |
Display the popup_intercept. More... | |
void | CL_DisplayPopupInterceptMission (struct mission_s *mission) |
Display the popup_mission. More... | |
void | CP_Popup (const char *title, const char *text,...) __attribute__((format(__printf__ |
bool CL_DisplayHomebasePopup | ( | aircraft_t * | aircraft, |
bool | alwaysDisplay | ||
) |
Display the popup_homebase.
[in] | aircraft | Pointer to aircraft we want to change homebase. |
[in] | alwaysDisplay | False if popup should be displayed only if at least one base is available. |
< Set color for selected entry.
Definition at line 66 of file cp_popup.cpp.
References _, AIR_CheckMoveIntoNewHomebase(), B_GetNext(), cgi, Com_sprintf(), CP_GameTimeStop(), GEO_SelectAircraft(), aircraft_s::homebase, base_s::idx, INVALID_BASE, LIST_Add(), MAX_VAR, base_s::name, popupNum, uiNode_t::selectedColor, cgame_import_s::UI_PopupList(), and VectorSet.
Referenced by AIR_ShowChangeHomebaseAircraft_f(), and CL_PopupChangeHomebase_f().
Display the popup_mission.
Definition at line 184 of file cp_popup.cpp.
References _, AIR_AircraftStatusToName(), AIR_CanIntercept(), AIR_CRASHED, AIR_ForeachSorted, AIR_GetTeamSize(), AIR_SortByDistance(), AIR_STATS_SPEED, popup_intercept_s::aircraft, cgi, Com_sprintf(), CP_GameTimeStop(), CP_SecondConvert(), GetDistanceOnGlobe(), popup_intercept_s::mission, popup_intercept_s::numAircraft, POPUP_INTERCEPT_MAX_AIRCRAFT, mission_s::pos, SECONDS_PER_HOUR, TEXT_AIRCRAFT_LIST, and popup_intercept_s::ufo.
Referenced by MIS_GeoSelectMission_f().
void CL_DisplayPopupInterceptUFO | ( | aircraft_t * | ufo | ) |
Display the popup_intercept.
Definition at line 237 of file cp_popup.cpp.
References _, AII_BaseCanShoot(), AII_InstallationCanShoot(), AIR_AircraftHasEnoughFuel(), AIR_AircraftStatusToName(), AIR_CanIntercept(), AIR_ForeachSorted, AIR_GetTeamSize(), AIR_SortByDistance(), popup_intercept_s::aircraft, AIRFIGHT_ChooseWeapon(), AIRFIGHT_WEAPON_CAN_NEVER_SHOOT, B_GetNext(), cgi, Com_sprintf(), CP_GameTimeStop(), DEBUG_CLIENT, INS_Foreach, popup_intercept_s::mission, base_s::name, popup_intercept_s::numAircraft, POPUP_INTERCEPT_MAX_AIRCRAFT, aircraft_s::pos, TEXT_AIRCRAFT_LIST, TEXT_BASE_LIST, popup_intercept_s::ufo, and va().
Referenced by UFO_GeoSelectUFO_f().
Initialise popups.
Definition at line 457 of file cp_popup.cpp.
References cgi, CL_PopupChangeHomebase_f(), CL_PopupInterceptBaseClick_f(), CL_PopupInterceptClick_f(), CL_PopupInterceptRClick_f(), and OBJZERO.
Referenced by CP_CampaignInit().
void CP_Popup | ( | const char * | title, |
const char * | text, | ||
... | |||
) |