Changeset 8673 in orxonox.OLD for branches/gui/src/story_entities/game_menu.h
- Timestamp:
- Jun 21, 2006, 3:43:44 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/story_entities/game_menu.h
r8667 r8673 1 1 /*! 2 * @file simple_game_menu.h2 * @file game_menu.h 3 3 * a StoryEntity that contains a simple game menu 4 4 */ 5 5 6 #ifndef _ SIMPLE_GAME_MENU_H7 #define _ SIMPLE_GAME_MENU_H6 #ifndef _GAME_MENU_H 7 #define _GAME_MENU_H 8 8 9 9 10 10 #include "game_world.h" 11 #include "event_listener.h"12 11 #include "game_world_data.h" 13 12 #include <vector> 14 #include "vector.h"15 16 17 #include "elements/text_element.h"18 19 13 #include "glgui.h" 20 14 21 class SimpleGameMenuData;22 class TiXmlElement;23 class ImageEntity;24 25 15 namespace OrxSound { class SoundSource; } 26 27 class MenuLayer28 {29 public:30 MenuLayer() {}31 virtual ~MenuLayer() {}32 33 34 public:35 std::vector<TextElement*> menuList; //!< the list of the menu items36 std::vector<StoryEntity*> storyList; //!< the list of the StoryEntities for the menu37 std::vector<ImageEntity*> screenshootList; //!< list of the screen shoots FIXME: make a better structure for this stuff38 };39 40 16 41 17 //! a simple game menu based on a story entity … … 44 20 * loadable and is exchangeable very easely :D 45 21 */ 46 class SimpleGameMenu : virtual public GameWorld, virtual public EventListener22 class GameMenu : virtual public GameWorld, virtual public EventListener 47 23 { 48 24 49 25 public: 50 SimpleGameMenu(const TiXmlElement* root = NULL);51 virtual ~ SimpleGameMenu();26 GameMenu(const TiXmlElement* root = NULL); 27 virtual ~GameMenu(); 52 28 53 29 /// TODO TAKE THIS OUT … … 75 51 void quitMenu(); 76 52 77 void TEST(int val) { printf("TEST %d\n", val); }78 79 53 protected: 80 54 virtual void tick(); … … 90 64 91 65 private: 92 std::vector<MenuLayer> menuLayers; //!< the menu layer 93 MenuLayer* selectedLayer; //!< the selected menu layer 94 int layerIndex; 95 96 //std::vector<ImageEntity*> menuList; //!< the list of the menu items 97 ImageEntity* menuSelector; //!< ref to the selector image 98 TextElement* menuSelected; //!< ref to the selected menu entity 99 TextElement* menuStartGame; 100 TextElement* menuStartMultiplayerGame; 101 TextElement* menuQuitGame; 102 int menuSelectedIndex; 66 OrxGui::GLGuiBox* mainMenu; 67 OrxGui::GLGuiBox* audioBox; 68 OrxGui::GLGuiBox* videoBox; 69 OrxGui::GLGuiBox* controlBox; 70 OrxGui::GLGuiBox* levelsBox; 103 71 104 72 Vector cameraVector; … … 110 78 111 79 //! the simple game menu data 112 class SimpleGameMenuData : public GameWorldData80 class GameMenuData : public GameWorldData 113 81 { 114 82 115 83 public: 116 SimpleGameMenuData();117 virtual ~ SimpleGameMenuData();84 GameMenuData(); 85 virtual ~GameMenuData(); 118 86 119 87 virtual ErrorMessage init();
Note: See TracChangeset
for help on using the changeset viewer.