diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llconsole.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/linden/indra/newview/llconsole.cpp b/linden/indra/newview/llconsole.cpp index 79ab8cc..517e06f 100644 --- a/linden/indra/newview/llconsole.cpp +++ b/linden/indra/newview/llconsole.cpp | |||
@@ -76,16 +76,6 @@ LLConsole::~LLConsole() | |||
76 | mColors.clear(); | 76 | mColors.clear(); |
77 | } | 77 | } |
78 | 78 | ||
79 | EWidgetType LLConsole::getWidgetType() const | ||
80 | { | ||
81 | return WIDGET_TYPE_CONSOLE; | ||
82 | } | ||
83 | |||
84 | LLString LLConsole::getWidgetTag() const | ||
85 | { | ||
86 | return LL_CONSOLE_TAG; | ||
87 | } | ||
88 | |||
89 | void LLConsole::setLinePersistTime(F32 seconds) | 79 | void LLConsole::setLinePersistTime(F32 seconds) |
90 | { | 80 | { |
91 | mLinePersistTime = seconds; | 81 | mLinePersistTime = seconds; |
@@ -172,12 +162,11 @@ void LLConsole::draw() | |||
172 | } | 162 | } |
173 | else | 163 | else |
174 | { | 164 | { |
175 | LLUUID image_id; | 165 | LLUIImagePtr imagep = LLUI::getUIImage("rounded_square.tga"); |
176 | image_id.set(gViewerArt.getString("rounded_square.tga")); | ||
177 | LLViewerImage* imagep = gImageList.getImage(image_id, MIPMAP_FALSE, TRUE); | ||
178 | 166 | ||
179 | F32 console_opacity = llclamp(gSavedSettings.getF32("ConsoleBackgroundOpacity"), 0.f, 1.f); | 167 | F32 console_opacity = llclamp(gSavedSettings.getF32("ConsoleBackgroundOpacity"), 0.f, 1.f); |
180 | LLColor4 color(0.f, 0.f, 0.f, console_opacity); | 168 | LLColor4 color = gColors.getColor("ConsoleBackground"); |
169 | color.mV[VALPHA] *= console_opacity; | ||
181 | 170 | ||
182 | S32 max_width = 0; | 171 | S32 max_width = 0; |
183 | for (i = 0; i < line_count; i++) | 172 | for (i = 0; i < line_count; i++) |
@@ -191,8 +180,7 @@ void LLConsole::draw() | |||
191 | S32 target_width = max_width; | 180 | S32 target_width = max_width; |
192 | mLastBoxHeight = llmax(target_height, (S32)lerp((F32)mLastBoxHeight, (F32)target_height, u)); | 181 | mLastBoxHeight = llmax(target_height, (S32)lerp((F32)mLastBoxHeight, (F32)target_height, u)); |
193 | mLastBoxWidth = llmax(MIN_CONSOLE_WIDTH, llmax(target_width, (S32)lerp((F32)mLastBoxWidth, (F32)target_width, u))); | 182 | mLastBoxWidth = llmax(MIN_CONSOLE_WIDTH, llmax(target_width, (S32)lerp((F32)mLastBoxWidth, (F32)target_width, u))); |
194 | gl_draw_scaled_image_with_border(-15, -10, 16, 16, mLastBoxWidth + 15, mLastBoxHeight, | 183 | imagep->drawSolid(-15, -10, mLastBoxWidth + 15, mLastBoxHeight, color); |
195 | imagep, color, TRUE ); | ||
196 | } | 184 | } |
197 | 185 | ||
198 | y_pos += (line_count-1) * mFont->getLineHeight(); | 186 | y_pos += (line_count-1) * mFont->getLineHeight(); |