1 ///////////////////////////////////////////////
3 ///////////////////////
4 // This file belongs to dpmod/darkplaces
5 // AK contains all menu functions (especially the required ones)
6 ///////////////////////////////////////////////
22 // required menu functions
23 void( float pKey, float pAscii ) m_keydown =
28 // actually the menu is the only system that needs to react on key events
29 Menu_Key( pKey, pAscii );
53 // call m_frame cause draw is the only menu function called once per frame
56 // now the drawing code
59 // draw the cursor on top of the menu
62 // and now the gfx drawing code (for special fx)
70 // update isserver and clientstate
73 gamestatus = gamestatus | GAME_ISSERVER;
74 if(clientstate() == CS_CONNECTED)
75 gamestatus = gamestatus | GAME_CONNECTED;
77 gamestatus = gamestatus | GAME_DEVELOPER;
79 // let also the snd and gfx know (perhaps for sfx)
84 // let the menu manager know
94 // let the menu manager know
120 // shutdown key system
129 // make sure everything is reset
130 setkeydest( KEY_GAME );
131 setmousetarget( MT_CLIENT );