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

Menu related console command callbacks. More...

#include "../../cl_shared.h"
#include "cp_ufo_callbacks.h"
#include "cp_campaign.h"
#include "cp_geoscape.h"
#include "cp_ufo.h"
#include "cp_popup.h"

Go to the source code of this file.

Functions

static void UFO_GeoSelectUFO_f (void)
 Select ufo on Geoscape. More...
 
void UFO_InitCallbacks (void)
 
void UFO_ShutdownCallbacks (void)
 

Variables

static const cmdList_t ufoCallbacks []
 

Detailed Description

Menu related console command callbacks.

Definition in file cp_ufo_callbacks.cpp.

Function Documentation

static void UFO_GeoSelectUFO_f ( void  )
static

Select ufo on Geoscape.

Todo:
Move this popup from cp_popup and rebuild

Definition at line 35 of file cp_ufo_callbacks.cpp.

References ccs, cgi, CL_DisplayPopupInterceptUFO(), cgame_import_s::Cmd_Argv(), GEO_IsUFOSelected, GEO_SelectUFO(), index, ccs_s::numUFOs, and UFO_GetByIDX().

void UFO_InitCallbacks ( void  )

Definition at line 59 of file cp_ufo_callbacks.cpp.

References cgi.

Referenced by UFO_InitStartup().

void UFO_ShutdownCallbacks ( void  )

Definition at line 64 of file cp_ufo_callbacks.cpp.

References cgi.

Referenced by UFO_Shutdown().

Variable Documentation

const cmdList_t ufoCallbacks[]
static
Initial value:
= {
{"geo_ufo_select", UFO_GeoSelectUFO_f, nullptr},
{nullptr, nullptr, nullptr}
}
static void UFO_GeoSelectUFO_f(void)
Select ufo on Geoscape.

Definition at line 54 of file cp_ufo_callbacks.cpp.