added commentator stuff, general code cleanup and better formatting, some deprecated code removed

This commit is contained in:
Tercio Jose
2024-07-09 12:47:24 -03:00
committed by andrew6180
parent af3477354a
commit 00f04959cb
20 changed files with 1602 additions and 1596 deletions
+478 -456
View File
File diff suppressed because it is too large Load Diff
+4 -3
View File
@@ -3,9 +3,10 @@ local Details = _G.Details
local addonName, Details222 = ...
local _
local debugmode = false
Details222.Debug.MythicPlusChartWindowDebug = false
local verbosemode = false
local CreateFrame = CreateFrame
local UIParent = UIParent
@@ -283,7 +284,7 @@ function mythicDungeonCharts.ShowChart()
mythicDungeonCharts.Frame.ChartFrame:Reset()
if (not mythicDungeonCharts.ChartTable) then
if (debugmode) then
if (Details222.Debug.MythicPlusChartWindowDebug) then
--development
if (Details.mythic_plus.last_mythicrun_chart) then
--load the last mythic dungeon run chart
@@ -589,6 +590,6 @@ mythicDungeonCharts.ClassColors = {
["DEMONHUNTER3"] = { r = 0.24, g = 0.09, b = 0.39, colorStr = "ffa330c9" },
};
if (debugmode) then
if (Details222.Debug.MythicPlusChartWindowDebug) then
--C_Timer.After(1, mythicDungeonCharts.ShowChart)
end
+1 -1
View File
@@ -107,7 +107,7 @@ function Details.Survey.InitializeSpellCategoryFeedback()
if (msg:find("funpt")) then
if (not alreadySent) then
Details.spell_category_latest_sent = 0
C_Timer.After(random(0, 200), function()
C_Timer.After(math.random(0, 200), function()
Details.Survey.SendSpellCatogeryDataToTargetCharacter()
end)
alreadySent = true
+3 -1
View File
@@ -1,3 +1,5 @@
local addonName, Details222 = ...
local _detalhes = _G.Details
local Loc = LibStub("AceLocale-3.0"):GetLocale ( "Details" )
local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
@@ -1058,7 +1060,7 @@ local window_openned_at = time()
_detalhes.zone_type = "pvp"
_detalhes:EntrarEmCombate()
Details222.StartCombat()
_detalhes:StartTestBarUpdate()