X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=menu.h;h=8b518327230042e2d7bcaecaf6c6a21cae1e6212;hb=3bd09867d9c573873debc4d2044cfb02728a4ddf;hp=75b68d18cc90ba1b15410276f8b8510a64aee35c;hpb=9b7b7c3fb3c17ed9d3c21529673792eafae2bfab;p=xonotic%2Fdarkplaces.git diff --git a/menu.h b/menu.h index 75b68d18..8b518327 100644 --- a/menu.h +++ b/menu.h @@ -8,7 +8,7 @@ of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. @@ -21,12 +21,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 -// -#define MNET_IPX 1 -#define MNET_TCP 2 +#define M_PROG_FILENAME "menu.dat" +#define M_NAME "menu" +#define M_MAX_EDICTS (1 << 11) // should be enough for a menu enum m_state_e { m_none, @@ -37,7 +34,6 @@ enum m_state_e { m_save, m_multiplayer, m_setup, - m_net, m_options, m_video, m_keys, @@ -45,24 +41,40 @@ enum m_state_e { m_quit, m_lanconfig, m_gameoptions, - m_search, m_slist, - m_options_effects + m_options_effects, + m_options_graphics, + m_options_colorcontrol }; -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 +/* +// hard-coded menus // void M_Init (void); void M_Keydown (int key); void M_Draw (void); void M_ToggleMenu_f (void); +// +// menu prog menu +// +void MP_Init (void); +void MP_Keydown (int key); +void MP_Draw (void); +void MP_ToggleMenu_f (void); +void MP_Shutdown (void);*/ + +// +// menu router +// +void MR_Init (void); +void MR_Restart (void); +void (*MR_Keydown) (int key, char ascii); +void (*MR_Draw) (void); +void (*MR_ToggleMenu_f) (void); +void (*MR_Shutdown) (void); #endif