UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cp_popup.h File Reference

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__
 

Function Documentation

bool CL_DisplayHomebasePopup ( aircraft_t aircraft,
bool  alwaysDisplay 
)

Display the popup_homebase.

Parameters
[in]aircraftPointer to aircraft we want to change homebase.
[in]alwaysDisplayFalse 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 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().

void CL_PopupInit ( void  )
void CP_Popup ( const char *  title,
const char *  text,
  ... 
)