Skip to content

Commit 2f98a1b

Browse files
Updated player to be the party size ex 3, instead of always 5
1 parent f853301 commit 2f98a1b

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
@@ -3656,7 +3656,7 @@ function DF:SetupGUIPages(GUI, CreateCategory, CreateSubTab, BuildPage)
36563656
DF:RefreshAllVisibleFrames()
36573657
if DF.UpdateAllFrameAppearances then DF:UpdateAllFrameAppearances() end
36583658
end), 30)
3659-
settingsGroup:AddWidget(GUI:CreateCheckbox(self.child, "Player Always 5 (Party)", db, "partyIndexTextPlayerAtBottom", function()
3659+
settingsGroup:AddWidget(GUI:CreateCheckbox(self.child, "Player Labeled As Party Size", db, "partyIndexTextPlayerAtBottom", function()
36603660
DF:RefreshAllVisibleFrames()
36613661
if DF.UpdateAllFrameAppearances then DF:UpdateAllFrameAppearances() end
36623662
end), 30)

0 commit comments

Comments
 (0)