www.pudn.com > ICE_1.4.zip > gs_optionmenu.h


// Class automatically generated by Dev-C++ New Class wizard 
 
#ifndef GS_OPTMENU_H 
#define GS_OPTMENU_H 
 
/******************** 
  Options Menu game state 
	this class is heavily dependant on tetris_options class 
 ********************/ 
 
//setup Irrlicht definitions 
#include  
//using namespace irr;   
 
#include "Base_Classes/game_state.h" 
#include "../Options/ICE_options.h" 
 
/*********************** 
    OPTIONS GAME STATE 
***********************/ 
//gs_option GUI object IDs enum 
enum tGSO_GUIobjs { 
    GSO_GUI_BTN_DONE = 201, //done selecting opts, return to GS_INTRO 
    GSO_GUI_CHK_HIDECONF,   //toggle the one-time configuration screen at start 
    GSO_GUI_SCR_LEVEL,		//sets the level of difficulty to start at 
 
    GSO_GUI_OBJS_NUM        // unused  
}; 
 
#define OPTIONMENU_BGCOLOR irr::video::SColor(255,200,200,200) 
 
//We dont currently have any options, but if we did 
// they would be set here 
class gs_OptionMenu : public game_State { 
 
public: 
		// class constructor 
		//gsr_Intro(IrrlichtDevice* dv, video::IVideoDriver *dr); 
		gs_OptionMenu(game_StateHandler* handler); 
		// class destructor 
		virtual ~gs_OptionMenu(); 
		// render state 
		virtual void Render(); 
		virtual bool onEvent(irr::SEvent event); 
		virtual void Update(); 
private: 
    //lets you return to GS_INTRO 
    static irr::gui::IGUIButton *m_btn_done; 
    //lets you set whether or not to show configuration screen on start up 
    static irr::gui::IGUICheckBox *m_chk_hideconf; 
 
	static irr::gui::IGUIStaticText *m_txt_scrLevelTxt; 
	static irr::gui::IGUIScrollBar *m_scr_level; 
}; 
 
#endif // GS_INTRO_H