34 #include "../ui_nodes.h"
35 #include "../ui_parse.h"
36 #include "../ui_behaviour.h"
37 #include "../ui_render.h"
38 #include "../../renderer/r_draw.h"
42 #include "../../../common/scripts_lua.h"
44 #define EXTRADATA_TYPE 0
74 behaviour->
name =
"texture";
bool Q_strnull(const char *string)
#define UI_RegisterNodeProperty(BEHAVIOUR, NAME, TYPE, OBJECTTYPE, ATTRIBUTE)
Initialize a property.
SharedPtr< uiNode > UINodePtr
void UI_DrawNormImage(bool flip, float x, float y, float w, float h, float sh, float th, float sl, float tl, const image_t *image)
Draw a normalized (to the screen) image.
const char * UI_GetReferenceString(const uiNode_t *const node, const char *ref)
Atomic structure used to define most of the UI.
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
const struct image_s * UI_LoadWrappedImage(const char *name)
Searches for a wrapped image in the image array.
void draw(uiNode_t *node) override
Draws the texture node.
void UI_RegisterTextureNode(uiBehaviour_t *behaviour)