loot tracker: float group to top of list when obtaining drop
This commit is contained in:
@@ -502,6 +502,14 @@ class LootTrackerPanel extends PluginPanel
|
|||||||
{
|
{
|
||||||
if (box.matches(record))
|
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);
|
box.addKill(record);
|
||||||
return box;
|
return box;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user