/
local TYPES = { |
a = {var = "DPS", text = L["Your DPS"]}, |
b = {var = "DPS_IN", text = L["Total DPS In"]}, |
c = {var = "DPS_OUT", text = L["Total DPS Out"]}, |
d = {var = "HEALING", text = L["Your healing"]}, |
--b = {var = "DMG_IN", text = L["Your damage received"]}, |
--c = {var = "DMG_OUT", text = L["Your damage dealt"]}, |
--e = {var = "OVERHEAL", text = L["Your over-healing percentage"]}, |
--f = {var = "MAXHIT", text = L["Your max hit"]}, |
c = {var = "PET_PCT", text = L["Your Pet Percent"]}, |
e = {var = "DPS_IN", text = L["Total DPS In"]}, |
g = {var = "DPS_OUT", text = L["Total DPS Out"]}, |
i = {var = "HPS", text = L["Your HPS"]}, |
k = {var = "TTL_HPS", text = L["Total HPS"]} |
} |
local recapFu_index = 1 |
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 = { |
pet_percent = { |
type = "toggle", |
order = 140, |
name = L["Healing"], |
desc = L["Your healing"], |
order = 120, |
name = L["Pet Percentage"], |
desc = L["Your Pet Percent"], |
get = function() |
return RecapFu.db.profile.HEALING |
return RecapFu.db.profile.PET_PCT |
end, |
set = function() |
RecapFu.db.profile.HEALING = not RecapFu.db.profile.HEALING |
RecapFu.db.profile.PET_PCT = not RecapFu.db.profile.PET_PCT |
RecapFu:UpdateText() |
end, |
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, |
RecapFu:UpdateText() |
end, |
}, |
your_healing = { |
type = "toggle", |
order = 210, |
name = L["Your HPS"], |
desc = L["Your heals per second"], |
get = function() |
return RecapFu.db.profile.HPS |
end, |
set = function() |
RecapFu.db.profile.HPS = not RecapFu.db.profile.HPS |
RecapFu:UpdateText() |
end, |
}, |
total_healing = { |
type = "toggle", |
order = 230, |
name = L["Total HPS"], |
desc = L["Your heals per second"], |
get = function() |
return RecapFu.db.profile.TTL_HPS |
end, |
set = function() |
RecapFu.db.profile.TTL_HPS = not RecapFu.db.profile.TTL_HPS |
RecapFu:UpdateText() |
end, |
}, |
} |
}, |
} |
self.yourdps = 0 |
self.dpsin = 0 |
self.dpsout = 0 |
self.healing = 0 |
self.yourhps = 0 |
self.hpsout = 0 |
self.dmgin = 0 |
self.dmgout = 0 |
self.overheal = 0 |
self.maxhit = 0 |
end |
function RecapFu:OnEnable() |
self.text.DPS_OUT = crayon:Green(self.dpsout) |
self.text.DMG_IN = crayon:Red(self.dmgin) |
self.text.DMG_OUT = crayon:Green(self.dmgout) |
self.text.HEALING = crayon:Colorize("00ffff", self.healing) |
self.text.OVERHEAL = crayon:Colorize("00ffff", self.overheal) .. "%" |
self.text.MAXHIT = crayon:Orange(self.maxhit) |
self.text.HPS = crayon:Colorize("00ffff", self.yourhps) |
self.text.TTL_HPS = crayon:Colorize("00ffff", self.hpsout) |
self.text.PET_PCT = crayon:Colorize("ffffff", self.petpct) |
end |
function RecapFu:UpdateText() |
end |
-- Simulate Titan Panel plugin |
-- Necessary or updates to dps data on the plugin may not occur until after combat ends |
function TitanPanelRecap_Update(state,yourdps,dpsin,dpsout) |
-- Called roughly once a second by recap |
-- Verions earlier than 4.35 do not pass yourhps,hpsout,petpct |
function FuBarRecap_Update(state,yourdps,dpsin,dpsout,yourhps,hpsout,petpct) |
RecapFu.state = state |
RecapFu.viewtype = recap_user.View |
RecapFu.yourdps = yourdps |
RecapFu.dpsin = dpsin |
RecapFu.dpsout = dpsout |
if RecapFu.viewtype == "Last" then |
RecapFu.healing = recap_temp.PlayerHPSLast |
if ( yourhps and hpsout and petpct ) then |
RecapFu.yourhps = yourhps |
RecapFu.hpsout = hpsout |
RecapFu.petpct = petpct |
else |
RecapFu.healing = recap_temp.PlayerHPSAll |
if RecapFu.viewtype == "Last" then |
RecapFu.yourhps = recap_temp.PlayerHPSLast |
RecapFu.hpsout = recap_temp.GroupHPSLast |
RecapFu.petpct = recap_temp.PlayerPetPercentLast |
else |
RecapFu.yourhps = recap_temp.PlayerHPSAll |
RecapFu.hpsout = recap_temp.GroupHPSAll |
RecapFu.petpct = recap_temp.PlayerPetPercentAll |
end |
RecapFu.petpct = RecapFu.petpct .. "%" |
end |
RecapFu:Update() |
## Notes: FuBar plugin for Recap |
## Author: Kitjan |
## X-Credits: Hawksy (for Recap) |
## Version: 2.1 |
## Version: 2.2 |
## X-Category: Combat |
## X-WoWIPortal: Kitjan |
local L = AceLibrary("AceLocale-2.2"):new("RecapFu") |
L:RegisterTranslations("enUS", function() return { |
["Disabled"] = true, |
["Left-click to toggle Recap window"] = true, |
["Pause/Resume Monitoring"] = true, |
["Pause"] = true, |
["Toggle what is displayed on the panel"] = true, |
["Show/Hide the DPS label"] = true, |
["Display"] = true, |
["Label"] = true, |
["State"] = true, |
["View Type"] = true, |
["DPS"] = true, |
["Your DPS"] = true, |
["DPSin"] = true, |
["Total DPS In"] = true, |
["DPSout"] = true, |
["Total DPS Out"] = true, |
["Received"] = true, |
["Your damage received"] = true, |
["Dealt"] = true, |
["Your damage dealt"] = true, |
["Healing"] = true, |
["Your healing"] = true, |
["Overhealing"] = true, |
["Your over-healing percentage"] = true, |
["Max"] = true, |
["Your max hit"] = true, |
["Disabled"] = true, |
["Left-click to toggle Recap window"] = true, |
["Pause/Resume Monitoring"] = true, |
["Pause"] = true, |
["Toggle what is displayed on the panel"] = true, |
["Show/Hide the DPS label"] = true, |
["Display"] = true, |
["Label"] = true, |
["State"] = true, |
["View Type"] = true, |
["DPS"] = true, |
["Your DPS"] = true, |
["DPSin"] = true, |
["Total DPS In"] = true, |
["DPSout"] = true, |
["Total DPS Out"] = true, |
["Received"] = true, |
["Your damage received"] = true, |
["Dealt"] = true, |
["Your damage dealt"] = true, |
["Your HPS"] = true, |
["Your heals per second"] = true, |
["Overhealing"] = true, |
["Your over-healing percentage"] = true, |
["Max"] = true, |
["Your max hit"] = true, |
["Total HPS"] = true, |
["Total heals per second"] = true, |
["Pet Percentage"] = true, |
["Your Pet Percent"] = true, |
} end) |