name = 'pMinimap Options',
type = 'group',
args = {
+ mapheader = {
+ name = "Minimap options",
+ type = "header",
+ order = 0,
+ },
+ scale = {
+ type = 'range',
+ order = 1,
+ name = 'Minimap Scale',
+ min = 0.50,
+ max = 2.50,
+ step = 0.01,
+ get = function() return pMinimapDB.scale end,
+ set = function(_, value)
+ pMinimapDB.scale = value
+ Minimap:SetScale(value)
+ end,
+ },
lock = {
type = 'toggle',
- order = 0,
+ order = 2,
name = 'Unlocked',
get = function() return pMinimapDB.unlocked end,
set = function()
@@ -33,9 +51,38 @@ |
end
end
},
+ level = {
+ type = 'range',
+ order = 3,
+ name = 'Frame level',
+ min = 1,
+ max = 15,
+ step = 1,
+ get = function() return pMinimapDB.level end,
+ set = function(_, value)
+ pMinimapDB.level = value
+ Minimap:SetFrameLevel(value)
+ end
+ },
+ strata = {
+ type = 'select',
+ order = 4,
+ name = 'Frame Strata',
+ values = {['DIALOG'] = 'DIALOG', ['HIGH'] = 'HIGH', ['MEDIUM'] = 'MEDIUM', ['LOW'] = 'LOW', ['BACKGROUND'] = 'BACKGROUND'},
+ get = function() return pMinimapDB.strata end,
+ set = function(_, strata)
+ pMinimapDB.strata = strata
+ Minimap:SetFrameStrata(strata)
+ end
+ },
+ mischeader = {
+ name = "Misc modules",
+ type = "header",
+ order = 5,
+ },
clock = {
type = 'toggle',
- order = 1,
+ order = 6,
name = 'Clock',
get = function() return pMinimapDB.clock end,
set = function()
@@ -61,7 +108,7 @@ |
},
coords = {
type = 'toggle',
- order = 2,
+ order = 7,
name = 'Coords',
get = function() return pMinimapDB.coords end,
set = function()
@@ -85,24 +132,9 @@ |
end
end
},
- zone = {
- type = 'toggle',
- order = 3,
- name = 'ZoneText',
- get = function() return pMinimapDB.zone end,
- set = function()
- pMinimapDB.zone = not pMinimapDB.zone
-
- if(pMinimapDB.zone) then
- MinimapZoneTextButton:Show()
- else
- MinimapZoneTextButton:Hide()
- end
- end
- },
mail = {
type = 'toggle',
- order = 4,
+ order = 8,
name = 'Mail',
get = function() return pMinimapDB.mail end,
set = function()
@@ -121,7 +153,7 @@ |
},
dura = {
type = 'toggle',
- order = 5,
+ order = 9,
name = 'Durability',
get = function() return pMinimapDB.dura end,
set = function()
@@ -138,22 +170,14 @@ |
end
end
},
- scale = {
- type = 'range',
- order = 6,
- name = 'Minimap Scale',
- min = 0.50,
- max = 2.50,
- step = 0.01,
- get = function() return pMinimapDB.scale end,
- set = function(_, value)
- pMinimapDB.scale = value
- Minimap:SetScale(value)
- end,
+ bgheader = {
+ name = "Backdrop options",
+ type = "header",
+ order = 10,
},
bgthick = {
type = 'range',
- order = 7,
+ order = 11,
name = 'Backdrop Thickness',
min = 0,
max = 10,
@@ -165,35 +189,25 @@ |
Minimap:SetBackdropColor(unpack(pMinimapDB.colors))
end
},
- fontsize = {
- type = 'range',
- order = 8,
- name = 'Font Size',
- min = 5,
- max = 18,
- step = 1,
- get = function() return pMinimapDB.fontsize end,
- set = function(_, value)
- pMinimapDB.fontsize = value
- AddToFontStrings()
+ bgcolor = {
+ type = 'color',
+ order = 12,
+ name = 'Backdrop Color',
+ hasAlpha = true,
+ get = function() return unpack(pMinimapDB.colors) end,
+ set = function(_, r, g, b, a)
+ pMinimapDB.colors = {r, g, b, a}
+ Minimap:SetBackdropColor(r, g, b, a)
end
},
- level = {
- type = 'range',
- order = 9,
- name = 'Frame level',
- min = 1,
- max = 15,
- step = 1,
- get = function() return pMinimapDB.level end,
- set = function(_, value)
- pMinimapDB.level = value
- Minimap:SetFrameLevel(value)
- end
+ zoneheader = {
+ name = "Zone options",
+ type = "header",
+ order = 13,
},
zoneoffset = {
type = 'range',
- order = 10,
+ order = 14,
name = 'ZoneText offset',
min = -25,
max = 25,
@@ -205,31 +219,24 @@ |
MinimapZoneTextButton:SetPoint(pMinimapDB.zonePoint1, Minimap, pMinimapDB.zonePoint2, 0, value)
end
},
- bgcolor = {
- type = 'color',
- order = 11,
- name = 'Backdrop Color',
- hasAlpha = true,
- get = function() return unpack(pMinimapDB.colors) end,
- set = function(_, r, g, b, a)
- pMinimapDB.colors = {r, g, b, a}
- Minimap:SetBackdropColor(r, g, b, a)
+ zone = {
+ type = 'toggle',
+ order = 15,
+ name = 'ZoneText',
+ get = function() return pMinimapDB.zone end,
+ set = function()
+ pMinimapDB.zone = not pMinimapDB.zone
+
+ if(pMinimapDB.zone) then
+ MinimapZoneTextButton:Show()
+ else
+ MinimapZoneTextButton:Hide()
+ end
end
},
- strata = {
- type = 'select',
- order = 12,
- name = 'Frame Strata',
- values = {['DIALOG'] = 'DIALOG', ['HIGH'] = 'HIGH', ['MEDIUM'] = 'MEDIUM', ['LOW'] = 'LOW', ['BACKGROUND'] = 'BACKGROUND'},
- get = function() return pMinimapDB.strata end,
- set = function(_, strata)
- pMinimapDB.strata = strata
- Minimap:SetFrameStrata(strata)
- end
- },
zonepoint = {
type = 'select',
- order = 13,
+ order = 16,
name = 'ZoneText point',
values = {['TOP'] = 'TOP', ['BOTTOM'] = 'BOTTOM'},
get = function() return pMinimapDB.zonePoint2 end,
@@ -246,9 +253,14 @@ |
end
end
},
+ fontheader = {
+ name = "Font options",
+ type = "header",
+ order = 17,
+ },
font = {
type = 'select',
- order = 14,
+ order = 18,
name = 'Font',
values = list,
get = function()
@@ -265,14 +277,27 @@ |
},
fontflag = {
type = 'select',
- order = 15,
+ order = 19,
name = 'Font flag',
values = {['OUTLINE'] = 'OUTLINE', ['THICKOUTLINE'] = 'THICKOUTLINE', ['MONOCHROME'] = 'MONOCHROME', ['NONE'] = 'NONE'},
- get = function() return pMinimapDB.fontflag end
+ get = function() return pMinimapDB.fontflag end,
set = function(_, flag)
pMinimapDB.fontflag = flag
AddToFontStrings()
end
+ },
+ fontsize = {
+ type = 'range',
+ order = 20,
+ name = 'Font Size',
+ min = 5,
+ max = 18,
+ step = 1,
+ get = function() return pMinimapDB.fontsize end,
+ set = function(_, value)
+ pMinimapDB.fontsize = value
+ AddToFontStrings()
+ end
}
}
}) |