From 798d367d54a6c6379ad355bd8345fa40e31e7fe9 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 6 Sep 2008 18:24:57 -0500 Subject: Second Life viewer sources 1.21.0-RC --- linden/indra/newview/llhudtext.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'linden/indra/newview/llhudtext.cpp') diff --git a/linden/indra/newview/llhudtext.cpp b/linden/indra/newview/llhudtext.cpp index 26df22a..c45c284 100644 --- a/linden/indra/newview/llhudtext.cpp +++ b/linden/indra/newview/llhudtext.cpp @@ -1,3 +1,4 @@ + /** * @file llhudtext.cpp * @brief LLHUDText class implementation @@ -921,8 +922,7 @@ void LLHUDText::setLOD(S32 lod) { mLOD = lod; //RN: uncomment this to visualize LOD levels - //char label[255]; - //sprintf(label, "%d", lod); + //std::string label = llformat("%d", lod); //setLabel(label); } @@ -961,6 +961,21 @@ void LLHUDText::renderAllHUD() } } +void LLHUDText::shiftAll(const LLVector3& offset) +{ + TextObjectIterator text_it; + for (text_it = sTextObjects.begin(); text_it != sTextObjects.end(); ++text_it) + { + LLHUDText *textp = text_it->get(); + textp->shift(offset); + } +} + +void LLHUDText::shift(const LLVector3& offset) +{ + mPositionAgent += offset; +} + //static void LLHUDText::addPickable(std::set &pick_list) { -- cgit v1.1