Added played class time to /played, also added a command to disable it
This commit is contained in:
@@ -1367,6 +1367,9 @@ local default_global_data = {
|
||||
merge_pet_abilities = false,
|
||||
merge_player_abilities = false,
|
||||
|
||||
played_class_time = true,
|
||||
check_stuttering = true,
|
||||
|
||||
--spell category feedback
|
||||
spell_category_savedtable = {},
|
||||
spell_category_latest_query = 0,
|
||||
|
||||
@@ -70,6 +70,19 @@ function SlashCmdList.DETAILS (msg, editbox)
|
||||
_detalhes:ShutDownAllInstances()
|
||||
end
|
||||
|
||||
elseif (command == "classtime" or command == "playedclass") then
|
||||
Details.played_class_time = not Details.played_class_time
|
||||
Details:Msg("played class:", Details.played_class_time and "enabled" or "disabled")
|
||||
|
||||
elseif (command == "stopperfcheck") then
|
||||
Details.check_stuttering = not Details.check_stuttering
|
||||
Details:Msg("stuttering/freeze checker:", Details.check_stuttering and "enabled" or "disabled")
|
||||
if (Details.check_stuttering) then
|
||||
_G["UpdateAddOnMemoryUsage"] = Details.UpdateAddOnMemoryUsage_Custom
|
||||
else
|
||||
_G["UpdateAddOnMemoryUsage"] = Details.UpdateAddOnMemoryUsage_Original
|
||||
end
|
||||
|
||||
elseif (command == "perf") then
|
||||
local performanceData = Details.performanceData
|
||||
local framesLost = ceil(performanceData.deltaTime / 60)
|
||||
|
||||
Reference in New Issue
Block a user