Changeset 5748
- Timestamp:
- Sep 19, 2009, 11:57:28 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/layouts/QuestGUI.layout
- Property svn:eol-style set to native
-
code/trunk/data/gui/scripts/QuestGUI.lua
- Property svn:eol-style set to native
-
code/trunk/src/modules/questsystem/QuestGUI.cc
- Property svn:eol-style set to native
r5746 r5748 30 30 31 31 #include <sstream> 32 #include <CEGUIWindow.h> 33 #include <CEGUIWindowManager.h> 32 34 33 35 #include "core/CoreIncludes.h" 34 #include "core/GUIManager.h"35 #include "infos/PlayerInfo.h"36 36 #include "Quest.h" 37 37 #include "QuestHint.h" 38 #include "QuestDescription.h" //Debug39 38 #include "QuestItem.h" 40 39 #include "QuestGUINode.h" 41 40 #include "QuestManager.h" 42 43 #include <CEGUIWindow.h>44 #include <CEGUIWindowManager.h>45 41 46 42 namespace orxonox { -
code/trunk/src/modules/questsystem/QuestGUI.h
- Property svn:eol-style set to native
r5746 r5748 36 36 37 37 #include "questsystem/QuestsystemPrereqs.h" 38 39 #include <list> 40 #include <map> 41 #include <string> 38 42 #include <CEGUIForwardRefs.h> 39 43 40 44 #include "core/OrxonoxClass.h" 41 42 #include <map>43 #include <string>44 #include <list>45 45 46 46 namespace orxonox { … … 95 95 96 96 PlayerInfo* player_; //!< The player that owns the GUI. 97 CEGUI::WindowManager* windowManager_; //!< The CEGUI WindowManager. //T DO: needed?97 CEGUI::WindowManager* windowManager_; //!< The CEGUI WindowManager. //TODO: needed? 98 98 CEGUI::Window* rootWindow_; //!< The root CEGUI Window of the GUI. 99 99 -
code/trunk/src/modules/questsystem/QuestGUINode.cc
- Property svn:eol-style set to native
r5746 r5748 31 31 #include <sstream> 32 32 33 #include <CEGUIWindowManager.h> 34 #include <elements/CEGUIFrameWindow.h> 35 #include <elements/CEGUIPushButton.h> 36 #include <falagard/CEGUIFalWidgetLookFeel.h> 37 #include <falagard/CEGUIFalWidgetLookManager.h> 38 33 39 #include "core/CoreIncludes.h" 34 #include "infos/PlayerInfo.h"35 40 #include "Quest.h" 36 41 #include "QuestHint.h" … … 38 43 #include "QuestDescription.h" 39 44 #include "QuestGUI.h" 40 41 #include <CEGUIWindow.h>42 #include <CEGUIWindowManager.h>43 #include <CEGUIFont.h>44 #include <CEGUI.h>45 45 46 46 namespace orxonox { … … 117 117 } 118 118 119 intQuestGUINode::toggleVisibility(void)119 void QuestGUINode::toggleVisibility(void) 120 120 { 121 121 … … 234 234 node->window_->setSize(CEGUI::UVector2(CEGUI::UDim(1.0, -13),CEGUI::UDim(0, 30))); 235 235 node->window_->setPosition(CEGUI::UVector2(CEGUI::UDim(0, 0),CEGUI::UDim(0, offset))); 236 node->window_->setProperty("HorizontalAlignment", "Left"); // T DO: Get this working.236 node->window_->setProperty("HorizontalAlignment", "Left"); // TODO: Get this working. 237 237 window->addChildWindow(node->window_); 238 238 offset += 30; -
code/trunk/src/modules/questsystem/QuestGUINode.h
- Property svn:eol-style set to native
r5746 r5748 31 31 32 32 #include "questsystem/QuestsystemPrereqs.h" 33 #include <CEGUIForwardRefs.h>34 35 #include "core/OrxonoxClass.h"36 33 37 34 #include <list> 38 35 #include <string> 36 #include <CEGUIForwardRefs.h> 37 #include "core/OrxonoxClass.h" 39 38 40 39 … … 50 49 virtual ~QuestGUINode(void); 51 50 52 inttoggleVisibility(void);51 void toggleVisibility(void); 53 52 54 53 void getName(std::string & buffer); //!< Sets the input buffer to the name of the node. -
code/trunk/src/modules/questsystem/QuestManager.cc
r5745 r5748 34 34 #include "QuestManager.h" 35 35 36 #include <CEGUIWindow.h> 37 36 38 #include "util/Exception.h" 37 39 #include "core/CoreIncludes.h" 38 40 #include "core/GUIManager.h" 39 41 #include "core/ConsoleCommand.h" 40 #include "core/input/InputManager.h" //TDO: Necessary? 41 #include <CEGUIWindow.h> 42 #include "infos/PlayerInfo.h" 42 43 #include "overlays/GUIOverlay.h" 43 44 44 #include "infos/PlayerInfo.h"45 45 #include "Quest.h" 46 46 #include "QuestHint.h" 47 #include "QuestItem.h" //TDO: Necessary?47 #include "QuestItem.h" 48 48 49 49 namespace orxonox -
code/trunk/src/modules/questsystem/QuestManager.h
r5745 r5748 65 65 66 66 friend class ScopedSingleton<QuestManager, ScopeID::GSLevel>; 67 friend class QuestGUI; //T DO: better solution.67 friend class QuestGUI; //TODO: better solution. 68 68 //friend std::map<std::string, Quest*> & QuestGUI::getQuests(void); 69 69 … … 94 94 std::map<std::string, QuestHint*> hintMap_; //!< All QuestHints registered by their id's. 95 95 96 //T DO: Call destructor of QuestGUI's on destruction of QuestManager?96 //TODO: Call destructor of QuestGUI's on destruction of QuestManager? 97 97 std::map<PlayerInfo*, QuestGUI*> questGUIs_; //!< All GUI's registered by the players. 98 98 -
code/trunk/src/modules/questsystem/QuestNotification.cc
- Property svn:executable deleted
-
code/trunk/src/modules/questsystem/notifications/NotificationManager.cc
r5738 r5748 81 81 return false; 82 82 83 std::time_t time = std::time(0); //T DO: Doesn't this expire? //!< Get current time.83 std::time_t time = std::time(0); //TODO: Doesn't this expire? //!< Get current time. 84 84 85 85 this->allNotificationsList_.insert(std::pair<std::time_t,Notification*>(time,notification)); … … 96 96 { 97 97 std::set<std::string> set = it->first->getTargetsSet(); 98 if(all || set.find(notification->getSender()) != set.end() || set.find(ALL) != set.end()) //T DO: Make sure this works.98 if(all || set.find(notification->getSender()) != set.end() || set.find(ALL) != set.end()) //TODO: Make sure this works. 99 99 { 100 100 this->notificationLists_[it->second]->insert(std::pair<std::time_t,Notification*>(time,notification)); //!< Insert the Notification in the Notifications list of the current NotificationListener. … … 123 123 this->listenerList_[listener] = index; //!< Add the NotificationListener to the list of listeners. 124 124 125 std::set<std::string> set = listener->getTargetsSet(); //T DO: Works this?125 std::set<std::string> set = listener->getTargetsSet(); //TODO: Works this? 126 126 127 127 //! If all senders are the target of the listener, then the list of notification for that specific listener is te same as the list of all Notifications. -
code/trunk/src/modules/questsystem/notifications/NotificationQueue.cc
r5738 r5748 140 140 this->removeContainer(*it); 141 141 this->scroll(Vector2(0.0,-(1.1*this->getFontSize()))); 142 it = this->containers_.begin(); //T DO: Needed?142 it = this->containers_.begin(); //TODO: Needed? 143 143 } 144 144 … … 443 443 { 444 444 this->removeContainer(*it); 445 it = this->containers_.begin(); //T DO: Needed?445 it = this->containers_.begin(); //TODO: Needed? 446 446 } 447 447 }
Note: See TracChangeset
for help on using the changeset viewer.