Go to the source code of this file.
Functions | |
qboolean | CL_DisplayHomebasePopup (aircraft_t *aircraft, qboolean alwaysDisplay) |
Display the popup_homebase. | |
void | CL_PopupInit (void) |
Initialise popups. | |
void | CL_DisplayPopupAircraft (aircraft_t *aircraft) |
Display the popup_aircraft. | |
void | CL_DisplayPopupInterceptUFO (aircraft_t *ufo) |
Display the popup_intercept. | |
void | CL_DisplayPopupInterceptMission (mission_t *mission) |
Display the popup_mission. | |
void | CP_PopupList (const char *title, const char *text) |
Wrapper around UI_Popup which also stops the time. |
Definition in file cp_popup.h.
qboolean CL_DisplayHomebasePopup | ( | aircraft_t * | aircraft, | |
qboolean | 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 103 of file cp_popup.c.
References _, AIR_CheckMoveIntoNewHomebase(), AIR_GetCapacityByAircraftWeight(), B_GetFoundedBaseByIDX(), byte, CL_GameTimeStop(), Com_sprintf(), aircraft_s::homebase, INVALID_BASE, LIST_Add(), LIST_AddString(), LIST_Delete(), MAP_SelectAircraft(), MAX_BASES, MAX_VAR, base_s::name, popupNum, qfalse, qtrue, uiNode_s::selectedColor, UI_PopupList(), UI_TextNodeSelectLine(), and VectorSet.
Referenced by B_RemoveAircraftExceedingCapacity(), CL_PopupAircraftClick_f(), and CL_PopupChangeHomebase_f().
void CL_DisplayPopupAircraft | ( | aircraft_t * | aircraft | ) |
Display the popup_aircraft.
Definition at line 216 of file cp_popup.c.
References _, AIR_GetTeamSize(), popup_aircraft_s::aircraft, ccs, CP_MissionToTypeString(), linkedList_s::data, aircraft_s::homebase, popup_aircraft_s::itemsAction, popup_aircraft_s::itemsId, lengthof, mission_s::location, MAP_GetIDXByMission(), ccs_s::missions, base_s::name, linkedList_s::next, popup_aircraft_s::numItems, mission_s::onGeoscape, POPUP_AIRCRAFT_ACTION_BACKTOBASE, POPUP_AIRCRAFT_ACTION_MOVETOMISSION, POPUP_AIRCRAFT_ACTION_STOP, POPUP_AIRCRAFT_CHANGE_HOMEBASE, POPUP_AIRCRAFT_MAX_TEXT, mission_s::pos, Q_strcat(), mission_s::stage, STAGE_NOT_ACTIVE, TEXT_POPUP, popup_aircraft_s::textPopup, UI_PushWindow(), UI_RegisterText(), and va().
Referenced by MAP_MultiSelectExecuteAction_f().
void CL_DisplayPopupInterceptMission | ( | mission_t * | mission | ) |
Display the popup_mission.
Definition at line 312 of file cp_popup.c.
References _, AIR_AircraftStatusToName(), AIR_CanIntercept(), AIR_GetNextFromBase(), AIR_GetTeamSize(), AIR_STATS_SPEED, popup_intercept_s::aircraft, B_GetFoundedBaseByIDX(), ccs, CL_GameTimeStop(), CL_SecondConvert(), Com_sprintf(), GetDistanceOnGlobe(), aircraft_s::homebase, LIST_AddString(), aircraft_s::maxTeamSize, popup_intercept_s::mission, base_s::name, aircraft_s::name, popup_intercept_s::numAircraft, ccs_s::numBases, POPUP_INTERCEPT_MAX_AIRCRAFT, mission_s::pos, aircraft_s::pos, SECONDS_PER_HOUR, aircraft_s::stats, TEXT_AIRCRAFT_LIST, popup_intercept_s::ufo, UI_PushWindow(), UI_RegisterLinkedListText(), and UI_RegisterText().
Referenced by MAP_MultiSelectExecuteAction_f().
void CL_DisplayPopupInterceptUFO | ( | aircraft_t * | ufo | ) |
Display the popup_intercept.
Definition at line 374 of file cp_popup.c.
References _, AII_BaseCanShoot(), AII_InstallationCanShoot(), AIR_AircraftHasEnoughFuel(), AIR_AircraftStatusToName(), AIR_CanIntercept(), AIR_GetNextFromBase(), AIR_GetTeamSize(), popup_intercept_s::aircraft, AIRFIGHT_ChooseWeapon(), AIRFIGHT_WEAPON_CAN_NEVER_SHOOT, B_GetFoundedBaseByIDX(), ccs, CL_GameTimeStop(), Com_DPrintf(), Com_sprintf(), DEBUG_CLIENT, aircraft_s::homebase, aircraft_s::id, INS_GetFoundedInstallationByIDX(), LIST_AddString(), aircraft_s::maxTeamSize, aircraft_s::maxWeapons, popup_intercept_s::mission, installation_s::name, aircraft_s::name, base_s::name, popup_intercept_s::numAircraft, ccs_s::numBases, ccs_s::numInstallations, POPUP_INTERCEPT_MAX_AIRCRAFT, aircraft_s::pos, TEXT_AIRCRAFT_LIST, TEXT_BASE_LIST, popup_intercept_s::ufo, UI_PushWindow(), UI_RegisterLinkedListText(), UI_RegisterText(), va(), and aircraft_s::weapons.
Referenced by MAP_MultiSelectExecuteAction_f().
void CL_PopupInit | ( | void | ) |
Initialise popups.
Definition at line 615 of file cp_popup.c.
References CL_PopupAircraftClick_f(), CL_PopupChangeHomebase_f(), CL_PopupInterceptBaseClick_f(), CL_PopupInterceptClick_f(), CL_PopupInterceptRClick_f(), and Cmd_AddCommand().
Referenced by CP_CampaignInit().
void CP_PopupList | ( | const char * | title, | |
const char * | text | |||
) |
Wrapper around UI_Popup
which also stops the time.
Definition at line 635 of file cp_popup.c.
References CL_GameTimeStop(), and UI_Popup().
Referenced by B_BuildBase_f(), and MS_AddNewMessageSound().