DEV-50013 Add 2px line padding to name tags
Should match final requests from Rhett. Reviewed with Leylameow-7.2.2
parent
415cc68810
commit
32f9bd0bce
|
|
@ -60,7 +60,7 @@ const F32 SPRING_STRENGTH = 0.7f;
|
|||
const F32 RESTORATION_SPRING_TIME_CONSTANT = 0.1f;
|
||||
const F32 HORIZONTAL_PADDING = 16.f;
|
||||
const F32 VERTICAL_PADDING = 12.f;
|
||||
const F32 LINE_PADDING = 1; // aka "leading"
|
||||
const F32 LINE_PADDING = 3.f; // aka "leading"
|
||||
const F32 BUFFER_SIZE = 2.f;
|
||||
const F32 MIN_EDGE_OVERLAP = 3.f;
|
||||
const F32 HUD_TEXT_MAX_WIDTH = 190.f;
|
||||
|
|
@ -460,7 +460,7 @@ void LLHUDNameTag::renderText(BOOL for_select)
|
|||
LLUI::popMatrix();
|
||||
}
|
||||
|
||||
F32 y_offset = (F32)mOffsetY - 2; // JAMESDEBUG
|
||||
F32 y_offset = (F32)mOffsetY;
|
||||
|
||||
// Render label
|
||||
{
|
||||
|
|
@ -807,6 +807,12 @@ void LLHUDNameTag::updateSize()
|
|||
++iter;
|
||||
}
|
||||
|
||||
// Don't want line spacing under the last line
|
||||
if (height > 0.f)
|
||||
{
|
||||
height -= LINE_PADDING;
|
||||
}
|
||||
|
||||
iter = mLabelSegments.begin();
|
||||
while (iter != mLabelSegments.end())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue