name = "Behaviour", |
desc = "Mod-Behaviour Options", |
args = { |
|
fadeout = { |
type = "group", |
name = "Fade-Out", |
desc = "Out of combat Fade-Out", |
args = { |
dsc = { |
type = "description", |
order = 0, |
guiHidden = true, |
name = "The Fade-Out behavior allows the RuneWatch Gui to fade-out after combat has ended, this allows the user to have an un-obstructed view when they aren't in combat since RuneWatch is primarily an in-combat mod." |
}, |
enabled = { |
type = "toggle", |
name = "Enabled", |
desc = "Enables/Disables the Fade-Out Behaviour", |
order = 1, |
get = function(info) return GetValue(RuneWatch.db.behaviour.fadeout, "enabled"); end, |
set = function(info, v) SetValue(RuneWatch.db.behaviour.fadeout, "enabled", v); end |
}, |
fo_opts = { |
type = "group", |
name = "Fade-Out Options", |
desc = "Fade-Out Options", |
order = 2, |
inline = true, |
args = { |
fade_opacity = { |
type = "range", |
name = "Fade-Out Opacity", |
desc = "Determines the resulting opacity of the frame after fade-out", |
min = 0, |
max = 1, |
step = 0.1, |
order = 3, |
width = "full", |
get = function(info) return GetValue(RuneWatch.db.behaviour.fadeout, "opacity"); end, |
set = function(info,v) SetValue(RuneWatch.db.behavior.fadeout, "opacity", v); end |
}, |
fade_wait = { |
type = "range", |
name = "Fade-Out Wait", |
desc = "Time to wait after leaving combat before fading out the frame", |
min = 0, |
max = 10, |
step = 1, |
order = 4, |
width = "full", |
get = function(info) return GetValue(RuneWatch.db.behaviour.fadeout, "wait"); end, |
set = function(info,v) SetValue(RuneWatch.db.behaviour.fadeout, "wait", v); end |
}, |
fade_length = { |
type = "range", |
name = "Fade-Out Length", |
desc = "Length of the fade-out effect", |
min = 0, |
max = 5, |
step = 1, |
order = 5, |
width = "full", |
get = function(info) return GetValue(RuneWatch.db.behaviour.fadeout, "length"); end, |
set = function(info,v) SetValue(RuneWatch.db.behaviour.fadeout, "length", v); end |
} |
} |
} |
} |
} |
} |
} |
} |