-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional sorting based on raid type #5
Comments
I've added |
Thanks for the update. I also see that you have some WIP options to set a fixed index for the player similar to PartySortOptions.lua. |
With
This is only if you have If you don't have it enabled the frames will still be sorted in combat(with blizzards method, not ours) and show new players.
I'll look into it at some point before TWW raids is all I'm gonna promise for now x) In the meantime, this is potentially something you could achieve with FrameSort addon. |
Krealle, I know you mentioned you will add the fixed index option for TWW raids, but I was messing around with the snippet and added the following to local playerIndex
for _, players in pairs(SORTED_RAID_GROUPS) do
for i = 1, #players do
if playerName == players[i].name then
playerIndex = i
break
end
end
end
if playerIndex and SORTED_RAID_GROUPS[0] and #SORTED_RAID_GROUPS[0] >= 16 then
SORTED_RAID_GROUPS[0][playerIndex], SORTED_RAID_GROUPS[0][16] =
SORTED_RAID_GROUPS[0][16], SORTED_RAID_GROUPS[0][playerIndex]
end do you think it will work? |
Could just pop the player and insert it at the appropriate position. local playerEntry = table.remove(SORTED_RAID_GROUPS[0], playerIndex)
-- Either floor it to end of array or playerIndex, w/e makes most sense, this is just end of array
local pos = math.min(FIXED_INDEX, (#SORTED_RAID_GROUPS[0] + 1))
table.insert(SORTED_RAID_GROUPS[0], pos, playerEntry) And you can prolly just use local playerIndex
for idx, player in ipairs(SORTED_RAID_GROUPS[0]) do
if playerName == player.name then
playerIndex = idx
break
end
end |
did you get a chance to raid to update the snippets for fixed index? the hack here is working at the beginning of the raid and then it stops until I reload |
it has completely slipped my mind, can take a look at it today |
I've pushed a new version that implements it, let me know if it misbehaves |
I tested this today after the latest release of cell which included GROUP_ROSTER_UPDATE changes. It works but it is not reliable and requires reload. Once I think it even changed mid-fight. |
can you add an option to on run the RaidSortOptions snippet if the raid is not outdoors (in
Layout Auto Switch
)?The text was updated successfully, but these errors were encountered: