Changeset 9023 in orxonox.OLD for branches/multi_player_map/src
- Timestamp:
- Jul 2, 2006, 11:16:47 PM (18 years ago)
- Location:
- branches/multi_player_map/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multi_player_map/src/util/multiplayer_team_deathmatch.cc
r9008 r9023 86 86 subscribeEvent( ES_MENU, KeyMapper::PEV_FIRE1 ); 87 87 88 this->notifier = new OrxGui::GLGuiNotifier();89 this->notifier->show();90 this->notifier->setAbsCoor2D(5, 30);91 this->notifier->setFadeAge( 6.0 );92 this->notifier->setHideAge( 8.0 );93 88 this->input = new OrxGui::GLGuiInputLine(); 94 89 this->input->setAbsCoor2D(180, 5); … … 106 101 unsubscribeEvent( ES_MENU, SDLK_F1 ); 107 102 unsubscribeEvent( ES_MENU, KeyMapper::PEV_FIRE1 ); 108 109 if ( this->notifier )110 {111 delete this->notifier;112 this->notifier = NULL;113 }114 103 115 104 if ( this->input ) … … 597 586 598 587 PRINTF(0)("CHATMESSAGE %s (%d): %s\n", name.c_str(), userId, message.c_str() ); 599 notifier->pushNotifyMessage(name + ": " + message);588 State::getPlayer()->getHud().notifyUser(name + ": " + message); 600 589 } 601 590 -
branches/multi_player_map/src/util/multiplayer_team_deathmatch.h
r9008 r9023 83 83 OrxGui::GLGuiBox* box; 84 84 85 OrxGui::GLGuiNotifier* notifier;86 85 OrxGui::GLGuiInputLine* input; 87 86 -
branches/multi_player_map/src/world_entities/player.h
r9002 r9023 31 31 bool eject(); 32 32 inline Playable* getPlayable() const { return this->playable; }; 33 33 34 34 // inline Hud& hud() { return this->_hud; };35 inline Hud& getHud() { return this->hud; }; 35 36 // inline const Hud& hud() const { return this->_hud; }; 36 37
Note: See TracChangeset
for help on using the changeset viewer.