aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudtext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llhudtext.cpp')
-rw-r--r--linden/indra/newview/llhudtext.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/linden/indra/newview/llhudtext.cpp b/linden/indra/newview/llhudtext.cpp
index 7c0c469..457249f 100644
--- a/linden/indra/newview/llhudtext.cpp
+++ b/linden/indra/newview/llhudtext.cpp
@@ -723,6 +723,21 @@ void LLHUDText::setDoFade(const BOOL do_fade)
723 mDoFade = do_fade; 723 mDoFade = do_fade;
724} 724}
725 725
726std::string LLHUDText::getStringUTF8()
727{
728 std::string out("");
729 int t = mTextSegments.size();
730 int i = 0;
731 for (std::vector<LLHUDTextSegment>::iterator segment_iter = mTextSegments.begin();
732 segment_iter != mTextSegments.end(); ++segment_iter )
733 {
734 out.append(wstring_to_utf8str((*segment_iter).getText()));
735 i++;
736 if(i < t) out.append("\n");
737 }
738 return out;
739}
740
726void LLHUDText::updateVisibility() 741void LLHUDText::updateVisibility()
727{ 742{
728 if (mSourceObject) 743 if (mSourceObject)