Commit 28396b5e authored by Ivaria's avatar Ivaria
Browse files

Added panel sort method 'Tank => MDPS => RDPS => Healer'

parent 3ed5a466
......@@ -188,6 +188,7 @@ VUHDO_SORT_RAID_MODELS = 4;
VUHDO_SORT_TA_DD_HL = 5;
VUHDO_SORT_TA_HL_DD = 6;
VUHDO_SORT_HL_TA_DD = 7;
VUHDO_SORT_TA_MD_RD_HL = 8;
-- Class IDs by class name
......
......@@ -446,6 +446,7 @@
{ 5, "Tank => DD => Healer" },
{ 6, "Tank => Healer => DD" },
{ 7, "Healer => Tank => DD" },
{ 8, "Tank => MDPS => RDPS => Healer" },
}
);
VUHDO_lnfSetTooltip(self, nil);
......
......@@ -327,6 +327,36 @@ local VUHDO_RAID_SORTERS = {
end
end
end,
[VUHDO_SORT_TA_MD_RD_HL]
= function(aUnitId, anotherUnitId)
if sIsPlayerFirst and aUnitId == "player" then return true;
elseif (sIsPlayerFirst and anotherUnitId == "player") then return false;
else
if VUHDO_PANEL_SETUP[sPanelNum]["MODEL"]["isReverse"] then
aUnitId, anotherUnitId = anotherUnitId, aUnitId;
end
tInfo1, tInfo2 = VUHDO_RAID[aUnitId] or sEmpty, VUHDO_RAID[anotherUnitId] or sEmpty;
tRole1, tRole2 = tInfo1["role"], tInfo2["role"];
if tRole1 == VUHDO_ID_MELEE_TANK and tRole2 ~= VUHDO_ID_MELEE_TANK then
return true;
elseif tRole2 == VUHDO_ID_MELEE_TANK and tRole1 ~= VUHDO_ID_MELEE_TANK then
return false;
elseif tRole1 == VUHDO_ID_RANGED_HEAL and tRole2 ~= VUHDO_ID_RANGED_HEAL then
return false;
elseif tRole1 == VUHDO_ID_MELEE_DAMAGE and
(tRole2 == VUHDO_ID_RANGED_DAMAGE or tRole2 == VUHDO_ID_RANGED_HEAL) then
return true;
elseif tRole1 == VUHDO_ID_RANGED_DAMAGE and tRole2 == VUHDO_ID_RANGED_HEAL then
return true;
else
return (tInfo1["name"] or "") < (tInfo2["name"] or "");
end
end
end,
};
......
......@@ -20,8 +20,9 @@ Improvements:
-- Added ability to track different spell casts on units
-- See settings under 'VuhDo Options > General > Spell Trace'
-- Useful for tracking which units are hit by AOE healing spells
-- Added new bouquet validator 'Icon: Spell Trace'
-- Added new default bouquet 'Spell Trace'
-- Added bouquet validator 'Icon: Spell Trace'
-- Added default bouquet 'Spell Trace'
-- Added panel sort method 'Tank => MDPS => RDPS => Healer'
--------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment