diff options
| author | Steven Bennetts <steve@lindenlab.com> | 2009-05-08 07:43:08 +0000 | 
|---|---|---|
| committer | Steven Bennetts <steve@lindenlab.com> | 2009-05-08 07:43:08 +0000 | 
| commit | a4000c3744e42fcbb638e742f3b63fa31a0dee15 (patch) | |
| tree | 7f472c30e65bbfa04ee9bc06631a1af305cc31fb /indra/llcharacter/llmultigesture.cpp | |
| parent | 6c4cadbb04d633ad7b762058bdeba6e1f650dafd (diff) | |
merge trunk@116587 skinning-7@119389 -> viewer-2.0.0-skinning-7
Diffstat (limited to 'indra/llcharacter/llmultigesture.cpp')
| -rw-r--r-- | indra/llcharacter/llmultigesture.cpp | 64 | 
1 files changed, 40 insertions, 24 deletions
| diff --git a/indra/llcharacter/llmultigesture.cpp b/indra/llcharacter/llmultigesture.cpp index 7fe21dbc93..701d6889ca 100644 --- a/indra/llcharacter/llmultigesture.cpp +++ b/indra/llcharacter/llmultigesture.cpp @@ -243,7 +243,7 @@ void LLMultiGesture::dump()  //---------------------------------------------------------------------------  LLGestureStepAnimation::LLGestureStepAnimation()  :	LLGestureStep(), -	mAnimName("None"), +	mAnimName("None"),   	mAnimAssetID(),  	mFlags(0x0)  { } @@ -292,20 +292,27 @@ BOOL LLGestureStepAnimation::deserialize(LLDataPacker& dp)  	dp.unpackU32(mFlags, "flags");  	return TRUE;  } - -std::string LLGestureStepAnimation::getLabel() const +// *TODO: Translate +std::vector<std::string> LLGestureStepAnimation::getLabel() const   { -	std::string label; +	std::vector<std::string> strings; +	 +//	std::string label;  	if (mFlags & ANIM_FLAG_STOP)  	{ -		label = "Stop Animation: "; +		strings.push_back( "AnimFlagStop"); + +//		label = "Stop Animation: ";  	}  	else  	{ -		label = "Start Animation: "; +		strings.push_back( "AnimFlagStart"); + +//		label = "Start Animation: ";   	} -	label += mAnimName; -	return label; +	strings.push_back( mAnimName); +//	label += mAnimName; +	return strings;  }  void LLGestureStepAnimation::dump() @@ -359,12 +366,15 @@ BOOL LLGestureStepSound::deserialize(LLDataPacker& dp)  	dp.unpackU32(mFlags, "flags");  	return TRUE;  } - -std::string LLGestureStepSound::getLabel() const +// *TODO: Translate +std::vector<std::string> LLGestureStepSound::getLabel() const  { -	std::string label("Sound: "); -	label += mSoundName; -	return label; +	std::vector<std::string> strings; +	strings.push_back( "Sound"); +	strings.push_back( mSoundName);	 +//	std::string label("Sound: "); +//	label += mSoundName; +	return strings;  }  void LLGestureStepSound::dump() @@ -414,12 +424,13 @@ BOOL LLGestureStepChat::deserialize(LLDataPacker& dp)  	dp.unpackU32(mFlags, "flags");  	return TRUE;  } - -std::string LLGestureStepChat::getLabel() const +// *TODO: Translate +std::vector<std::string> LLGestureStepChat::getLabel() const  { -	std::string label("Chat: "); -	label += mChatText; -	return label; +	std::vector<std::string> strings; +	strings.push_back("Chat"); +	strings.push_back(mChatText); +	return strings;  }  void LLGestureStepChat::dump() @@ -467,22 +478,27 @@ BOOL LLGestureStepWait::deserialize(LLDataPacker& dp)  	dp.unpackU32(mFlags, "flags");  	return TRUE;  } - -std::string LLGestureStepWait::getLabel() const +// *TODO: Translate +std::vector<std::string> LLGestureStepWait::getLabel() const  { -	std::string label("--- Wait: "); +	std::vector<std::string> strings; +	strings.push_back( "Wait" ); +	 +//	std::string label("--- Wait: ");  	if (mFlags & WAIT_FLAG_TIME)  	{  		char buffer[64];		/* Flawfinder: ignore */  		snprintf(buffer, sizeof(buffer), "%.1f seconds", (double)mWaitSeconds);	/* Flawfinder: ignore */ -		label += buffer; +		strings.push_back(buffer); +//		label += buffer;  	}  	else if (mFlags & WAIT_FLAG_ALL_ANIM)  	{ -		label += "until animations are done"; +		strings.push_back("until animations are done"); +	//	label += "until animations are done";  	} -	return label; +	return strings;  } | 
