]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/source/custom/creategame/creategame.qh
-Added a management window to creategame, which allows you to save and load
[divverent/nexuiz.git] / scmenu / source / 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 entity( string pPath ) Nex_MapDB_GetByPath;
22 entity( float pIndex ) Nex_MapDB_GetByIndex;
23 float( entity pItem ) Nex_MapDB_GetIndex;
24
25 string() Nex_MapDB_GetPathAltString;
26 string() Nex_MapDB_GetNameAltString;
27
28 // see control/data/data.qh
29 // Item_Data_Nex_Name [Item_Data]
30 void( float pEvent ) Item_Data_Nex_Name_DataEvent;
31 void() Item_Data_Nex_Name_Spawn;
32
33 // Item_DataLink_Nex_MapList [Item_DataLink_Switch]
34 // contains the full .bsp path in value and the text/map name in desc
35 // this is just a placeholder data item - it only keeps a set
36 .string cvarName; // name of the maplist cvar
37 .event init; // if you want to initialize it
38 void( float pEvent ) Item_DataLink_Nex_MapList_DataEvent;
39 void() Item_DataLink_Nex_MapList_Spawn;
40
41 void() Item_DataLink_Nex_MapList_InitWithMapList;
42 void( entity pItem ) DataLink_Nex_MapList_UpdateRange;
43
44 // MapList edit commands
45 // these functions work with the entry selected by _realValue
46 void( entity pItem, string pName, string pPath ) DataLink_Nex_MapList_InsertEntryAfter;
47 void( entity pItem ) DataLink_Nex_MapList_DeleteEntry;
48 void( entity pItem ) DataLink_Nex_MapList_MoveEntryUp;
49 void( entity pItem ) DataLink_Nex_MapList_MoveEntryDown;
50 // creates the first entry if necessary
51 void( entity pItem, string pName, string pPath ) DataLink_Nex_MapList_SetFirst;
52 void( entity pItem ) DataLink_Nex_MapList_Clear;
53
54 // both functions return str zoned strings
55 string( entity pItem ) DataLink_Nex_MapList_GetCurrentName;
56 string( entity pItem ) DataLink_Nex_MapList_GetCurrentPath;
57
58 // see control/data/data.qh
59 // Item_DataLink_Nex_ModSwitch Item_DataLink_TextSwitch
60
61 void() Item_DataLink_Nex_ModSwitch_Spawn;
62
63 //Item_DataLink_Nex_FileList [Item_DataLink_TextSwitch]
64 .string normal; // contains the file extension
65 .string selected; // contains the path
66 .string valueList;
67
68 void( float pEvent ) Item_DataLink_Nex_FileList_DataEvent;
69 void() Item_DataLink_Nex_FileList_Destroy;
70 void() Item_DataLink_Nex_FileList_Spawn;