#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_draw.h"
#include "ui_node_video.h"
#include "ui_node_abstractnode.h"
#include "../../client.h"
#include "../../cinematic/cl_cinematic.h"
Go to the source code of this file.
Defines | |
#define | EXTRADATA_TYPE videoExtraData_t |
#define | EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE) |
#define | EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE) |
Functions | |
static void | UI_VideoNodeDrawOverWindow (uiNode_t *node) |
static void | UI_VideoNodeDraw (uiNode_t *node) |
static void | UI_VideoNodeInit (uiNode_t *node) |
static void | UI_VideoNodeClose (uiNode_t *node) |
void | UI_RegisterVideoNode (uiBehaviour_t *behaviour) |
Variables | |
static const value_t | properties [] |
add function to play/stop/pause
fix fullscreen, looped video
event when video end
function to move the video by position
function or cvar to know the video position
cvar or property to know the size of the video
Definition in file ui_node_video.c.
#define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, EXTRADATA_TYPE) |
Definition at line 41 of file ui_node_video.c.
#define EXTRADATA_TYPE videoExtraData_t |
Definition at line 40 of file ui_node_video.c.
#define EXTRADATACONST | ( | node | ) | UI_EXTRADATACONST(node, EXTRADATA_TYPE) |
Definition at line 42 of file ui_node_video.c.
void UI_RegisterVideoNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 93 of file ui_node_video.c.
References uiBehaviour_s::close, uiBehaviour_s::draw, uiBehaviour_s::drawOverWindow, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::init, uiBehaviour_s::name, uiBehaviour_s::properties, UI_VideoNodeClose(), UI_VideoNodeDraw(), UI_VideoNodeDrawOverWindow(), and UI_VideoNodeInit().
static void UI_VideoNodeClose | ( | uiNode_t * | node | ) | [static] |
Definition at line 80 of file ui_node_video.c.
References CIN_StopCinematic(), and EXTRADATA.
Referenced by UI_RegisterVideoNode().
static void UI_VideoNodeDraw | ( | uiNode_t * | node | ) | [static] |
Definition at line 62 of file ui_node_video.c.
References EXTRADATA, uiNode_s::image, UI_CaptureDrawOver(), and UI_VideoNodeDrawOverWindow().
Referenced by UI_RegisterVideoNode().
static void UI_VideoNodeDrawOverWindow | ( | uiNode_t * | node | ) | [static] |
Definition at line 44 of file ui_node_video.c.
References CIN_PlayCinematic(), CIN_RunCinematic(), CIN_SetParameters(), CIN_STATUS_NONE, CIN_STATUS_PLAYING, EXTRADATA, uiNode_s::image, pos, uiNode_s::size, UI_GetNodeAbsPos(), UI_VIDEOEXTRADATACONST, and va().
Referenced by UI_RegisterVideoNode(), and UI_VideoNodeDraw().
static void UI_VideoNodeInit | ( | uiNode_t * | node | ) | [static] |
Definition at line 75 of file ui_node_video.c.
References CIN_InitCinematic(), and EXTRADATA.
Referenced by UI_RegisterVideoNode().
const value_t properties[] [static] |
{ {"src", V_CVAR_OR_STRING, offsetof(uiNode_t, image), 0}, {"nosound", V_BOOL, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, nosound), MEMBER_SIZEOF(EXTRADATA_TYPE, nosound)}, {NULL, V_NULL, 0, 0} }
Definition at line 86 of file ui_node_video.c.