24 #include "../ui_main.h"
25 #include "../ui_parse.h"
26 #include "../ui_behaviour.h"
27 #include "../ui_tooltip.h"
28 #include "../ui_nodes.h"
29 #include "../ui_render.h"
32 #include "../../cl_shared.h"
33 #include "../../cgame/cl_game.h"
34 #include "../../input/cl_input.h"
35 #include "../../input/cl_keys.h"
36 #include "../../sound/s_main.h"
38 #include "../../../common/scripts_lua.h"
40 #define EXTRADATA_TYPE baseExtraData_t
41 #define EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE)
42 #define EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE)
85 behaviour->
name =
"baselayout";
void onLoading(uiNode_t *node) override
Called before loading. Used to set default attribute values.
#define UI_RegisterExtradataNodeProperty(BEHAVIOUR, NAME, TYPE, EXTRADATATYPE, ATTRIBUTE)
Initialize a property from extradata of node.
void UI_RegisterBaseLayoutNode(uiBehaviour_t *behaviour)
#define Vector4Set(v, r, g, b, a)
SharedPtr< uiNode > UINodePtr
void GAME_DrawBaseLayout(int baseIdx, int x, int y, int totalMarge, int w, int h, int padding, const vec4_t bgcolor, const vec4_t color)
Atomic structure used to define most of the UI.
void draw(uiNode_t *node) override
Draw a small square with the layout of the given base.
void * UI_SWIG_TypeQuery(const char *name)
This function queries the SWIG type table for a type information structure. It is used in combination...
void UI_GetNodeAbsPos(const uiNode_t *node, vec2_t pos)
Returns the absolute position of a node.
node behaviour, how a node work
#define EXTRADATACONST(node)
void drawTooltip(const uiNode_t *node, int x, int y) const override
Custom tooltip for baseayout.
void GAME_DrawBaseLayoutTooltip(int baseIdx, int x, int y)
Cgame callback to draw tooltip for baselayout UI node.