diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-02-12 17:18:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-12 17:18:31 +0200 |
| commit | 23ac8f603ea2e590b47598edf0fd6824f168fc0b (patch) | |
| tree | c3d9eb897785b59e30fd53adb8b511767f158881 /indra/llui/llscrolllistctrl.cpp | |
| parent | 5029f0322f264e17f7509952f7bf9812db17a9ec (diff) | |
| parent | ad7dee8aa08bb6207f95a50c8d1eeb55e8e0d81e (diff) | |
Merge pull request #3535 from secondlife/marchcat/lua_editor
Lua editor: initial PR to start the project viewer
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()) |
