From e3c539dc30d29c4f00d7ac0e755f3c76186657ab Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 30 Jul 2021 13:06:41 -0300 Subject: [PATCH] Fixed Raid Check plugin position and shadow priest void eruption got merged with other spells of the same name --- core/parser.lua | 2 ++ frames/window_cdtracker.lua | 18 +++--------------- .../Details_RaidCheck/Details_RaidCheck.lua | 16 ++++++++++++++-- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index d51bcd7a..a7cc1b61 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -232,6 +232,8 @@ [32175] = 17364, -- shaman Stormstrike (from Turkar on github) [32176] = 17364, -- shaman Stormstrike [45284] = 188196, --shaman lightining bolt overloaded + + [228361] = 228360, --shadow priest void erruption } end diff --git a/frames/window_cdtracker.lua b/frames/window_cdtracker.lua index 726f6de5..c18a903b 100644 --- a/frames/window_cdtracker.lua +++ b/frames/window_cdtracker.lua @@ -46,7 +46,7 @@ function Details.CooldownTracking.EnableTracker() raidStatusLib.RegisterCallback(Details.CooldownTracking, "CooldownListWiped", "CooldownListWipedFunc") raidStatusLib.RegisterCallback(Details.CooldownTracking, "CooldownUpdate", "CooldownUpdateFunc") - Details.CooldownTracking.RefreshCooldownFrames() + --Details.CooldownTracking.RefreshCooldownFrames() end function Details.CooldownTracking.DisableTracker() @@ -58,23 +58,11 @@ function Details.CooldownTracking.DisableTracker() end --unregister callbacks - raidStatusLib.UnregisterCallback(Details.CooldownTracking, "CooldownListUpdate", "CooldownListUpdateFunc") - raidStatusLib.UnregisterCallback(Details.CooldownTracking, "CooldownListWiped", "CooldownListWipedFunc") + raidStatusLib.UnregisterCallback(Details.CooldownTracking, "CooldownListUpdate", "CooldownUpdateFunc") + raidStatusLib.UnregisterCallback(Details.CooldownTracking, "CooldownListWiped", "CooldownUpdateFunc") raidStatusLib.UnregisterCallback(Details.CooldownTracking, "CooldownUpdate", "CooldownUpdateFunc") end - -function Details.CooldownTracking.CooldownListUpdateFunc() - --print("CooldownListUpdate") - Details.CooldownTracking.RefreshCooldowns() -end - -function Details.CooldownTracking.CooldownListWipedFunc() - --print("CooldownListWiped") - Details.CooldownTracking.RefreshCooldowns() -end - function Details.CooldownTracking.CooldownUpdateFunc() - print("CooldownUpdate") Details.CooldownTracking.RefreshCooldowns() end diff --git a/plugins/Details_RaidCheck/Details_RaidCheck.lua b/plugins/Details_RaidCheck/Details_RaidCheck.lua index 9a51f9b0..99e1898e 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.lua +++ b/plugins/Details_RaidCheck/Details_RaidCheck.lua @@ -10,6 +10,8 @@ local DF = DetailsFramework local UnitGroupRolesAssigned = DF.UnitGroupRolesAssigned +local version = "95" + --> build the list of buffs to track local flask_list = DF.FlaskIDs @@ -67,7 +69,6 @@ end tinsert (UISpecialFrames, "Details_RaidCheck") DetailsRaidCheck:SetPluginDescription (Loc ["STRING_RAIDCHECK_PLUGIN_DESC"]) - local version = "v3.0.1" local debugmode = false --local debugmode = true @@ -716,7 +717,18 @@ end DetailsRaidCheck.ToolbarButton:SetScript ("OnEnter", function (self) show_panel:Show() show_panel:ClearAllPoints() - show_panel:SetPoint ("bottom", DetailsRaidCheck.ToolbarButton, "top", 0, 10) + + local bottomPosition = self:GetBottom() + local screenHeight = GetScreenHeight() + + local positionHeightPercent = bottomPosition / screenHeight + + if (positionHeightPercent > 0.7) then + show_panel:SetPoint("top", DetailsRaidCheck.ToolbarButton, "bottom", 0, -10) + else + show_panel:SetPoint("bottom", DetailsRaidCheck.ToolbarButton, "top", 0, 10) + end + show_panel.NextUpdate = UpdateSpeed update_panel (show_panel, 1) show_panel:SetScript ("OnUpdate", update_panel)