loot tracker: float group to top of list when obtaining drop

This commit is contained in:
Vidyogamasta
2020-05-24 10:41:26 -05:00
committed by GitHub
parent e9aac02a43
commit 0168bf0422

View File

@@ -502,6 +502,14 @@ class LootTrackerPanel extends PluginPanel
{
if (box.matches(record))
{
// float the matched box to the top of the UI list if it's not already first
int idx = logsContainer.getComponentZOrder(box);
if (idx > 0)
{
logsContainer.remove(idx);
logsContainer.add(box, 0);
}
box.addKill(record);
return box;
}