Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6841 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Jan 30, 2006, 1:36:43 AM (18 years ago)
Author:
patrick
Message:

trunk: submenu loading work, graphics chaos

Location:
trunk/src/story_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/simple_game_menu.cc

    r6839 r6841  
    3434#include "event_handler.h"
    3535#include "graphics_engine.h"
     36#include "object_manager.h"
     37
    3638
    3739#include "cd_engine.h"
     
    163165      this->menuLayer[1]->storyList.push_back(se);
    164166      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);
    165171    }
    166172  }
     173
     174  this->layerIndex = 0;
    167175}
    168176
  • trunk/src/story_entities/story_entity.cc

    r6839 r6841  
    7373      .describe("If this entry is 1, the world is contained in the SimpleGameMenu");
    7474
     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
    7581  PRINTF(4)("Loaded StoryEntity specific stuff\n");
    7682}
  • trunk/src/story_entities/story_entity.h

    r6839 r6841  
    7575  /** @returns true if the GameWorld should be contained in the SimpleMenu: SimpleMenu specific */
    7676  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; }
    7785
    7886
     
    8795    int nextStoryID;        //!< if this entity has finished, this entity shall be called
    8896    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
    8999    bool        bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific
    90100};
Note: See TracChangeset for help on using the changeset viewer.