Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 3, 2010, 3:55:32 PM (14 years ago)
Author:
dafrick
Message:

Changing from OrxonoxOverlays to CEGUI as means of displaying Notifications.
Still messy and not working completely but it's a start.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/notifications/src/modules/notifications/Notification.cc

    r7326 r7338  
    9494        registerVariable(this->message_);
    9595        registerVariable(this->sender_);
    96         registerVariable(this->sent_);
     96        registerVariable(this->sent_, ObjectDirection::Bidirectional);
    9797    }
    9898
     
    108108    {
    109109
    110         callMemberNetworkFunction(Notification, sendHelper, this->getObjectID(), clientId, clientId, sender);
     110        if(GameMode::isMaster())
     111        {
     112            this->sendHelper(sender);
     113        }
     114        else
     115        {
     116            callMemberNetworkFunction(Notification, sendHelper, this->getObjectID(), clientId, sender);
     117        }
    111118
    112119        return true;
    113120    }
    114121
    115     bool Notification::sendHelper(unsigned int clientId, const std::string& sender)
     122    bool Notification::sendHelper(const std::string& sender)
    116123    {
    117124        if(this->isSent()) //TODO: Needed?
Note: See TracChangeset for help on using the changeset viewer.