grow direction added
This commit is contained in:
parent
0c6cae0b04
commit
6da33b6c68
24
Options.lua
24
Options.lua
@ -16,10 +16,11 @@ Gladdy.defaults = {
|
|||||||
x = 0,
|
x = 0,
|
||||||
y = 0,
|
y = 0,
|
||||||
growUp = false,
|
growUp = false,
|
||||||
|
growDirection = "BOTTOM",
|
||||||
frameScale = 1,
|
frameScale = 1,
|
||||||
padding = 3,
|
padding = 1,
|
||||||
barWidth = 180,
|
barWidth = 180,
|
||||||
bottomMargin = 10,
|
bottomMargin = 2,
|
||||||
statusbarBorderOffset = 6,
|
statusbarBorderOffset = 6,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -193,10 +194,21 @@ function Gladdy:SetupOptions()
|
|||||||
desc = L["If enabled the frame will grow upwards instead of downwards"],
|
desc = L["If enabled the frame will grow upwards instead of downwards"],
|
||||||
order = 2,
|
order = 2,
|
||||||
},
|
},
|
||||||
|
growDirection = {
|
||||||
|
type = "select",
|
||||||
|
name = L["Grow Direction"],
|
||||||
|
order = 3,
|
||||||
|
values = {
|
||||||
|
["BOTTOM"] = L["Down"],
|
||||||
|
["TOP"] = L["Up"],
|
||||||
|
["LEFT"] = L["Left"],
|
||||||
|
["RIGHT"] = L["Right"],
|
||||||
|
}
|
||||||
|
},
|
||||||
group = {
|
group = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = "General",
|
name = "General",
|
||||||
order = 3,
|
order = 4,
|
||||||
childGroups = "tree",
|
childGroups = "tree",
|
||||||
args = {
|
args = {
|
||||||
frameGeneral = {
|
frameGeneral = {
|
||||||
@ -238,11 +250,11 @@ function Gladdy:SetupOptions()
|
|||||||
},
|
},
|
||||||
bottomMargin = {
|
bottomMargin = {
|
||||||
type = "range",
|
type = "range",
|
||||||
name = L["Bottom margin"],
|
name = L["Margin"],
|
||||||
desc = L["Margin between each button"],
|
desc = L["Margin between each button"],
|
||||||
order = 7,
|
order = 7,
|
||||||
min = -100,
|
min = -200,
|
||||||
max = 100,
|
max = 200,
|
||||||
step = 1,
|
step = 1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user