Merge pull request #61 from rafak360/FIRE-35037
[FIRE-35037] AO UI scroll list bold/highlight fix. PR by rafak360master
commit
386b71cff0
|
|
@ -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()
|
bool FloaterAO::postBuild()
|
||||||
{
|
{
|
||||||
LLPanel* aoPanel = getChild<LLPanel>("animation_overrider_outer_panel");
|
LLPanel* aoPanel = getChild<LLPanel>("animation_overrider_outer_panel");
|
||||||
|
|
@ -674,6 +684,7 @@ void FloaterAO::onClickMoveUp()
|
||||||
if (AOEngine::instance().swapWithPrevious(mSelectedState, currentIndex))
|
if (AOEngine::instance().swapWithPrevious(mSelectedState, currentIndex))
|
||||||
{
|
{
|
||||||
mAnimationList->swapWithPrevious(currentIndex);
|
mAnimationList->swapWithPrevious(currentIndex);
|
||||||
|
updateScrollListData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -699,6 +710,7 @@ void FloaterAO::onClickMoveDown()
|
||||||
if (AOEngine::instance().swapWithNext(mSelectedState, currentIndex))
|
if (AOEngine::instance().swapWithNext(mSelectedState, currentIndex))
|
||||||
{
|
{
|
||||||
mAnimationList->swapWithNext(currentIndex);
|
mAnimationList->swapWithNext(currentIndex);
|
||||||
|
updateScrollListData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ class FloaterAO
|
||||||
virtual void onOpen(const LLSD& key);
|
virtual void onOpen(const LLSD& key);
|
||||||
virtual void onClose(bool app_quitting);
|
virtual void onClose(bool app_quitting);
|
||||||
void updateList();
|
void updateList();
|
||||||
|
void updateScrollListData();
|
||||||
void updateSetParameters();
|
void updateSetParameters();
|
||||||
void updateAnimationList();
|
void updateAnimationList();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue