Changeset 9667 for code/trunk/src/orxonox/overlays
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/GUISheet.cc
r7401 r9667 36 36 namespace orxonox 37 37 { 38 CreateFactory(GUISheet);38 RegisterClass(GUISheet); 39 39 40 GUISheet::GUISheet( BaseObject* creator)41 : BaseObject(c reator)40 GUISheet::GUISheet(Context* context) 41 : BaseObject(context) 42 42 , bShowOnLoad_(false) 43 43 , bHidePrevious_(false) -
code/trunk/src/orxonox/overlays/GUISheet.h
r7401 r9667 41 41 { 42 42 public: 43 GUISheet( BaseObject* creator);43 GUISheet(Context* context); 44 44 ~GUISheet(); 45 45 -
code/trunk/src/orxonox/overlays/InGameConsole.cc
r9550 r9667 49 49 #include "util/output/OutputManager.h" 50 50 #include "core/CoreIncludes.h" 51 #include "core/ ConfigValueIncludes.h"51 #include "core/config/ConfigValueIncludes.h" 52 52 #include "core/command/ConsoleCommand.h" 53 53 #include "core/GUIManager.h" … … 110 110 111 111 // destroy the underlaying shell 112 this->shell_->destroy();112 delete this->shell_; 113 113 114 114 Ogre::OverlayManager* ovMan = Ogre::OverlayManager::getSingletonPtr(); -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r8858 r9667 63 63 SetConsoleCommand("OrxonoxOverlay", "rotateOverlay", &OrxonoxOverlay::rotateOverlay); 64 64 65 OrxonoxOverlay::OrxonoxOverlay(BaseObject* creator) 66 : BaseObject(creator) 65 RegisterClass(OrxonoxOverlay); 66 67 OrxonoxOverlay::OrxonoxOverlay(Context* context) 68 : BaseObject(context) 67 69 { 68 70 RegisterObject(OrxonoxOverlay); -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.h
r8706 r9667 42 42 #include "util/OgreForwardRefs.h" 43 43 #include "core/BaseObject.h" 44 #include "core/Super.h"45 44 #include "core/WindowEventListener.h" 45 #include "core/class/Super.h" 46 46 47 47 namespace orxonox … … 87 87 88 88 public: 89 OrxonoxOverlay( BaseObject* creator);89 OrxonoxOverlay(Context* context); 90 90 virtual ~OrxonoxOverlay(); 91 91 -
code/trunk/src/orxonox/overlays/OverlayGroup.cc
r8309 r9667 41 41 namespace orxonox 42 42 { 43 CreateFactory(OverlayGroup);43 RegisterClass(OverlayGroup); 44 44 45 45 SetConsoleCommand("OverlayGroup", "toggleVisibility", &OverlayGroup::toggleVisibility); … … 48 48 SetConsoleCommand("OverlayGroup", "scrollGroup", &OverlayGroup::scrollGroup); 49 49 50 OverlayGroup::OverlayGroup( BaseObject* creator)51 : BaseObject(c reator)50 OverlayGroup::OverlayGroup(Context* context) 51 : BaseObject(context) 52 52 { 53 53 RegisterObject(OverlayGroup); … … 148 148 for (std::set< SmartPtr<OrxonoxOverlay> >::iterator it = hudElements_.begin(); it != hudElements_.end(); ++it) 149 149 (*it)->changedVisibility(); //inform all Child Overlays that our visibility has changed 150 } 151 152 //! Changes the gametype of all elements 153 void OverlayGroup::changedGametype() 154 { 155 SUPER( OverlayGroup, changedGametype ); 156 157 for (std::set< SmartPtr<OrxonoxOverlay> >::iterator it = hudElements_.begin(); it != hudElements_.end(); ++it) 158 (*it)->setGametype(this->getGametype()); 150 159 } 151 160 -
code/trunk/src/orxonox/overlays/OverlayGroup.h
r8309 r9667 54 54 { 55 55 public: 56 OverlayGroup( BaseObject* creator);56 OverlayGroup(Context* context); 57 57 //! Empty destructor. 58 58 ~OverlayGroup(); … … 68 68 { return this->hudElements_; } 69 69 70 void changedVisibility(); 70 virtual void changedVisibility(); 71 virtual void changedGametype(); 71 72 72 73 void setOwner(BaseObject* owner);
Note: See TracChangeset
for help on using the changeset viewer.