Display Name UIs as links when they can be interacted with

Adds font style member to line editors, might be useful in the future?
This commit is contained in:
Liru Færs
2019-10-10 03:31:31 -04:00
parent d16ff5cb5c
commit 9824cc7068
9 changed files with 40 additions and 8 deletions

View File

@@ -1895,7 +1895,7 @@ void LLLineEditor::draw()
rendered_pixels_right, text_bottom,
text_color,
LLFontGL::LEFT, LLFontGL::BOTTOM,
LLFontGL::NORMAL,
mFontStyle,
LLFontGL::NO_SHADOW,
select_left - mScrollHPos,
mMaxHPixels - ll_round(rendered_pixels_right),
@@ -1916,7 +1916,7 @@ void LLLineEditor::draw()
rendered_pixels_right, text_bottom,
tmp_color,
LLFontGL::LEFT, LLFontGL::BOTTOM,
LLFontGL::NORMAL,
mFontStyle,
LLFontGL::NO_SHADOW,
select_right - mScrollHPos - rendered_text,
mMaxHPixels - ll_round(rendered_pixels_right),
@@ -1931,7 +1931,7 @@ void LLLineEditor::draw()
rendered_pixels_right, text_bottom,
text_color,
LLFontGL::LEFT, LLFontGL::BOTTOM,
LLFontGL::NORMAL,
mFontStyle,
LLFontGL::NO_SHADOW,
S32_MAX,
mMaxHPixels - ll_round(rendered_pixels_right),
@@ -1945,7 +1945,7 @@ void LLLineEditor::draw()
rendered_pixels_right, text_bottom,
text_color,
LLFontGL::LEFT, LLFontGL::BOTTOM,
LLFontGL::NORMAL,
mFontStyle,
LLFontGL::NO_SHADOW,
S32_MAX,
mMaxHPixels - ll_round(rendered_pixels_right),
@@ -1987,7 +1987,7 @@ void LLLineEditor::draw()
mGLFont->render(mText, getCursor(), (F32)(cursor_left + UI_LINEEDITOR_CURSOR_THICKNESS / 2), text_bottom,
tmp_color,
LLFontGL::LEFT, LLFontGL::BOTTOM,
LLFontGL::NORMAL,
mFontStyle,
LLFontGL::NO_SHADOW,
1);
}
@@ -2013,7 +2013,7 @@ void LLLineEditor::draw()
label_color,
LLFontGL::LEFT,
LLFontGL::BOTTOM,
LLFontGL::NORMAL,
mFontStyle,
LLFontGL::NO_SHADOW,
S32_MAX,
mMaxHPixels - ll_round(rendered_pixels_right),
@@ -2038,7 +2038,7 @@ void LLLineEditor::draw()
label_color,
LLFontGL::LEFT,
LLFontGL::BOTTOM,
LLFontGL::NORMAL,
mFontStyle,
LLFontGL::NO_SHADOW,
S32_MAX,
mMaxHPixels - ll_round(rendered_pixels_right),