www.pudn.com > coolMEMORY.rar > GameMenu.h


//----------------------------------------------------------------------------- 
// File: GameMenu.h 
//----------------------------------------------------------------------------- 
 
#ifndef __GAME_MENU_H__ 
#define __GAME_MENU_H__ 
 
 
// Definitions: *************************************************************** 
#define MENU_BUTTONS 30 
enum ELEMENT_TYPE 
{ 
	CHECK_ELEMENT, // Check button 
	BUTTON_ELEMENT, // Normal button 
	SLIDER_ELEMENT, // Slider bar 
	TEXT_ELEMENT, // Text bar 
}; 
/////////////////////////////////////////////////////////////////////////////// 
 
// Classes: ******************************************************************* 
typedef class cELEMENT 
{ 
	public: 
		ELEMENT_TYPE eType; // The type of the element 
		AS_3D_VECTOR vWorldPos, // The world position 
					 vSize; // The size 
		BOOL bVisible, // Is it visible 
			 bActive, // Is it active (still visible) 
			 bChecked, // Check button? 
			 bRound; // Round check button 
		char byText[256]; // The text which comes with this button 
		int iSliderMin, iSliderMax, // The min/max values of the slider 
			iCurrentSliderPos; // The current position of the slider (value pos) 
 
		// Checked animation: 
		AS_3D_VECTOR vAniPos, 
					 vAniLastPos, 
					 vAniNewPos, 
					 vAniSpeed; 
 
		void Draw(void); 
		void DrawText(AS_WINDOW *); 
		void Check(void); 
		void (*pLeftMouseButton)(); 
 
} cELEMENT; 
/////////////////////////////////////////////////////////////////////////////// 
 
// Variables: ***************************************************************** 
extern char byCurrentMusic[256]; 
/////////////////////////////////////////////////////////////////////////////// 
 
// Functions: ***************************************************************** 
HRESULT GameMenu(void); 
extern HRESULT GameMenuCheck(AS_WINDOW *); 
extern HRESULT GameMenuDraw(AS_WINDOW *); 
extern void EnumerateCardStyles(void); 
extern void DestroyFoundCardStyles(void); 
extern void SetStandartMenuCamera(void); 
extern void InitGameMenuElements(void); 
extern void InitGameMenuElementsLanguage(void); 
extern void DrawGameMenuElements(AS_WINDOW *); 
extern void CheckGameMenuElements(void); 
extern void MusicNext(void); 
 
// File: AdvancedGameMenu.cpp 
extern void OpenAdvancedGameMenuDialog(void); 
/////////////////////////////////////////////////////////////////////////////// 
 
 
#endif // __GAME_MENU_H__