00001 00002 00003 class startmenu : public IEventReceiver 00004 { 00005 public: 00006 startmenu(); 00007 ~startmenu(); 00008 00009 int init(stringc,stringc); 00010 int update(); 00011 int close(); 00012 00013 int progress(); 00014 00015 position2d<s32> getCurPos(); 00016 00017 u32 getTime(); 00018 00019 stringc getVersion(); 00020 00021 int setCaption(stringw); 00022 00023 virtual bool OnEvent(const SEvent&); 00024 00025 IFileSystem* getFileSystem(); 00026 private: 00027 00028 int log(stringc); 00029 00030 int startCoeur(); 00031 00032 int loadDesc(); 00033 00034 int saveConfig(); 00035 00036 IrrlichtDevice *device; 00037 IVideoDriver* driver; 00038 ISceneManager* smgr; 00039 IGUIEnvironment* env; 00040 00041 E_DRIVER_TYPE dr; 00042 dimension2d<s32> dim; 00043 int bits; 00044 bool fullscreen; 00045 bool stencilbuffer; 00046 bool vsync; 00047 int lang; 00048 00049 stringc langMenu; 00050 00051 bool q; 00052 00053 position2d<s32> curPos; 00054 00055 coeur* c; 00056 00057 stringc path; 00058 stringc pathConfig; 00059 stringc pathStart; 00060 stringc pathMain; 00061 00062 bool start; 00063 00064 std::vector<IGUIButton*>* menus; 00065 std::vector<ITexture*>* menusOut; 00066 std::vector<ITexture*>* menusIn; 00067 00068 IGUIImage* welcome; 00069 IGUIImage* game; 00070 IGUIImage* options; 00071 IGUIImage* starting; 00072 00073 IGUIEditBox* game_path; 00074 IGUIImage* game_img; 00075 IGUIStaticText* game_name; 00076 IGUIStaticText* game_text; 00077 00078 IGUIComboBox* options_dv; 00079 IGUIComboBox* options_res; 00080 IGUICheckBox* options_fs; 00081 IGUIComboBox* options_lang; 00082 00083 IGUIStaticText* starting_text; 00084 IGUIImage* starting_bar; 00085 std::vector<stringw>* starting_txt; 00086 unsigned int progressing; 00087 00088 #ifdef AUDIO 00089 ISoundEngine* engine; 00090 #endif 00091 }; 00092