Fixed Raid Check plugin position and shadow priest void eruption got merged with other spells of the same name

This commit is contained in:
Tercio Jose
2021-07-30 13:06:41 -03:00
parent 9a69703ea7
commit e3c539dc30
3 changed files with 19 additions and 17 deletions
+2
View File
@@ -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
+3 -15
View File
@@ -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
@@ -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)