Hi there.
Maybe this could help:
Code:
showBar1, showBar2, showBar3, showBar4 = GetActionBarToggles()
The GetActionBarToggles() returns 1 if the interface option is set to show the corresponding action bar.
In you case you should do something like this:
Code:
showBar1, showBar2, showBar3, showBar4 = GetActionBarToggles()
if (showBarx) then -- replace x with the action bar you checking
posy = y -- y postion you want
else
posy = y2 -- other position you want if the actionbar isn't showing
end
cfg.bars.petbar.pos { a1 = "BOTTOM", a2 = "BOTTOM", af = "UIParent", x = 0, y = posy},
edit: Actually i just notice the cfg.bars.petbar.pos is inside a table correct?
You can't do the "if, else," etc part inside the table. You need to do it outside the "table"