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.cpp19
1 files changed, 17 insertions, 2 deletions
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 @@
1
1/** 2/**
2 * @file llhudtext.cpp 3 * @file llhudtext.cpp
3 * @brief LLHUDText class implementation 4 * @brief LLHUDText class implementation
@@ -921,8 +922,7 @@ void LLHUDText::setLOD(S32 lod)
921{ 922{
922 mLOD = lod; 923 mLOD = lod;
923 //RN: uncomment this to visualize LOD levels 924 //RN: uncomment this to visualize LOD levels
924 //char label[255]; 925 //std::string label = llformat("%d", lod);
925 //sprintf(label, "%d", lod);
926 //setLabel(label); 926 //setLabel(label);
927} 927}
928 928
@@ -961,6 +961,21 @@ void LLHUDText::renderAllHUD()
961 } 961 }
962} 962}
963 963
964void LLHUDText::shiftAll(const LLVector3& offset)
965{
966 TextObjectIterator text_it;
967 for (text_it = sTextObjects.begin(); text_it != sTextObjects.end(); ++text_it)
968 {
969 LLHUDText *textp = text_it->get();
970 textp->shift(offset);
971 }
972}
973
974void LLHUDText::shift(const LLVector3& offset)
975{
976 mPositionAgent += offset;
977}
978
964//static 979//static
965void LLHUDText::addPickable(std::set<LLViewerObject*> &pick_list) 980void LLHUDText::addPickable(std::set<LLViewerObject*> &pick_list)
966{ 981{