Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an option to Keep Mythic+ Overall Segments to the automatic erase data dialog. #735

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion core/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1866,7 +1866,7 @@
local panel = _G.DetailsEraseDataConfirmation
if (not panel) then
panel = CreateFrame("frame", "DetailsEraseDataConfirmation", UIParent, "BackdropTemplate")
panel:SetSize(400, 85)
panel:SetSize(600, 85)
panel:SetPoint("center", UIParent)

DetailsFramework:AddRoundedCornersToFrame(panel, Details.PlayerBreakdown.RoundedCornerPreset)
Expand Down Expand Up @@ -1900,6 +1900,11 @@
local yes = Details.gump:CreateButton(panel, function() panel:Hide(); Details.tabela_historico:ResetAllCombatData() end, 90, 20, Loc ["STRING_YES"])
yes:SetPoint("bottomright", panel, "bottomright", -30, 10)
yes:InstallCustomTexture(nil, nil, nil, nil, true)

local keepMythicPlus = Details.gump:CreateButton(panel, function() panel:Hide(); Details.tabela_historico:ResetDataByCombatType("m+overall") end, 90, 20, Loc ["STRING_OPTIONS_KEEP_MYTHICPLUS_OVERALL"])
keepMythicPlus:SetPoint("center", panel, "center")
keepMythicPlus:SetPoint("bottom", panel, "bottom", 0, 10)
keepMythicPlus:InstallCustomTexture(nil, nil, nil, nil, true)
end

panel:Show()
Expand Down
2 changes: 2 additions & 0 deletions locales/Details-enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ L["STRING_OPTIONS_COMBAT_ALPHA_DESC"] = [=[Select how combat affects the window
L["STRING_OPTIONS_COMBATTWEEKS"] = "Combat Tweaks"
L["STRING_OPTIONS_COMBATTWEEKS_DESC"] = "Behavioral adjustments on how Details! deal with some combat aspects."
L["STRING_OPTIONS_CONFIRM_ERASE"] = "Do you want to erase data?"
L["STRING_OPTIONS_KEEP_MYTHICPLUS_OVERALL"] = "Yes, but keep Mythic+ Overall Segments"
L["STRING_OPTIONS_CUSTOMSPELL_ADD"] = "Add Spell"
L["STRING_OPTIONS_CUSTOMSPELLTITLE"] = "Edit Spell Settings"
L["STRING_OPTIONS_CUSTOMSPELLTITLE_DESC"] = "This panel alows you modify the name and icon of spells."
Expand Down Expand Up @@ -1715,5 +1716,6 @@ L["STRING_WIPE_ERROR1"] = "a wipe already has been call."
L["STRING_WIPE_ERROR2"] = "we aren't in a raid encounter."
L["STRING_WIPE_ERROR3"] = "couldn't end the encounter."
L["STRING_YES"] = "Yes"
L["STRING_RESET_KEEP_MYTHICPLUS_OVERALL"] = "Reset, but keep Mythic+ Overall Segments"

--@localization(locale="enUS", format="lua_additive_table")@