UFO: Alien Invasion
Loading...
Searching...
No Matches
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"
Include dependency graph for cp_ufo_callbacks.cpp:

Go to the source code of this file.

Functions

static void UFO_GeoSelectUFO_f (void)
 Select ufo on Geoscape.
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

◆ UFO_GeoSelectUFO_f()

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(), GEO_IsUFOSelected, GEO_SelectUFO(), index, and UFO_GetByIDX().

◆ UFO_InitCallbacks()

void UFO_InitCallbacks ( void )

Definition at line 59 of file cp_ufo_callbacks.cpp.

References cgi, and ufoCallbacks.

Referenced by UFO_InitStartup().

◆ UFO_ShutdownCallbacks()

void UFO_ShutdownCallbacks ( void )

Definition at line 64 of file cp_ufo_callbacks.cpp.

References cgi, and ufoCallbacks.

Referenced by UFO_Shutdown().

Variable Documentation

◆ ufoCallbacks

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.

Referenced by UFO_InitCallbacks(), and UFO_ShutdownCallbacks().