Ok, sure. I think this is the only relevant code however I will upload the file anyway if that helps:
Lua Code:
Panels = { -- This is from the MayronUI.db.profile table
UnitFrameBG = {
Width = 752,
Height = 180,
ofsx = '0',
ofsy = '-110',
point = 'BOTTOM',
relativeFrame = 'mui_actionBars',
relativePoint = "TOP",
frameStrata = 'BACKGROUND',
frameLevel = 5,
},
local p = MayronUI.db.profile.Panels
mui_single = CreateFrame("Frame", "mui_single", mui_menuBar)
mui_single:SetPoint(p.UnitFrameBG.point, p.UnitFrameBG.relativeFrame, p.UnitFrameBG.relativePoint, p.UnitFrameBG.ofsx, p.UnitFrameBG.ofsy)
-- There are more methods being used for this object but did not include them
point = { -- This option is for altering the frames point in a drop down list
order = 5,
type = "select",
name = "Frame Point",
get = function()
return MayronUI.db.profile.Panels.UnitFrameBG.point
end,
set = function(info, value)
MayronUI.db.profile.Panels.UnitFrameBG.point = value
local point, relativeFrame, relativePoint, ofsx, ofsy = mui_single:GetPoint()
mui_single:SetPoint(value, relativeFrame, relativePoint, ofsx, ofsy)
local point, relativeFrame, relativePoint, ofsx, ofsy = mui_double:GetPoint()
mui_double:SetPoint(value, relativeFrame, relativePoint, ofsx, ofsy)
end,
values = {
TOP = "Top",
TOPLEFT = "Top Left",
TOPRIGHT = "Top Right",
BOTTOM = "Bottom",
BOTTOMLEFT = "Bottom Left",
BOTTOMRIGHT = "Bottom Right",
LEFT = "Left",
RIGHT = "Right",
CENTER = "Center",
},
style = "dropdown",
},