Added Erase Segment Options: "Remove Common Segments" and "Reset, but keep Mythic+ Overall Segments"

This commit is contained in:
Tercio Jose
2023-11-20 19:36:28 -03:00
parent 22483cb77c
commit 95ba39b389
3 changed files with 133 additions and 16 deletions
+25 -1
View File
@@ -2209,7 +2209,7 @@ local iconFrame_OnEnter = function(self)
local previousScore = rioProfile.previousScore or 0
local currentScore = rioProfile.currentScore or 0
if (previousScore > currentScore) then
if (false and previousScore > currentScore and time() > 1700562401) then --2023.11.21 midday
GameCooltip:AddLine("M+ Score:", previousScore .. " (|cFFFFDD11" .. currentScore .. "|r)", 1, "white")
addedInfo = true
else
@@ -2257,6 +2257,20 @@ local iconFrame_OnEnter = function(self)
height = height + 19
end
if (actor.classe == "UNKNOW") then
local npcId = tonumber(actor.aID)
if (not npcId) then
npcId = Details:GetNpcIdFromGuid(actor.serial)
end
if (npcId) then
GameCooltip:AddLine("NpcID:", npcId)
GameCooltip:AddIcon([[]], 1, 1, 1, 20)
Details:AddTooltipBackgroundStatusbar()
height = height + 19
end
end
GameCooltip:SetOption("FixedHeight", height)
GameCooltip:ShowCooltip()
@@ -8990,6 +9004,16 @@ end
Details:SetTooltipMinWidth()
gameCooltip:AddLine("Remove Common Segments", nil, 1, "white", nil, Details.font_sizes.menus, Details.font_faces.menus)
gameCooltip:AddIcon([[Interface\Buttons\UI-StopButton]], 1, 1, 14, 14, 0, 1, 0, 1, "orange")
gameCooltip:AddMenu(1, function() return Details.tabela_historico:ResetDataByCombatType("generic") end)
gameCooltip:AddLine("Reset, but keep Mythic+ Overall Segments", nil, 1, "white", nil, Details.font_sizes.menus, Details.font_faces.menus)
gameCooltip:AddIcon([[Interface\Buttons\UI-StopButton]], 1, 1, 14, 14, 0, 1, 0, 1, "orange")
gameCooltip:AddMenu(1, function() return Details.tabela_historico:ResetDataByCombatType("m+overall") end)
gameCooltip:AddLine("$div", nil, 1, nil, -5, -11)
gameCooltip:AddLine(Loc["STRING_ERASE_DATA_OVERALL"], nil, 1, "white", nil, Details.font_sizes.menus, Details.font_faces.menus)
gameCooltip:AddIcon([[Interface\Buttons\UI-StopButton]], 1, 1, 14, 14, 0, 1, 0, 1, "orange")
gameCooltip:AddMenu(1, Details.tabela_historico.ResetOverallData)