1 // Property of Alientrap/AK
2 // custom/creategame/creategame.qh
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
11 void() Item_Nex_Map_Info_Destroy;
12 void() Item_Nex_Map_Info_Spawn;
14 // Map ""database"" Singleton Item_Nex_MapDB
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;
21 void( string pPrefix ) Nex_MapDB_FilterMaps;
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;
28 string() Nex_MapDB_GetFilteredPathAltString;
29 string() Nex_MapDB_GetFilteredNameAltString;
31 string() Nex_MapDB_GetPathAltString;
32 string() Nex_MapDB_GetNameAltString;
34 // see control/data/data.qh
35 // Item_Data_Nex_Name [Item_Data]
36 void( float pEvent ) Item_Data_Nex_Name_DataEvent;
37 void() Item_Data_Nex_Name_Spawn;
39 // Item_DataLink_Nex_MapList [Item_DataLink_Switch]
40 // contains the full .bsp path in value and the text/map name in desc
41 // this is just a placeholder data item - it only keeps a set
42 .string cvarName; // name of the maplist cvar
43 .event init; // if you want to initialize it
44 void( float pEvent ) Item_DataLink_Nex_MapList_DataEvent;
45 void() Item_DataLink_Nex_MapList_Spawn;
47 void() Item_DataLink_Nex_MapList_InitWithMapList;
48 void( entity pItem ) DataLink_Nex_MapList_UpdateRange;
50 // MapList edit commands
51 // these functions work with the entry selected by _realValue
52 void( entity pItem, string pName, string pPath ) DataLink_Nex_MapList_InsertEntryAfter;
53 void( entity pItem ) DataLink_Nex_MapList_DeleteEntry;
54 void( entity pItem ) DataLink_Nex_MapList_MoveEntryUp;
55 void( entity pItem ) DataLink_Nex_MapList_MoveEntryDown;
56 // creates the first entry if necessary
57 void( entity pItem, string pName, string pPath ) DataLink_Nex_MapList_SetFirst;
58 void( entity pItem ) DataLink_Nex_MapList_Clear;
60 // both functions return str zoned strings
61 string( entity pItem ) DataLink_Nex_MapList_GetCurrentName;
62 string( entity pItem ) DataLink_Nex_MapList_GetCurrentPath;
64 // see control/data/data.qh
65 // Item_DataLink_Nex_ModSwitch Item_DataLink_TextSwitch
67 void() Item_DataLink_Nex_ModSwitch_Spawn;
69 //Item_DataLink_Nex_FileList [Item_DataLink_TextSwitch]
70 .string normal; // contains the file extension
71 .string selected; // contains the path
74 void( float pEvent ) Item_DataLink_Nex_FileList_DataEvent;
75 void() Item_DataLink_Nex_FileList_Destroy;
76 void() Item_DataLink_Nex_FileList_Spawn;