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 GAME_DrawBaseLayout(int baseIdx, int x, int y, int totalMarge, int w, int h, int padding, const vec4_t bgcolor, const vec4_t color)
void GAME_DrawBaseLayoutTooltip(int baseIdx, int x, int y)
Cgame callback to draw tooltip for baselayout UI node.
Shared game type headers.
Header file for keyboard handler.
Share stuff between the different cgame implementations.
void draw(uiNode_t *node) override
Draw a small square with the layout of the given base.
void onLoading(uiNode_t *node) override
Called before loading. Used to set default attribute values.
void drawTooltip(const uiNode_t *node, int x, int y) const override
Custom tooltip for baseayout.
Header for lua script functions.
node behaviour, how a node work
Atomic structure used to define most of the UI.
#define UI_RegisterExtradataNodeProperty(BEHAVIOUR, NAME, TYPE, EXTRADATATYPE, ATTRIBUTE)
Initialize a property from extradata of node.
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.
SharedPtr< uiNode > UINodePtr
#define EXTRADATACONST(node)
void UI_RegisterBaseLayoutNode(uiBehaviour_t *behaviour)
#define Vector4Set(v, r, g, b, a)