WoWInterface SVN RuneWatch

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 17 to Rev 18
    Reverse comparison

Rev 17 → Rev 18

trunk/RuneWatch.lua
30,7 → 30,15
self.dbase:RegisterDefaults({
profile = {
locked = true,
scale = 1.0
scale = 1.0,
behaviour = {
fadeout = {
enabled = true,
opacity = 0.5,
wait = 2,
length = 1
}
}
}
});
self.db = self.dbase.profile;
trunk/Options.lua
1,4 → 1,16
 
local function SetValue(group, field, value)
local dbg = group;
 
dbg[field] = value;
end
 
local function GetValue(group, field)
local dbg = group;
 
return dbg[field];
end
 
local options = {
type = "group",
args = {
38,7 → 50,72
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
}
}
}
}
}
}
}
}