@@ -291,6 +291,29 @@ function DF:ApplyFrameLayout(frame)
291291 frame .statusText :SetTextColor (statusColor .r , statusColor .g , statusColor .b , statusColor .a or 1 )
292292 end
293293 end
294+
295+ -- ========================================
296+ -- PARTY INDEX TEXT
297+ -- ========================================
298+ if frame .partyIndexText then
299+ local partyIndexFont = db .partyIndexTextFont or " Fonts\\ FRIZQT__.TTF"
300+ local partyIndexFontSize = db .partyIndexTextFontSize or 10
301+ local partyIndexOutline = db .partyIndexTextOutline or " OUTLINE"
302+ if partyIndexOutline == " NONE" then partyIndexOutline = " " end
303+
304+ DF :SafeSetFont (frame .partyIndexText , partyIndexFont , partyIndexFontSize , partyIndexOutline )
305+
306+ local partyIndexAnchor = db .partyIndexTextAnchor or " TOPLEFT"
307+ frame .partyIndexText :ClearAllPoints ()
308+ frame .partyIndexText :SetPoint (partyIndexAnchor , frame , partyIndexAnchor , db .partyIndexTextX or 2 , db .partyIndexTextY or - 2 )
309+
310+ if DF .UpdatePartyIndexTextAppearance then
311+ DF :UpdatePartyIndexTextAppearance (frame )
312+ elseif not db .partyIndexTextUseClassColor then
313+ local partyIndexColor = db .partyIndexTextColor or {r = 1 , g = 1 , b = 1 , a = 1 }
314+ frame .partyIndexText :SetTextColor (partyIndexColor .r , partyIndexColor .g , partyIndexColor .b , partyIndexColor .a or 1 )
315+ end
316+ end
294317
295318 -- ========================================
296319 -- ROLE ICON
@@ -559,6 +582,7 @@ function DF:UpdateUnitFrame(frame, source)
559582 frame .statusText :Hide ()
560583 end
561584 end
585+ DF :UpdatePartyIndexText (frame )
562586 if frame .healthText then
563587 frame .healthText :Hide ()
564588 end
@@ -612,6 +636,7 @@ function DF:UpdateUnitFrame(frame, source)
612636 frame .statusText :Hide ()
613637 end
614638 end
639+ DF :UpdatePartyIndexText (frame )
615640 if frame .healthText then
616641 frame .healthText :Hide ()
617642 end
@@ -774,6 +799,11 @@ function DF:UpdateUnitFrame(frame, source)
774799 -- ========================================
775800 DF :UpdateNameText (frame )
776801
802+ -- ========================================
803+ -- PARTY INDEX
804+ -- ========================================
805+ DF :UpdatePartyIndexText (frame )
806+
777807 -- ========================================
778808 -- HEALTH TEXT
779809 -- ========================================
@@ -1747,6 +1777,15 @@ local function RefreshFrameFonts(frame, db)
17471777 if statusOutline == " NONE" then statusOutline = " " end
17481778 DF :SafeSetFont (frame .statusText , statusFont , statusFontSize , statusOutline )
17491779 end
1780+
1781+ -- Party index text
1782+ if frame .partyIndexText then
1783+ local partyIndexFont = db .partyIndexTextFont or " Fonts\\ FRIZQT__.TTF"
1784+ local partyIndexFontSize = db .partyIndexTextFontSize or 10
1785+ local partyIndexOutline = db .partyIndexTextOutline or " OUTLINE"
1786+ if partyIndexOutline == " NONE" then partyIndexOutline = " " end
1787+ DF :SafeSetFont (frame .partyIndexText , partyIndexFont , partyIndexFontSize , partyIndexOutline )
1788+ end
17501789end
17511790
17521791function DF :RefreshAllFonts ()
@@ -1832,4 +1871,4 @@ function DF:RefreshAllFonts()
18321871 end
18331872 end
18341873 end
1835- end
1874+ end
0 commit comments