4 // define these menus in the menu def files or dont
5 // if not defined there will be added default items
6 const string MENU_NORMAL_NAME = "Normal";
7 const string MENU_INGAME_NAME = "Ingame";
9 const string MENU_NORMAL_DEFAULT =
10 "// default normal menu\n"
12 " \"type\" \"Item_Window\"\n"
13 " \"name\" \"Normal\"\n"
16 const string MENU_INGAME_DEFAULT =
17 "// default ingame menu\n"
19 " \"type\" \"Item_Window\"\n"
20 " \"name\" \"Ingame\"\n"
23 // insert the files here
24 var string MENU_MAINFILE = "menu/menu";
26 const bool MENU_ALLOWINGAME = false;
32 // used for global managing
34 // loads all files the file lists consists of
36 // used to reset the menu states everytime the menu is activated
37 void() Menu_PerformReinit;
38 // called when the hide event is processed
43 // For runtime addition of items, there is one function:
44 // it supposes that the Item has already been embedded into its parent
45 void( entity pItem ) Menu_LinkItem; // does also link all children and call their spawn function if necessary
46 void( entity pWindow ) Menu_LinkWindow;
48 // to make life easier
49 entity( string pType, string pName, string pParent ) Menu_CreateItem;
50 entity( entity pTemplate, string pName, string pParent, bool pTree ) Menu_DeriveItem;
52 void( entity pItem, string pData ) Menu_AddEntityData;
54 // these functions are pretty private, so dont call them !
55 void( entity pParent ) Menu_LinkChildren;
56 void() Menu_LinkWindows;