void UILabel::SetText( const String &text ) { VRMenuObject * object = GetMenuObject(); assert( object ); object->SetText( text.ToCStr() ); CalculateTextOffset(); }
void UILabel::SetText( const char *text ) { VRMenuObject * object = GetMenuObject(); assert( object ); object->SetText( text ); CalculateTextOffset(); }
//============================== // OvrSliderComponent::UpdateText void OvrSliderComponent::UpdateText( OvrVRMenuMgr & menuMgr, VRMenuObject * self, VRMenuId_t const id ) { if ( !id.IsValid() ) { return; } VRMenuObject * obj = menuMgr.ToObject( self->ChildHandleForId( menuMgr, id ) ); if ( obj != NULL ) { char valueStr[127]; GetStringValue( valueStr, sizeof( valueStr ) ); obj->SetText( valueStr ); } }