Woot figured out how to change position of bar.
Config.lua
Code:
offsetX = {
name = "X Offset",
type = "input",
width = "half",
order = 13,
desc = "Offsets from the tooltip's anchor left/right",
set = function(info, value)
db.MAB.offsetX = value
MyAddon:UpdateStuff()
end,
get = function(info) return tostring(db.MAB.offsetX) end,
},
offsetY = {
name = "Y Offset",
type = "input",
width = "half",
order = 14,
desc = "Offsets from the anchor up/down",
set = function(info, value)
db.MAB.offsetY = value
MyAddon:UpdateStuff()
end,
get = function(info) return tostring(db.MAB.offsetY) end,
},
anchor = {
name = "Anchor To...",
type = "select",
order = 11,
desc = "What side of the screen you would like the located at.",
values = positions,
set = function(info, value)
db.MAB.anchor = positions[value]
MyAddon:UpdateStuff()
end,
get = function()
for k, v in pairs(positions) do
if v == db.MAB.anchor then
return k
end
end
end,
},
Core.lua
Code:
local defaults = {
profile = {
MAB = {
Enable = true,
HideMacronames = true,
HideGryphons = false,
Scale = .8,
anchor = "BOTTOMLEFT",
offsetX = "-510",
offsetY = "0",
},
-- MainActionBar
for i = 1, 12 do
local MAB = _G["ActionButton"..i]
if (i == 1) then
MAB:ClearAllPoints()
MAB:SetPoint(db.MAB.anchor, Minimap, db.MAB.anchor, db.MAB.offsetX, db.MAB.offsetY)
MAB:SetScale(db.MAB.Scale)
else
MAB:ClearAllPoints()
MAB:SetPoint("LEFT", _G["ActionButton"..i-1],"RIGHT",6,0)
MAB:SetScale(db.MAB.Scale)
end
end
Now still need to figure out how to get the micro names to show and hide.