Better options for Real Time DPS

- Removed 'Real Time DPS' from the time measure dropdown.
- Added "Show 'Real Time' DPS" toggle to show real time dps while in combat.
- Added "Order Bars By Real Time DPS" toggle to order bars by the amount of real time dps.
- Added "Always Use Real Time in Arenas" toggle to always use real time dps in Arenas.
- Added .last_dps_realtime to player actors, caches the latest real time dps calculated.
This commit is contained in:
Tercio Jose
2023-07-24 16:43:34 -03:00
parent ae490f434d
commit 762c80669d
51 changed files with 2300 additions and 887 deletions
+35 -1
View File
@@ -200,11 +200,12 @@ do
Details:RefreshMainWindow(-1, true)
afterUpdate()
end
local timetypeOptions = {
--localize-me
{value = 1, label = "Activity Time", onclick = onSelectTimeType, icon = "Interface\\Icons\\Achievement_Quests_Completed_Daily_08", iconcolor = {1, .9, .9}, texcoord = {0.078125, 0.921875, 0.078125, 0.921875}},
{value = 2, label = "Effective Time", onclick = onSelectTimeType, icon = "Interface\\Icons\\Achievement_Quests_Completed_08"},
{value = 3, label = "Real Time", onclick = onSelectTimeType, icon = "Interface\\Icons\\Ability_Evoker_TipTheScales"},
--{value = 3, label = "Real Time", onclick = onSelectTimeType, icon = "Interface\\Icons\\Ability_Evoker_TipTheScales"},
}
local buildTimeTypeMenu = function()
return timetypeOptions
@@ -304,6 +305,39 @@ do
desc = Loc ["STRING_OPTIONS_TIMEMEASURE_DESC"],
},
{--use real time
type = "toggle",
get = function() return Details.use_realtimedps end,
set = function(self, fixedparam, value)
Details.use_realtimedps = value
end,
name = "Show 'Real Time' DPS",
desc = "If Enabled and while in combat, show the damage done of the latest 5 seconds divided by 5.",
boxfirst = true,
},
{--real time dps order bars
type = "toggle",
get = function() return Details.realtimedps_order_bars end,
set = function(self, fixedparam, value)
Details.realtimedps_order_bars = value
end,
name = "Order Bars By Real Time DPS",
desc = "If Enabled, players dealing more real time DPS are place above other players in the window.",
boxfirst = true,
},
{--always use real time in arenas
type = "toggle",
get = function() return Details.realtimedps_always_arena end,
set = function(self, fixedparam, value)
Details.realtimedps_always_arena = value
end,
name = "Always Use Real Time in Arenas",
desc = "If Enabled, real time DPS is always used in arenas, even if the option above is disabled.",
boxfirst = true,
},
{type = "blank"},
{type = "label", get = function() return "Segments:" end, text_template = subSectionTitleTextTemplate},