From bf67a7773df610b53cc5142b66b642cbd1c5d0c3 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 14 Dec 2020 14:30:01 -0300 Subject: [PATCH] Bug fixing --- Libs/LibRaidStatus/LibRaidStatus.lua | 2 +- Libs/LibRaidStatus/ThingsToMantain.lua | 1 - core/network.lua | 15 +++++++++++++++ frames/window_cdtracker.lua | 2 +- frames/window_main.lua | 2 +- functions/dungeon.lua | 21 --------------------- functions/profiles.lua | 5 +++-- startup.lua | 7 ++++++- 8 files changed, 27 insertions(+), 28 deletions(-) diff --git a/Libs/LibRaidStatus/LibRaidStatus.lua b/Libs/LibRaidStatus/LibRaidStatus.lua index 0dd1fcf6..76efd93b 100644 --- a/Libs/LibRaidStatus/LibRaidStatus.lua +++ b/Libs/LibRaidStatus/LibRaidStatus.lua @@ -1,6 +1,6 @@ local major = "LibRaidStatus-1.0" -local CONST_LIB_VERSION = 7 +local CONST_LIB_VERSION = 8 LIB_RAID_STATUS_CAN_LOAD = false --declae the library within the LibStub diff --git a/Libs/LibRaidStatus/ThingsToMantain.lua b/Libs/LibRaidStatus/ThingsToMantain.lua index 5d216a99..f644c4cf 100644 --- a/Libs/LibRaidStatus/ThingsToMantain.lua +++ b/Libs/LibRaidStatus/ThingsToMantain.lua @@ -153,7 +153,6 @@ LIB_RAID_STATUS_COOLDOWNS_BY_SPEC = { [265202] = 4, --Holy Word: Salvation (talent) [88625] = 5, --Holy Word: Chastise [34861] = 5, --Holy Word: Sanctify - [2050] = 5, --Holy Word: Serenity [19236] = 5, --Desperate Prayer [8122] = 5, --Psychic Scream }, diff --git a/core/network.lua b/core/network.lua index 66488cf4..90d15cf1 100644 --- a/core/network.lua +++ b/core/network.lua @@ -194,6 +194,9 @@ end function _detalhes.network.Cloud_Request (player, realm, core_version, ...) + --deprecated | need to remove + if (true) then return end + if (_detalhes.debug) then _detalhes:Msg ("(debug)", player, _detalhes.host_of, _detalhes:CaptureIsAllEnabled(), core_version == _detalhes.realversion) end @@ -212,6 +215,9 @@ end function _detalhes.network.Cloud_Found (player, realm, core_version, ...) + --deprecated | need to remove + if (true) then return end + if (_detalhes.host_by) then return end @@ -230,6 +236,9 @@ end function _detalhes.network.Cloud_DataRequest (player, realm, core_version, ...) + --deprecated | need to remove + if (true) then return end + if (not _detalhes.host_of) then return end @@ -271,6 +280,9 @@ end function _detalhes.network.Cloud_DataReceived (player, realm, core_version, ...) + --deprecated | need to remove + if (true) then return end + local atributo, atributo_name, data = player, realm, core_version local container = _detalhes.tabela_vigente [atributo] @@ -338,6 +350,9 @@ end function _detalhes.network.Cloud_Equalize (player, realm, core_version, data) + --deprecated | need to remove + if (true) then return end + if (not _detalhes.in_combat) then if (core_version ~= _detalhes.realversion) then return diff --git a/frames/window_cdtracker.lua b/frames/window_cdtracker.lua index 12f99ffe..a62ba458 100644 --- a/frames/window_cdtracker.lua +++ b/frames/window_cdtracker.lua @@ -227,7 +227,7 @@ function Details.OpenCDTrackerWindow() if (not _G.DetailsCDTrackerWindow or not _G.DetailsCDTrackerWindow.Initialized) then _G.DetailsCDTrackerWindow.Initialized = true local f = _G.DetailsCDTrackerWindow or DF:CreateSimplePanel(UIParent, 700, 480, "Details! Online CD Tracker", "DetailsCDTrackerWindow") - + DF:ApplyStandardBackdrop(f) --enabled with a toggle button --execute to reset position --misc configs diff --git a/frames/window_main.lua b/frames/window_main.lua index 3ee4a4fe..5107238c 100644 --- a/frames/window_main.lua +++ b/frames/window_main.lua @@ -3009,7 +3009,7 @@ end function _detalhes:InstanceAlert (msg, icon, time, clickfunc, doflash, forceAlert) if (not forceAlert and _detalhes.streamer_config.no_alerts) then - return + --return end if (not self.meu_id) then diff --git a/functions/dungeon.lua b/functions/dungeon.lua index 50d567ca..4130050f 100644 --- a/functions/dungeon.lua +++ b/functions/dungeon.lua @@ -667,27 +667,6 @@ function mythicDungeonCharts.ShowChart() mythicDungeonCharts.Frame.ChartFrame:AddLine (chartData, lineColor, lineName, combatTime, texture, "SMA") tinsert (mythicDungeonCharts.PlayerGraphIndex, playerName) - - --[=[ - local smoothFactor = 0.075 - local forecastSmoothFactor = 1 - smoothFactor - local lastForecast = chartData[1] - local chartLag = {lastForecast} - local maxValue = lastForecast - - for i = 2, #chartData do - local forecast = (chartData[i] * smoothFactor) + (lastForecast * forecastSmoothFactor) - tinsert (chartLag, forecast) - lastForecast = forecast - - if (forecast > maxValue) then - maxValue = forecast - end - end - chartLag.max_value = maxValue - - mythicDungeonCharts.Frame.ChartFrame:AddLine (chartLag, lineColor, lineName, combatTime, texture, "SMA") - --]=] end mythicDungeonCharts.Frame.ChartFrame:RefreshBossTimeline (mythicDungeonCharts.ChartTable.BossDefeated, mythicDungeonCharts.ChartTable.ElapsedTime) diff --git a/functions/profiles.lua b/functions/profiles.lua index 1b9b97db..fc7752d5 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -834,7 +834,7 @@ local default_profile = { 0, -- [3] }, }, - + --> ocd tracker test ocd_tracker = { enabled = false, @@ -843,7 +843,8 @@ local default_profile = { show_conditions = { only_in_group = true, only_inside_instance = true, - } + }, + show_options = false, }, --> minimap diff --git a/startup.lua b/startup.lua index b43d28b8..dc45ffc2 100644 --- a/startup.lua +++ b/startup.lua @@ -54,7 +54,9 @@ function Details:StartMeUp() --I'll never stop! self:InitializePlaterIntegrationWindow() self:InitializeMacrosWindow() - self:InitializeCDTrackerWindow() + if (self.ocd_tracker.show_options) then + self:InitializeCDTrackerWindow() + end --custom window self.custom = self.custom or {} @@ -477,6 +479,9 @@ function Details:StartMeUp() --I'll never stop! _detalhes.streamer_config.use_animation_accel = true end + --shutdown pre-pot announcer + Details.announce_prepots.enabled = false + --Plater integration C_Timer.After(2, function() _detalhes:RefreshPlaterIntegration()