Changeset 6841 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jan 30, 2006, 1:36:43 AM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/simple_game_menu.cc
r6839 r6841 34 34 #include "event_handler.h" 35 35 #include "graphics_engine.h" 36 #include "object_manager.h" 37 36 38 37 39 #include "cd_engine.h" … … 163 165 this->menuLayer[1]->storyList.push_back(se); 164 166 PRINTF(0)("Got a new menu entry |%s|\n", se->getName()); 167 ImageEntity* ie = new ImageEntity(); 168 ie->setAbsCoor(0.0f, this->menuLayer[1]->menuList.size() * -10.0f, 0.0f); 169 //State::getObjectManager()->toList(dynamic_cast<WorldEntity*>(ie), OM_DEAD); 170 //this->menuLayer[1]->menuList.push_back(ie); 165 171 } 166 172 } 173 174 this->layerIndex = 0; 167 175 } 168 176 -
trunk/src/story_entities/story_entity.cc
r6839 r6841 73 73 .describe("If this entry is 1, the world is contained in the SimpleGameMenu"); 74 74 75 LoadParam(root, "menu-item-image", this, StoryEntity, setMenuItemImage) 76 .describe("If this entry is 1, the world is contained in the SimpleGameMenu"); 77 78 LoadParam(root, "menu-screenshoot", this, StoryEntity, setMenuScreenshoot) 79 .describe("If this entry is 1, the world is contained in the SimpleGameMenu"); 80 75 81 PRINTF(4)("Loaded StoryEntity specific stuff\n"); 76 82 } -
trunk/src/story_entities/story_entity.h
r6839 r6841 75 75 /** @returns true if the GameWorld should be contained in the SimpleMenu: SimpleMenu specific */ 76 76 inline bool isContainedInMenu() { return this->bMenuEntry; } 77 /** sets the menu item image of this StoryEntity @param name name */ 78 inline void setMenuItemImage(const char* image) { this->menuItemImage = image; } 79 /** @returns the menu item image of this StoryEntity */ 80 inline const char* getMenuItemImage() { return this->menuItemImage; } 81 /** sets the menu screenshoot of this StoryEntity @param name name */ 82 inline void setMenuScreenshoot(const char* image) { this->menuScreenshoot = image; } 83 /** @returns the menu screenshoot of this StoryEntity */ 84 inline const char* getMenuScreenshoot() { return this->menuScreenshoot; } 77 85 78 86 … … 87 95 int nextStoryID; //!< if this entity has finished, this entity shall be called 88 96 const char* description;//!< the description of the StoryEntity 97 const char* menuItemImage;//!< the item image of the StoryEntity 98 const char* menuScreenshoot;//!< the screenshoot of the StoryEntity 89 99 bool bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific 90 100 };
Note: See TracChangeset
for help on using the changeset viewer.