X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=menu.h;h=75b68d18cc90ba1b15410276f8b8510a64aee35c;hb=a58db43f1ece9f5b017b1b6734d1b13abef568ea;hp=616de3f84813436c3022f89de8836eb9e024f395;hpb=8dcce44300385b12c46d494c06aadcfa35a8bc14;p=xonotic%2Fdarkplaces.git diff --git a/menu.h b/menu.h index 616de3f8..75b68d18 100644 --- a/menu.h +++ b/menu.h @@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef MENU_H +#define MENU_H + // // the net drivers should just set the apropriate bits in m_activenet, // instead of having the menu code look through their internal tables @@ -25,7 +28,33 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MNET_IPX 1 #define MNET_TCP 2 -extern int m_activenet; +enum m_state_e { + m_none, + m_main, + m_demo, + m_singleplayer, + m_load, + m_save, + m_multiplayer, + m_setup, + m_net, + m_options, + m_video, + m_keys, + m_help, + m_quit, + m_lanconfig, + m_gameoptions, + m_search, + m_slist, + m_options_effects +}; + +extern int m_activenet; +extern int m_return_state; +extern enum m_state_e m_state; +extern qboolean m_return_onerror; +extern char m_return_reason[32]; // // menus @@ -35,4 +64,5 @@ void M_Keydown (int key); void M_Draw (void); void M_ToggleMenu_f (void); +#endif