Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 26, 2011, 4:10:30 PM (13 years ago)
Author:
mspaling
Message:

names added in hud

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/modules/overlays/hud/HUDNavigation.cc

    r8897 r8906  
    173173            // Get Distance to HumanController and save it in the TextAreaOverlayElement.
    174174            int dist = listIt->second;
    175             it->second.text_->setCaption ( multi_cast<std::string> ( dist ) );
    176             float textLength = multi_cast<std::string> ( dist ).size() * it->second.text_->getCharHeight() * 0.3f;
     175
     176            //it->second.text_->setCaption ( multi_cast<std::string> ( dist ) ); //display distance next to cursor
     177            //float textLength = multi_cast<std::string> ( dist ).size() * it->second.text_->getCharHeight() * 0.3f;
     178           
     179            it->second.text_->setCaption(it->first->getRVName()); //display name next to cursor
     180            float textLength = it->first->getRVName().size() * it->second.text_->getCharHeight() * 0.3f;
    177181
    178182            // Transform to screen coordinates
     
    191195            else
    192196                outOfView = pos.x < -1.0 || pos.x > 1.0 || pos.y < -1.0 || pos.y > 1.0;
    193             // Get Distance to HumanController and save it in the TextAreaOverlayElement.
    194             //it->second.text_->setCaption ( multi_cast<std::string> ( dist ) );
    195                         it->second.text_->setCaption(it->first->getRVName()); //only for test purposes
    196197
    197198            if ( outOfView )
Note: See TracChangeset for help on using the changeset viewer.