Merge pull request #61 from rafak360/FIRE-35037

[FIRE-35037] AO UI scroll list bold/highlight fix. PR by rafak360
master
Zi Ree 2025-01-06 19:24:03 +01:00 committed by GitHub
commit 386b71cff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -203,6 +203,16 @@ void FloaterAO::updateList()
}
}
void FloaterAO::updateScrollListData()
{
auto animationListData = mAnimationList->getAllData();
for (auto index = 0; index < mSelectedState->mAnimations.size(); ++index)
{
LLScrollListItem* item = animationListData[index];
item->setUserdata(&mSelectedState->mAnimations[index].mInventoryUUID);
}
}
bool FloaterAO::postBuild()
{
LLPanel* aoPanel = getChild<LLPanel>("animation_overrider_outer_panel");
@ -674,6 +684,7 @@ void FloaterAO::onClickMoveUp()
if (AOEngine::instance().swapWithPrevious(mSelectedState, currentIndex))
{
mAnimationList->swapWithPrevious(currentIndex);
updateScrollListData();
}
}
@ -699,6 +710,7 @@ void FloaterAO::onClickMoveDown()
if (AOEngine::instance().swapWithNext(mSelectedState, currentIndex))
{
mAnimationList->swapWithNext(currentIndex);
updateScrollListData();
}
}

View File

@ -55,6 +55,7 @@ class FloaterAO
virtual void onOpen(const LLSD& key);
virtual void onClose(bool app_quitting);
void updateList();
void updateScrollListData();
void updateSetParameters();
void updateAnimationList();