local options = { |
type = 'group', |
args = { |
pause = { |
type = "toggle", |
order = 100, |
name = L["Pause"], |
desc = L["Pause/Resume Monitoring"], |
get = function() |
return RecapFu.state and ("Stopped" == RecapFu.state); |
end, |
set = function() |
Recap_OnClick("Pause") |
end, |
}, |
display = { |
type = "group", |
order = 102, |
name = L["Display"], |
desc = L["Toggle what is displayed on the panel"], |
args = { |
label = { |
type = "toggle", |
order = 100, |
name = L["Label"], |
desc = L["Show/Hide the DPS label"], |
get = function() |
return RecapFu.db.profile.showlabel |
end, |
set = function() |
RecapFu.db.profile.showlabel = not RecapFu.db.profile.showlabel |
RecapFu:UpdateText() |
end, |
}, |
dps = { |
type = "toggle", |
order = 110, |
name = L["DPS"], |
desc = L["Your DPS"], |
get = function() |
return RecapFu.db.profile.DPS |
end, |
set = function() |
RecapFu.db.profile.DPS = not RecapFu.db.profile.DPS |
RecapFu:UpdateText() |
end, |
}, |
-- dmgin = { |
-- type = "toggle", |
-- order = 120, |
-- name = L["Received"], |
-- desc = L["Your damage received"], |
-- get = function() |
-- return RecapFu.db.profile.DMG_IN |
-- end, |
-- set = function() |
-- RecapFu.db.profile.DMG_IN = not RecapFu.db.profile.DMG_IN |
-- RecapFu:UpdateText() |
-- end, |
-- }, |
-- dmgout = { |
-- type = "toggle", |
-- order = 130, |
-- name = L["Dealt"], |
-- desc = L["Your damage dealt"], |
-- get = function() |
-- return RecapFu.db.profile.DMG_OUT |
-- end, |
-- set = function() |
-- RecapFu.db.profile.DMG_OUT = not RecapFu.db.profile.DMG_OUT |
-- RecapFu:UpdateText() |
-- end, |
-- }, |
healing = { |
type = "toggle", |
order = 140, |
name = L["Healing"], |
desc = L["Your healing"], |
get = function() |
return RecapFu.db.profile.HEALING |
end, |
set = function() |
RecapFu.db.profile.HEALING = not RecapFu.db.profile.HEALING |
RecapFu:UpdateText() |
end, |
}, |
-- overheal = { |
-- type = "toggle", |
-- order = 150, |
-- name = L["Overhealing"], |
-- desc = L["Your over-healing percentage"], |
-- get = function() |
-- return RecapFu.db.profile.OVERHEAL |
-- end, |
-- set = function() |
-- RecapFu.db.profile.OVERHEAL = not RecapFu.db.profile.OVERHEAL |
-- RecapFu:UpdateText() |
-- end, |
-- }, |
-- maxhit = { |
-- type = "toggle", |
-- order = 160, |
-- name = L["Max"], |
-- desc = L["Your max hit"], |
-- get = function() |
-- return RecapFu.db.profile.MAXHIT |
-- end, |
-- set = function() |
-- RecapFu.db.profile.MAXHIT = not RecapFu.db.profile.MAXHIT |
-- RecapFu:UpdateText() |
-- end, |
-- }, |
dpsin = { |
type = "toggle", |
order = 170, |
name = L["DPSin"], |
desc = L["Total DPS In"], |
get = function() |
return RecapFu.db.profile.DPS_IN |
end, |
set = function() |
RecapFu.db.profile.DPS_IN = not RecapFu.db.profile.DPS_IN |
RecapFu:UpdateText() |
end, |
}, |
dpsout = { |
type = "toggle", |
order = 180, |
name = L["DPSout"], |
desc = L["Total DPS Out"], |
get = function() |
return RecapFu.db.profile.DPS_OUT |
end, |
set = function() |
RecapFu.db.profile.DPS_OUT = not RecapFu.db.profile.DPS_OUT |
RecapFu:UpdateText() |
end, |
}, |
} |
}, |
pause = { |
type = "toggle", |
order = 100, |
name = L["Pause"], |
desc = L["Pause/Resume Monitoring"], |
get = function() |
return RecapFu.state and ("Stopped" == RecapFu.state); |
end, |
set = function() |
Recap_OnClick("Pause") |
end, |
}, |
display = { |
type = "group", |
order = 102, |
name = L["Display"], |
desc = L["Toggle what is displayed on the panel"], |
args = { |
label = { |
type = "toggle", |
order = 100, |
name = L["Label"], |
desc = L["Show/Hide the DPS label"], |
get = function() |
return RecapFu.db.profile.showlabel |
end, |
set = function() |
RecapFu.db.profile.showlabel = not RecapFu.db.profile.showlabel |
RecapFu:UpdateText() |
end, |
}, |
dps = { |
type = "toggle", |
order = 110, |
name = L["DPS"], |
desc = L["Your DPS"], |
get = function() |
return RecapFu.db.profile.DPS |
end, |
set = function() |
RecapFu.db.profile.DPS = not RecapFu.db.profile.DPS |
RecapFu:UpdateText() |
end, |
}, |
-- dmgin = { |
-- type = "toggle", |
-- order = 120, |
-- name = L["Received"], |
-- desc = L["Your damage received"], |
-- get = function() |
-- return RecapFu.db.profile.DMG_IN |
-- end, |
-- set = function() |
-- RecapFu.db.profile.DMG_IN = not RecapFu.db.profile.DMG_IN |
-- RecapFu:UpdateText() |
-- end, |
-- }, |
-- dmgout = { |
-- type = "toggle", |
-- order = 130, |
-- name = L["Dealt"], |
-- desc = L["Your damage dealt"], |
-- get = function() |
-- return RecapFu.db.profile.DMG_OUT |
-- end, |
-- set = function() |
-- RecapFu.db.profile.DMG_OUT = not RecapFu.db.profile.DMG_OUT |
-- RecapFu:UpdateText() |
-- end, |
-- }, |
healing = { |
type = "toggle", |
order = 140, |
name = L["Healing"], |
desc = L["Your healing"], |
get = function() |
return RecapFu.db.profile.HEALING |
end, |
set = function() |
RecapFu.db.profile.HEALING = not RecapFu.db.profile.HEALING |
RecapFu:UpdateText() |
end, |
}, |
-- overheal = { |
-- type = "toggle", |
-- order = 150, |
-- name = L["Overhealing"], |
-- desc = L["Your over-healing percentage"], |
-- get = function() |
-- return RecapFu.db.profile.OVERHEAL |
-- end, |
-- set = function() |
-- RecapFu.db.profile.OVERHEAL = not RecapFu.db.profile.OVERHEAL |
-- RecapFu:UpdateText() |
-- end, |
-- }, |
-- maxhit = { |
-- type = "toggle", |
-- order = 160, |
-- name = L["Max"], |
-- desc = L["Your max hit"], |
-- get = function() |
-- return RecapFu.db.profile.MAXHIT |
-- end, |
-- set = function() |
-- RecapFu.db.profile.MAXHIT = not RecapFu.db.profile.MAXHIT |
-- RecapFu:UpdateText() |
-- end, |
-- }, |
dpsin = { |
type = "toggle", |
order = 170, |
name = L["DPSin"], |
desc = L["Total DPS In"], |
get = function() |
return RecapFu.db.profile.DPS_IN |
end, |
set = function() |
RecapFu.db.profile.DPS_IN = not RecapFu.db.profile.DPS_IN |
RecapFu:UpdateText() |
end, |
}, |
dpsout = { |
type = "toggle", |
order = 180, |
name = L["DPSout"], |
desc = L["Total DPS Out"], |
get = function() |
return RecapFu.db.profile.DPS_OUT |
end, |
set = function() |
RecapFu.db.profile.DPS_OUT = not RecapFu.db.profile.DPS_OUT |
RecapFu:UpdateText() |
end, |
}, |
} |
}, |
} |
} |
|