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 = 2,
+ order = 0,
name = 'Unlocked',
get = function() return pMinimapDB.unlocked end,
set = function()
@@ -51,38 +33,9 @@ |
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 = 6,
+ order = 1,
name = 'Clock',
get = function() return pMinimapDB.clock end,
set = function()
@@ -108,7 +61,7 @@ |
},
coords = {
type = 'toggle',
- order = 7,
+ order = 2,
name = 'Coords',
get = function() return pMinimapDB.coords end,
set = function()
@@ -132,9 +85,24 @@ |
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 = 8,
+ order = 4,
name = 'Mail',
get = function() return pMinimapDB.mail end,
set = function()
@@ -153,7 +121,7 @@ |
},
dura = {
type = 'toggle',
- order = 9,
+ order = 5,
name = 'Durability',
get = function() return pMinimapDB.dura end,
set = function()
@@ -170,14 +138,22 @@ |
end
end
},
- bgheader = {
- name = "Backdrop options",
- type = "header",
- order = 10,
+ 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,
},
bgthick = {
type = 'range',
- order = 11,
+ order = 7,
name = 'Backdrop Thickness',
min = 0,
max = 10,
@@ -189,25 +165,35 @@ |
Minimap:SetBackdropColor(unpack(pMinimapDB.colors))
end
},
- 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)
+ 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()
end
},
- zoneheader = {
- name = "Zone options",
- type = "header",
- order = 13,
+ 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
},
zoneoffset = {
type = 'range',
- order = 14,
+ order = 10,
name = 'ZoneText offset',
min = -25,
max = 25,
@@ -219,24 +205,31 @@ |
MinimapZoneTextButton:SetPoint(pMinimapDB.zonePoint1, Minimap, pMinimapDB.zonePoint2, 0, value)
end
},
- 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
+ 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)
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 = 16,
+ order = 13,
name = 'ZoneText point',
values = {['TOP'] = 'TOP', ['BOTTOM'] = 'BOTTOM'},
get = function() return pMinimapDB.zonePoint2 end,
@@ -253,14 +246,9 @@ |
end
end
},
- fontheader = {
- name = "Font options",
- type = "header",
- order = 17,
- },
font = {
type = 'select',
- order = 18,
+ order = 14,
name = 'Font',
values = list,
get = function()
@@ -277,27 +265,14 @@ |
},
fontflag = {
type = 'select',
- order = 19,
+ order = 15,
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
}
}
}) |