Serious-Engine/Sources/SeriousSam/Menu.h

63 lines
1.4 KiB
C
Raw Normal View History

2016-03-11 14:57:17 +01:00
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
#ifndef SE_INCL_MENU_H
#define SE_INCL_MENU_H
#ifdef PRAGMA_ONCE
#pragma once
#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 class CPlayerProfileMenu gmPlayerProfile;
extern class CSelectPlayersMenu gmSelectPlayersMenu;
extern class CCustomizeAxisMenu gmCustomizeAxisMenu;
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;
#include "GameMenu.h"
2016-03-11 14:57:17 +01:00
#include "MLoadSave.h"
#include "MPlayerProfile.h"
#include "MSelectPlayers.h"
2016-03-11 14:57:17 +01:00
extern CLoadSaveMenu gmLoadSaveMenu;
#endif /* include-once check. */