diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llhudview.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/linden/indra/newview/llhudview.cpp b/linden/indra/newview/llhudview.cpp index 198514c..afcdd73 100644 --- a/linden/indra/newview/llhudview.cpp +++ b/linden/indra/newview/llhudview.cpp | |||
@@ -48,14 +48,19 @@ | |||
48 | #include "lltracker.h" | 48 | #include "lltracker.h" |
49 | #include "llviewercamera.h" | 49 | #include "llviewercamera.h" |
50 | #include "llui.h" | 50 | #include "llui.h" |
51 | #include "lluictrlfactory.h" | ||
51 | 52 | ||
52 | LLHUDView *gHUDView = NULL; | 53 | LLHUDView *gHUDView = NULL; |
53 | 54 | ||
54 | const S32 HUD_ARROW_SIZE = 32; | 55 | const S32 HUD_ARROW_SIZE = 32; |
55 | 56 | ||
56 | LLHUDView::LLHUDView() | 57 | |
57 | : LLPanel() | 58 | |
58 | { } | 59 | LLHUDView::LLHUDView(const LLRect& r) |
60 | { | ||
61 | LLUICtrlFactory::getInstance()->buildPanel(this, "panel_hud.xml"); | ||
62 | userSetShape(r); | ||
63 | } | ||
59 | 64 | ||
60 | LLHUDView::~LLHUDView() | 65 | LLHUDView::~LLHUDView() |
61 | { } | 66 | { } |
@@ -64,6 +69,7 @@ LLHUDView::~LLHUDView() | |||
64 | void LLHUDView::draw() | 69 | void LLHUDView::draw() |
65 | { | 70 | { |
66 | LLTracker::drawHUDArrow(); | 71 | LLTracker::drawHUDArrow(); |
72 | LLView::draw(); | ||
67 | } | 73 | } |
68 | 74 | ||
69 | 75 | ||
@@ -89,4 +95,3 @@ BOOL LLHUDView::handleMouseDown(S32 x, S32 y, MASK mask) | |||
89 | } | 95 | } |
90 | return LLView::handleMouseDown(x, y, mask); | 96 | return LLView::handleMouseDown(x, y, mask); |
91 | } | 97 | } |
92 | |||