After a profile import, reset all the mythic dungeon settings to default.

- After a profile import, reset all the mythic dungeon settings to default.
- Framework update to 237.
This commit is contained in:
Tercio Jose
2021-03-11 11:26:48 -03:00
parent 6623082306
commit 72e5b4c8a5
4 changed files with 40 additions and 5 deletions
+23 -4
View File
@@ -795,6 +795,9 @@ function DF:CreateAuraConfigPanel (parent, name, db, change_callback, options, t
db [spellID] = nil
db ["".. (spellID or "")] = nil -- cleanup...
parent [member]:DoRefresh()
if (removeFunc) then
DF:QuickDispatch (removeFunc)
end
end
local createLineFunc = function (self, index)
@@ -872,11 +875,27 @@ function DF:CreateAuraConfigPanel (parent, name, db, change_callback, options, t
return scroll
end
local buff_tracked = createAuraScrollBox (f_auto, "$parentBuffTracked", "BuffTrackerScroll", f.LocTexts.BUFFS_TRACKED, f.db.aura_tracker.buff_tracked, function()end)
local debuff_tracked = createAuraScrollBox (f_auto, "$parentDebuffTracked", "DebuffTrackerScroll", f.LocTexts.DEBUFFS_TRACKED, f.db.aura_tracker.debuff_tracked, function()end)
local buff_tracked = createAuraScrollBox (f_auto, "$parentBuffTracked", "BuffTrackerScroll", f.LocTexts.BUFFS_TRACKED, f.db.aura_tracker.buff_tracked, function()
if (change_callback) then
DF:QuickDispatch (change_callback)
end
end)
local debuff_tracked = createAuraScrollBox (f_auto, "$parentDebuffTracked", "DebuffTrackerScroll", f.LocTexts.DEBUFFS_TRACKED, f.db.aura_tracker.debuff_tracked, function()
if (change_callback) then
DF:QuickDispatch (change_callback)
end
end)
local buff_ignored = createAuraScrollBox (f_auto, "$parentBuffIgnored", "BuffIgnoredScroll", f.LocTexts.BUFFS_IGNORED, f.db.aura_tracker.buff_banned, function()end)
local debuff_ignored = createAuraScrollBox (f_auto, "$parentDebuffIgnored", "DebuffIgnoredScroll", f.LocTexts.DEBUFFS_IGNORED, f.db.aura_tracker.debuff_banned, function()end)
local buff_ignored = createAuraScrollBox (f_auto, "$parentBuffIgnored", "BuffIgnoredScroll", f.LocTexts.BUFFS_IGNORED, f.db.aura_tracker.buff_banned, function()
if (change_callback) then
DF:QuickDispatch (change_callback)
end
end)
local debuff_ignored = createAuraScrollBox (f_auto, "$parentDebuffIgnored", "DebuffIgnoredScroll", f.LocTexts.DEBUFFS_IGNORED, f.db.aura_tracker.debuff_banned, function()
if (change_callback) then
DF:QuickDispatch (change_callback)
end
end)
local xLocation = 140
scrollWidth = scrollWidth + 20
+1 -1
View File
@@ -1,6 +1,6 @@
local dversion = 236
local dversion = 237
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
+1
View File
@@ -6280,6 +6280,7 @@ do
tinsert(Details.optionsSection, buildSection)
end
-- ~18 - mythic dungeon section
do
local buildSection = function(sectionFrame)
+15
View File
@@ -1700,6 +1700,21 @@ function Details:ImportProfile (profileString, newProfileName)
end
end
end
--profile imported, set mythic dungeon to default settings
local mythicPlusSettings = Details.mythic_plus
mythicPlusSettings.always_in_combat = false
mythicPlusSettings.merge_boss_trash = true
mythicPlusSettings.delete_trash_after_merge = true
mythicPlusSettings.boss_dedicated_segment = true
mythicPlusSettings.make_overall_when_done = true
mythicPlusSettings.make_overall_boss_only = false
mythicPlusSettings.show_damage_graphic = true
mythicPlusSettings.delay_to_show_graphic = 5
mythicPlusSettings.last_mythicrun_chart = {}
mythicPlusSettings.mythicrun_chart_frame = {}
mythicPlusSettings.mythicrun_chart_frame_minimized = {}
mythicPlusSettings.mythicrun_chart_frame_ready = {}
--transfer instance data to the new created profile
profileObject.instances = DetailsFramework.table.copy ({}, profileData.instances)