1 ///////////////////////////////////////////////
3 ///////////////////////
4 // This file belongs to dpmod/darkplaces
5 // AK contains all menu functions (especially the required ones)
6 ///////////////////////////////////////////////
24 // required menu functions
25 void( float pKey, float pAscii ) m_keydown =
30 // actually the menu is the only system that needs to react on key events
31 Menu_Key( pKey, pAscii );
55 // call m_frame cause draw is the only menu function called once per frame
58 // now the drawing code
61 // draw the cursor on top of the menu
64 // and now the gfx drawing code (for special fx)
72 // update isserver and clientstate
75 gamestatus = gamestatus | GAME_ISSERVER;
76 if( clientstate() == CS_CONNECTED )
77 gamestatus = gamestatus | GAME_CONNECTED;
78 if( cvar("developer") )
79 gamestatus = gamestatus | GAME_DEVELOPER;
81 // let also the snd and gfx know (perhaps for sfx)
86 // let the menu manager know
96 // let the menu manager know
122 // shutdown key system
131 // make sure everything is reset
132 setkeydest( KEY_GAME );
133 setmousetarget( MT_CLIENT );