|
UFO: Alien Invasion
|
#include "../../DateTime.h"#include "../ui_nodes.h"#include "../ui_input.h"#include "../ui_parse.h"#include "../ui_behaviour.h"#include "../ui_actions.h"#include "../ui_render.h"#include "ui_node_geoscape.h"#include "../../renderer/r_framebuffer.h"#include "../../renderer/r_geoscape.h"#include "../../cl_shared.h"#include "../../cgame/cl_game.h"#include "../../input/cl_input.h"#include "../../input/cl_keys.h"#include "../../../common/scripts_lua.h"
Go to the source code of this file.
Macros | |
| #define | EXTRADATA_TYPE mapExtraData_t |
| #define | EXTRADATA(node) |
| #define | EXTRADATACONST(node) |
| #define | DAWN 0.03 |
Enumerations | |
| enum | mapDragMode_t { MODE_NULL , MODE_SHIFT2DMAP , MODE_SHIFT3DMAP , MODE_ZOOMMAP } |
| Status of the node. More... | |
Functions | |
| static void | UI_GeoscapeNodeZoomIn (uiNode_t *node, const uiCallContext_t *context) |
| static void | UI_GeoscapeNodeZoomOut (uiNode_t *node, const uiCallContext_t *context) |
| static void | UI_GeoscapeNodeZoom_f (void) |
| Command binding for map zooming. | |
| static void | UI_GeoscapeNodeScroll_f (void) |
| Command binding for map scrolling. | |
| void | UI_RegisterGeoscapeNode (uiBehaviour_t *behaviour) |
Variables | |
| static int | oldMousePosX = 0 |
| static int | oldMousePosY = 0 |
| static mapDragMode_t | mode = MODE_NULL |
| static const float | ROTATE_SPEED = 0.5f |
| static const float | GLOBE_ROTATE = -90.0f |
| static const float | SMOOTHING_STEP_2D = 0.02f |
| static const float | SMOOTHACCELERATION = 0.06f |
| static cvar_t * | cl_3dmap |
| static cvar_t * | cl_3dmapAmbient |
| static cvar_t * | cl_mapzoommax |
| static cvar_t * | cl_mapzoommin |
| static uiNode_t * | geoscapeNode |
| image_t * | r_dayandnightTexture |
| image_t * | r_radarTexture |
| image_t * | r_xviTexture |
| #define DAWN 0.03 |
Definition at line 92 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::calcAndUploadDayAndNightTexture().
| #define EXTRADATA | ( | node | ) |
Definition at line 43 of file ui_node_geoscape.cpp.
| #define EXTRADATA_TYPE mapExtraData_t |
Definition at line 42 of file ui_node_geoscape.cpp.
| #define EXTRADATACONST | ( | node | ) |
Definition at line 44 of file ui_node_geoscape.cpp.
| enum mapDragMode_t |
Status of the node.
| Enumerator | |
|---|---|
| MODE_NULL | No interaction |
| MODE_SHIFT2DMAP | Mouse captured to move the 2D geoscape |
| MODE_SHIFT3DMAP | Mouse captured to move the 3D geoscape |
| MODE_ZOOMMAP | Mouse captured to zoom on the geoscape |
Definition at line 49 of file ui_node_geoscape.cpp.
Command binding for map scrolling.
Definition at line 611 of file ui_node_geoscape.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), geoscapeNode, i, PITCH, ROTATE_SPEED, UI_MAPEXTRADATA, UI_MAPEXTRADATACONST, VectorCopy, VectorLength(), VectorSubtract, and YAW.
Referenced by UI_RegisterGeoscapeNode().
Command binding for map zooming.
Definition at line 561 of file ui_node_geoscape.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), geoscapeNode, UI_MAPEXTRADATA, UI_MAPEXTRADATACONST, and VectorCopy.
Referenced by UI_RegisterGeoscapeNode().
|
static |
Definition at line 545 of file ui_node_geoscape.cpp.
References uiNode_t::behaviour, SharedPtr< T >::get(), m, and uiBehaviour_t::manager.
Referenced by UI_RegisterGeoscapeNode().
|
static |
Definition at line 551 of file ui_node_geoscape.cpp.
References uiNode_t::behaviour, SharedPtr< T >::get(), m, and uiBehaviour_t::manager.
Referenced by UI_RegisterGeoscapeNode().
| void UI_RegisterGeoscapeNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 694 of file ui_node_geoscape.cpp.
References cl_3dmap, cl_3dmapAmbient, cl_mapzoommax, cl_mapzoommin, Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, UI_GeoscapeNodeScroll_f(), UI_GeoscapeNodeZoom_f(), UI_GeoscapeNodeZoomIn(), UI_GeoscapeNodeZoomOut(), UI_RegisterExtradataNodeProperty, UI_RegisterNodeMethod(), UI_SWIG_TypeQuery(), and V_FLOAT.
|
static |
3D geoscape or flat geoscape
Definition at line 78 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::draw(), and UI_RegisterGeoscapeNode().
|
static |
Definition at line 79 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::draw(), and UI_RegisterGeoscapeNode().
|
static |
Definition at line 80 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::draw(), and UI_RegisterGeoscapeNode().
|
static |
Definition at line 81 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::draw(), and UI_RegisterGeoscapeNode().
|
static |
Definition at line 84 of file ui_node_geoscape.cpp.
|
static |
Definition at line 74 of file ui_node_geoscape.cpp.
|
static |
Status of the node. It is related to a captured node (only one at a time), that why it is global.
Definition at line 72 of file ui_node_geoscape.cpp.
|
static |
Old X-location of the mouse, when the node is captured. It is related to a captured node (only one at a time), that why it is global.
Definition at line 60 of file ui_node_geoscape.cpp.
|
static |
Old y-location of the mouse, when the node is captured. It is related to a captured node (only one at a time), that why it is global.
Definition at line 66 of file ui_node_geoscape.cpp.
| image_t* r_dayandnightTexture |
this is the mask that is used to display day/night on (2d-)geoscape
Definition at line 87 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::calcAndUploadDayAndNightTexture(), uiGeoscapeNode::draw(), uiGeoscapeNode::onLoading(), and R_DrawFlatGeoscape().
| image_t* r_radarTexture |
radar texture
Definition at line 89 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::draw(), uiGeoscapeNode::onLoading(), R_Draw3DGlobe(), and R_DrawFlatGeoscape().
| image_t* r_xviTexture |
XVI alpha mask texture
Definition at line 90 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::draw(), uiGeoscapeNode::onLoading(), R_Draw3DGlobe(), and R_DrawFlatGeoscape().
|
static |
Definition at line 73 of file ui_node_geoscape.cpp.
|
static |
the acceleration to use during a smooth motion (This affects the speed of the smooth motion)
Definition at line 76 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::smoothRotate().
|
static |
Definition at line 75 of file ui_node_geoscape.cpp.
Referenced by uiGeoscapeNode::smoothTranslate().