2016-03-31 02:38:57 +02:00
|
|
|
/* Copyright (c) 2002-2012 Croteam Ltd.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of version 2 of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation
|
|
|
|
|
|
|
|
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. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
|
2016-03-11 14:57:17 +01:00
|
|
|
|
2016-03-12 16:25:48 +01:00
|
|
|
#ifndef SE_INCL_MENU_H
|
|
|
|
#define SE_INCL_MENU_H
|
|
|
|
#ifdef PRAGMA_ONCE
|
2016-03-31 02:38:57 +02:00
|
|
|
#pragma once
|
2016-03-12 16:25:48 +01:00
|
|
|
#endif
|
|
|
|
|
2016-03-11 14:57:17 +01:00
|
|
|
// set new thumbnail
|
|
|
|
void SetThumbnail(CTFileName fn);
|
|
|
|
// remove thumbnail
|
|
|
|
void ClearThumbnail(void);
|
|
|
|
|
|
|
|
void InitializeMenus( void);
|
|
|
|
void DestroyMenus( void);
|
|
|
|
void MenuOnKeyDown( int iVKey);
|
|
|
|
void MenuOnChar(MSG msg);
|
|
|
|
void MenuOnMouseMove(PIX pixI, PIX pixJ);
|
|
|
|
void MenuOnLMBDown(void);
|
|
|
|
BOOL DoMenu( CDrawPort *pdp); // returns TRUE if still active, FALSE if should quit
|
|
|
|
void StartMenus( char *str="");
|
|
|
|
void StopMenus(BOOL bGoToRoot =TRUE);
|
|
|
|
BOOL IsMenusInRoot(void);
|
|
|
|
void ChangeToMenu( class CGameMenu *pgmNew);
|
|
|
|
extern void PlayMenuSound(CSoundData *psd);
|
|
|
|
|
|
|
|
#define KEYS_ON_SCREEN 14
|
|
|
|
#define LEVELS_ON_SCREEN 16
|
|
|
|
#define SERVERS_ON_SCREEN 15
|
|
|
|
#define VARS_ON_SCREEN 14
|
|
|
|
|
|
|
|
extern CListHead _lhServers;
|
|
|
|
|
|
|
|
extern INDEX _iLocalPlayer;
|
|
|
|
|
|
|
|
enum GameMode {
|
|
|
|
GM_NONE = 0,
|
|
|
|
GM_SINGLE_PLAYER,
|
|
|
|
GM_NETWORK,
|
|
|
|
GM_SPLIT_SCREEN,
|
|
|
|
GM_DEMO,
|
|
|
|
GM_INTRO,
|
|
|
|
};
|
|
|
|
extern GameMode _gmMenuGameMode;
|
|
|
|
extern GameMode _gmRunningGameMode;
|
|
|
|
|
|
|
|
extern CGameMenu *pgmCurrentMenu;
|
|
|
|
|
2016-03-12 16:25:48 +01:00
|
|
|
#include "GameMenu.h"
|
2016-03-11 14:57:17 +01:00
|
|
|
|
2016-03-12 16:25:48 +01:00
|
|
|
#include "MLoadSave.h"
|
|
|
|
#include "MPlayerProfile.h"
|
|
|
|
#include "MSelectPlayers.h"
|
2016-03-11 14:57:17 +01:00
|
|
|
|
|
|
|
|
2016-03-12 16:25:48 +01:00
|
|
|
#endif /* include-once check. */
|