Skip to content

Commit db74b6c

Browse files
Updated player to be the party size ex 3, instead of always 5
1 parent 7b04021 commit db74b6c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Frames/Core.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ end
515515

516516
-- Get the displayed party/raid index for a unit token.
517517
-- Party mode default: player=1, party1=2 ... party4=5
518-
-- Optional remap mode: party1=1 ... party4=4, player=5
518+
-- Optional remap mode: party1=1 ... party4=4, player=party size
519519
-- Raid mode: raid1 ... raid40
520520
function DF:GetUnitPartyIndex(unit, db)
521521
if not unit or unit == "" then return nil end
@@ -540,7 +540,7 @@ function DF:GetUnitPartyIndex(unit, db)
540540

541541
if UnitIsUnit(unit, "player") then
542542
if db and db.partyIndexTextPlayerAtBottom then
543-
return 5
543+
return (GetNumSubgroupMembers() or 0) + 1
544544
end
545545
return 1
546546
end

Options/Options.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3776,7 +3776,7 @@ function DF:SetupGUIPages(GUI, CreateCategory, CreateSubTab, BuildPage)
37763776
DF:RefreshAllVisibleFrames()
37773777
if DF.UpdateAllFrameAppearances then DF:UpdateAllFrameAppearances() end
37783778
end), 30)
3779-
settingsGroup:AddWidget(GUI:CreateCheckbox(self.child, "Player Always 5 (Party)", db, "partyIndexTextPlayerAtBottom", function()
3779+
settingsGroup:AddWidget(GUI:CreateCheckbox(self.child, "Player Labeled As Party Size", db, "partyIndexTextPlayerAtBottom", function()
37803780
DF:RefreshAllVisibleFrames()
37813781
if DF.UpdateAllFrameAppearances then DF:UpdateAllFrameAppearances() end
37823782
end), 30)

0 commit comments

Comments
 (0)