7 This control is supported/required by the menu manager :
13 The rest is not required:
32 // INFO: some information about the spawn functions
33 // INFO: Since I dont want another namespace clutching all spawn functions will have a nice and neat
34 // INFO: "_Spawn" suffix.
38 const float ITEM_ALIGN_LEFT = 0;
42 ITEM_ALIGN_FIX_RIGHT, // |text - actually this isnt necessary
43 ITEM_ALIGN_FIX_CENTER, // te|xt
44 ITEM_ALIGN_FIX_LEFT, // text|
45 ITEM_ALIGN_FIRST // for layouts: Item| ... with | being the origin
51 FLAG_TEMPLATE, // this is a template do not touch, do not draw - actually dont do anything with it
52 FLAG_EMBEDDED, // the item cant be selected and all its children are embedded into its parent
53 FLAG_HIDDEN, // events wont be called and it wont be drawn, etc.
54 FLAG_NOSELECT, // cant be selected (but events will be called)
55 FLAG_CONNECTEDONLY, // only if connected (i.e. playing)
56 FLAG_SERVERONLY, // only displayed if server
57 FLAG_DEVELOPERONLY, // only displayed if developer
58 FLAG_DRAWONLY, // only the draw event will be called
59 FLAG_CHILDDRAWONLY, // used to make the children only drawable
60 FLAG_DRAWUPDATEONLY, // only the draw and update event get called
61 FLAG_CHILDDRAWUPDATEONLY, // only the draw and refresh events are called for children
62 FLAG_SEALOFFMOUSE // used to seal all items under the item with this flag off from mouse events
63 // TODO: real seal off all events (not only items not being selected)
67 .entity _link; // item link
69 void() Item_Link_Init;
70 void() Item_Link_Destroy;
71 void() Item_Link_Update;
72 bool( float pKey, float pAscii ) Item_Link_Key;
73 void() Item_Link_MouseEnter;
75 bool() Item_Link_IsSelected;
78 .string link; // full name of the video
79 .string normal; // normal name used with cachepic
81 void() Item_Cinematic_Destroy;
82 void() Item_Cinematic_Init;
84 // Item_Cinematic_Loop [Item_Cinematic]
85 void() Item_Cinematic_Loop_Spawn;
88 // used for non-visible, non-selectable data
89 void() Item_Container_Spawn;
96 // ITEM_EDITBOX (derived from ITEM_TEXT mostly)
97 .string format; // //wildcards are * for each letter except the next after it - \* for * and * / space ' ' for one letter e.g. " . . . " for an ip field
98 .float maxlen; // -1 for infinite