Changeset 8829 for code/branches/output/src/modules/overlays
- Timestamp:
- Aug 7, 2011, 3:11:16 PM (13 years ago)
- Location:
- code/branches/output/src/modules/overlays/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/modules/overlays/hud/ChatOverlay.cc
r8826 r8829 67 67 } 68 68 69 void ChatOverlay::incomingChat(const std::string& message, unsigned int senderID)69 void ChatOverlay::incomingChat(const std::string& message, const std::string& /*name*/) 70 70 { 71 std::string text = message; 72 73 if (senderID != NETWORK_PEER_ID_UNKNOWN) 74 { 75 PlayerInfo* player = PlayerManager::getInstance().getClient(senderID); 76 if (player) 77 text = player->getName() + ": " + message; 78 } 79 80 this->messages_.push_back(multi_cast<Ogre::DisplayString>(text)); 71 this->messages_.push_back(multi_cast<Ogre::DisplayString>(message)); 81 72 82 73 Timer* timer = new Timer(); -
code/branches/output/src/modules/overlays/hud/ChatOverlay.h
r6417 r8829 35 35 #include <OgreOverlayElement.h> 36 36 37 #include " network/ChatListener.h"37 #include "chat/ChatListener.h" 38 38 #include "overlays/OverlayText.h" 39 39 … … 49 49 50 50 protected: 51 virtual void incomingChat(const std::string& message, unsigned int senderID);51 virtual void incomingChat(const std::string& message, const std::string& name); 52 52 53 53 std::list<Ogre::DisplayString> messages_;
Note: See TracChangeset
for help on using the changeset viewer.