diff options
| author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2025-01-24 00:26:00 +0100 |
|---|---|---|
| committer | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2025-01-25 03:02:29 +0100 |
| commit | 7f88aedbc3b53496bc99d8e0e64a818c7a3f6d6f (patch) | |
| tree | 2877cdffc55025608cfd756ece65a34ddad3dd57 /indra/llui/llscrolllistctrl.cpp | |
| parent | 5029f0322f264e17f7509952f7bf9812db17a9ec (diff) | |
#3423 Add Lua as Compile Target in Viewer Script Editor
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
| -rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 93bd3c6bed..deaf2fe188 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -1281,6 +1281,19 @@ LLScrollListItem* LLScrollListCtrl::getItemByLabel(const std::string& label, boo return NULL; } +LLScrollListItem* LLScrollListCtrl::getItemByValue(const std::string& value) +{ + for (LLScrollListItem* item : mItemList) + { + if (item->getValue().asString() == value) + { + return item; + } + } + + return NULL; +} + LLScrollListItem* LLScrollListCtrl::getItemByIndex(S32 index) { if (index >= 0 && index < (S32)mItemList.size()) |
