diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2026-02-25 00:24:15 +0200 |
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2026-02-25 00:24:15 +0200 |
| commit | aa4ad2e95da5207a1250ca5fd23f7f0e6528a44e (patch) | |
| tree | ea42898b66c02a141bd0b7dd8d9c8379d8ffb2a5 /indra/llui/llfocusmgr.cpp | |
| parent | 8e9a7187eb231b22f8c4fdc52227c2f09f0d507e (diff) | |
Floaters and UI controls adjustments #2
Diffstat (limited to 'indra/llui/llfocusmgr.cpp')
| -rw-r--r-- | indra/llui/llfocusmgr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llui/llfocusmgr.cpp b/indra/llui/llfocusmgr.cpp index 7544a44478..ce0e8036e7 100644 --- a/indra/llui/llfocusmgr.cpp +++ b/indra/llui/llfocusmgr.cpp @@ -464,6 +464,11 @@ F32 LLFocusMgr::getFocusFlashAmt() const return clamp_rescale(mFocusFlashTimer.getElapsedTimeF32(), 0.f, FOCUS_FADE_TIME, 1.f, 0.f); } +S32 LLFocusMgr::getFocusFlashWidth() const +{ + return ll_round(lerp(1.f, 2.f, getFocusFlashAmt())); +} + LLColor4 LLFocusMgr::getFocusColor() const { static LLUIColor focus_color_cached = LLUIColorTable::instance().getColor("FocusColor"); |
