]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/menu/custom/creategame/creategame.qh
moved menuqc to qcsrc/menu
[divverent/nexuiz.git] / data / qcsrc / menu / custom / creategame / creategame.qh
1 // Property of Alientrap/AK
2 // custom/creategame/creategame.qh
3
4 // Item_Nex_Map_Info
5 // its a valid item nevertheless
6 .string normal;         // contains the map name
7 .string picture;        // contains the picture that should be displayed
8 .string text;           // contains the description text
9 .string link;           // contains the path to the map
10
11 void() Item_Nex_Map_Info_Destroy;
12 void() Item_Nex_Map_Info_Spawn;
13
14 // Map ""database"" Singleton Item_Nex_MapDB
15
16 // pRoot should be an item with no other children
17 void() Item_Nex_MapDB_EnumFiles;
18 void() Item_Nex_MapDB_Destroy;
19 void() Item_Nex_MapDB_Spawn;
20
21 void( string pPrefix ) Nex_MapDB_FilterMaps;
22
23 entity( string pPath ) Nex_MapDB_GetByPath;
24 //entity( float pIndex ) Nex_MapDB_GetByIndex;
25 entity( float pIndex ) Nex_MapDB_GetFilteredByIndex;
26 float( entity pItem ) Nex_MapDB_GetFilteredIndex;
27
28 string() Nex_MapDB_GetFilteredPathAltString;
29 string() Nex_MapDB_GetFilteredNameAltString;
30
31 string() Nex_MapDB_GetPathAltString;
32 string() Nex_MapDB_GetNameAltString;
33
34 // Item_DataLink_Nex_MapList [Item_DataLink_Switch]
35 // contains the full .bsp path in value and the text/map name in desc
36 // this is just a placeholder data item - it only keeps a set
37 .string cvarName; // name of the maplist cvar
38 .event init; // if you want to initialize it
39 void( float pEvent ) Item_DataLink_Nex_MapList_DataEvent;
40 void() Item_DataLink_Nex_MapList_Spawn;
41
42 void() Item_DataLink_Nex_MapList_InitWithMapList;
43 void( entity pItem ) DataLink_Nex_MapList_UpdateRange;
44
45 // MapList edit commands
46 // these functions work with the entry selected by _realValue
47 void( entity pItem, string pName, string pPath ) DataLink_Nex_MapList_InsertEntryAfter;
48 void( entity pItem ) DataLink_Nex_MapList_DeleteEntry;
49 void( entity pItem ) DataLink_Nex_MapList_MoveEntryUp;
50 void( entity pItem ) DataLink_Nex_MapList_MoveEntryDown;
51 // creates the first entry if necessary
52 void( entity pItem, string pName, string pPath ) DataLink_Nex_MapList_SetFirst;
53 void( entity pItem ) DataLink_Nex_MapList_Clear;
54
55 // both functions return str zoned strings
56 string( entity pItem ) DataLink_Nex_MapList_GetCurrentName;
57 string( entity pItem ) DataLink_Nex_MapList_GetCurrentPath;
58
59 // see control/data/data.qh
60 // Item_DataLink_Nex_ModSwitch Item_DataLink_TextSwitch
61
62 void() Item_DataLink_Nex_ModSwitch_Spawn;
63
64 //Item_DataLink_Nex_FileList [Item_DataLink_TextSwitch]
65 .string normal; // contains the file extension
66 .string selected; // contains the path
67 .string valueList;
68
69 void( float pEvent ) Item_DataLink_Nex_FileList_DataEvent;
70 void() Item_DataLink_Nex_FileList_Destroy;
71 void() Item_DataLink_Nex_FileList_Spawn;