ui_parse.h
Go to the documentation of this file.00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef CLIENT_UI_UI_PARSE_H
00026 #define CLIENT_UI_UI_PARSE_H
00027
00028 #include "../../common/scripts.h"
00029
00030 struct uiNode_s;
00031 struct uiAction_s;
00032 struct value_s;
00033
00034 void UI_ParseWindow(const char *type, const char *name, const char **text);
00035 void UI_ParseComponent(const char *type, const char **text);
00036 void UI_ParseIcon(const char *name, const char **text);
00037 void UI_ParseUIModel(const char *name, const char **text);
00038 float UI_GetReferenceFloat(const struct uiNode_s* const node, const void *ref);
00039 const char *UI_GetReferenceString(const struct uiNode_s* const node, const char *ref) __attribute__ ((warn_unused_result));
00040 const value_t* UI_FindPropertyByName(const value_t* propertyList, const char* name) __attribute__ ((warn_unused_result));
00041 char* UI_AllocStaticString(const char* string, int size) __attribute__ ((warn_unused_result));
00042 float* UI_AllocStaticFloat(int count) __attribute__ ((warn_unused_result));
00043 vec4_t* UI_AllocStaticColor(int count) __attribute__ ((warn_unused_result));
00044 struct uiAction_s *UI_AllocStaticAction(void) __attribute__ ((warn_unused_result));
00045 qboolean UI_InitRawActionValue(struct uiAction_s* action, struct uiNode_s *node, const struct value_s *property, const char *string);
00046
00047
00049 #define V_UI_MASK 0x8F00
00050 #define V_UI 0x8000
00051 #define V_NOT_UI 0
00052 #define V_UI_ACTION (V_UI + 0)
00053 #define V_UI_EXCLUDERECT (V_UI + 1)
00054 #define V_UI_ICONREF (V_UI + 2)
00055 #define V_UI_IF (V_UI + 3)
00056 #define V_UI_DATAID (V_UI + 4)
00057 #define V_UI_CVAR (V_UI + 0x0100)
00058 #define V_UI_REF (V_UI + 0x0200)
00059 #define V_UI_NODEMETHOD (V_UI + 0x0400)
00061
00062 #define V_UI_ALIGN V_INT
00063
00064
00065 #define V_CVAR_OR_FLOAT (V_UI_CVAR + V_FLOAT)
00066 #define V_CVAR_OR_STRING (V_UI_CVAR + V_STRING)
00067 #define V_CVAR_OR_LONGSTRING (V_UI_CVAR + V_LONGSTRING)
00068 #define V_REF_OF_STRING (V_UI_REF + V_STRING)
00069
00070 #endif