cp_popup.h File Reference

This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Definition in file cp_popup.h.


Function Documentation

qboolean CL_DisplayHomebasePopup ( aircraft_t aircraft,
qboolean  alwaysDisplay 
)

Display the popup_homebase.

Parameters:
[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.
Returns:
true if popup is displayed.

< 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  ) 
void CL_DisplayPopupInterceptMission ( mission_t mission  ) 
void CL_DisplayPopupInterceptUFO ( aircraft_t ufo  ) 
void CL_PopupInit ( void   ) 
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().


Generated by  doxygen 1.6.2