View Single Post
05-03-22, 12:57 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
An existing addon ? Probably one of the action bar addons maybe has something. Otherwise ...

Looking at the blizzard code it looks like the MainMenuBar is also doing something to put things back.

https://www.townlong-yak.com/framexm...ainMenuBar.lua
https://www.townlong-yak.com/framexm...ingManager.lua

StatusTrackingManagerMixin:UpdateBarsShown is executed after any statusbar event is triggered
StatusTrackingManagerMixin:LayoutBars(visBars) is called at the end of that function
which calls self:GetParent():OnStatusBarsUpdated() which is MainMenuBarMixin:OnStatusBarsUpdated()
which then calls MainMenuBarMixin:SetPositionForStatusBars()

LayoutBars essentially repositions the bars in line with their parents position which by default is the MainMenuBar. So outside of re-parenting and dealing with any issues arising outside of that you might be able to hook into StatusTrackingManagerMixin:LayoutBar(bar, barWidth, isTopBar, isDouble) and reset the layout of each bar as you wish it to be.

I haven't played with mixin overriding to know if it is possible though.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote