File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -480,10 +480,15 @@ function SubModuleMixin:SetupOptions()
480480 return false
481481 end
482482 elseif sub == ' buffsOnTop' then
483- if TARGET_FRAME_BUFFS_ON_TOP then
484- return true
483+ if DF .API .Version .IsTBC then
484+ return addonTable :GetBlizzEditmodeFrameSettingBool (TargetFrame ,
485+ Enum .EditModeUnitFrameSetting .BuffsOnTop );
485486 else
486- return false
487+ if TARGET_FRAME_BUFFS_ON_TOP then
488+ return true ;
489+ else
490+ return false ;
491+ end
487492 end
488493 else
489494 return getOption (info )
@@ -508,6 +513,11 @@ function SubModuleMixin:SetupOptions()
508513 TARGET_FRAME_BUFFS_ON_TOP = false
509514 TargetFrame .buffsOnTop = false
510515 end
516+ if DF .API .Version .IsTBC then
517+ local b = 0 ;
518+ if value then b = 1 ; end
519+ addonTable :SetBlizzEditmodeFrameSetting (TargetFrame , Enum .EditModeUnitFrameSetting .BuffsOnTop , b );
520+ end
511521 if TargetFrame_UpdateAuras then TargetFrame_UpdateAuras (TargetFrame ) end
512522 else
513523 setOption (info , value )
You can’t perform that action at this time.
0 commit comments