small adjustments and bug fixes

This commit is contained in:
Tercio Jose
2022-10-08 11:22:36 -03:00
parent f1fa3f5cfe
commit e449983e0c
16 changed files with 314 additions and 79 deletions
+9 -9
View File
@@ -337,7 +337,7 @@ local _
icon_point_anchor_bottom = {-37, 12},
left_corner_anchor_bottom = {-107, 0},
right_corner_anchor_bottom = {96, 0},
icon_on_top = true,
icon_ignore_alpha = true,
icon_titletext_position = {3, 3},
@@ -346,20 +346,20 @@ local _
menu_icons_alpha = 0.92,
["menu_icons_size"] = 0.82,
["color"] = {
0.086274512112141, -- [1]
0.086274512112141, -- [2]
0.086274512112141, -- [3]
0.84036460518837, -- [4]
0.1215,
0.1176,
0.1294,
0.91,
},
["menu_anchor"] = {
20,
0,
["side"] = 2,
},
["bg_r"] = 0.2039215862751,
["bg_g"] = 0.19607844948769,
["bg_b"] = 0.2039215862751,
["bg_alpha"] = 0.49454617500305,
["bg_r"] = 0.243,
["bg_g"] = 0.2352,
["bg_b"] = 0.2588,
["bg_alpha"] = 0.6,
["color_buttons"] = {
1, -- [1]
1, -- [2]
+32 -1
View File
@@ -63,7 +63,36 @@ function SlashCmdList.DETAILS (msg, editbox)
else
_detalhes:ShutDownAllInstances()
end
elseif (command == "perf") then
local performanceData = Details.performanceData
local framesLost = ceil(performanceData.deltaTime / 60)
local callStack = performanceData.callStack
local returnTable = {}
returnTable[#returnTable+1] = "Stuttering Information:"
returnTable[#returnTable+1] = "An addon feature, script is using: " .. performanceData.culpritFunc .. ""
returnTable[#returnTable+1] = ""
returnTable[#returnTable+1] = "Description: " .. performanceData.culpritDesc
returnTable[#returnTable+1] = ""
returnTable[#returnTable+1] = "You may first: disable the addon feature that uses the functionality."
returnTable[#returnTable+1] = "Second: disable a script which are using the function call: " .. performanceData.culpritFunc .. "."
returnTable[#returnTable+1] = ""
returnTable[#returnTable+1] = "Callstack for Debug:"
local callStackTable = DetailsFramework:SplitTextInLines(callStack)
for i = 1, #callStackTable do
returnTable[#returnTable+1] = callStackTable[i]
end
dumpt(returnTable)
elseif (command == "softhide") then
for instanceID, instance in _detalhes:ListInstances() do
if (instance:IsEnabled()) then
@@ -1687,6 +1716,8 @@ function SlashCmdList.DETAILS (msg, editbox)
print ("|cffffaeae/details|r |cffffff33" .. "spells" .. "|r: list of spells already saw.") --localize-me
print("|cFFFFFF00DETAILS! VERSION|r:|cFFFFAA00" .. " " .. Details.GetVersionString())
print ("|cffffaeae/details|r |cffffff33" .. "version" .. "|r: copy version.")
end
end