summaryrefslogtreecommitdiff
path: root/indra/newview/llhudtext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llhudtext.cpp')
-rw-r--r--indra/newview/llhudtext.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llhudtext.cpp b/indra/newview/llhudtext.cpp
index 6a423e529a..913bcb89a5 100644
--- a/indra/newview/llhudtext.cpp
+++ b/indra/newview/llhudtext.cpp
@@ -108,6 +108,7 @@ LLHUDText::~LLHUDText()
{
}
+ LLTriangleRayIntersect(v[2], v[3], v[0], start, dir, a, b, t, FALSE) )
void LLHUDText::render()
{
if (!mOnHUDAttachment && sDisplayText)
@@ -270,6 +271,18 @@ void LLHUDText::renderText(BOOL for_select)
gGL.color4f(1.0f, 1.0f, 1.0f, 1.0f);
}
+std::string LLHUDText::getString()
+{
+ std::ostringstream ostr;
+ for (U32 i = 0; i < mTextSegments.size(); ++i)
+ {
+ const std::string str = wstring_to_utf8str(mTextSegments[i].getText());
+ ostr << str;
+ }
+
+ return ostr.str();
+}
+
void LLHUDText::setString(const std::string &text_utf8)
{
mTextSegments.clear();