diff --git a/Libs/DF/auras.lua b/Libs/DF/auras.lua index f651cb9a..d1187775 100644 --- a/Libs/DF/auras.lua +++ b/Libs/DF/auras.lua @@ -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 diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 9304df50..0fd59e25 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 236 +local dversion = 237 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary (major, minor) diff --git a/frames/window_options2_sections.lua b/frames/window_options2_sections.lua index d86579f8..5482e7a6 100644 --- a/frames/window_options2_sections.lua +++ b/frames/window_options2_sections.lua @@ -6280,6 +6280,7 @@ do tinsert(Details.optionsSection, buildSection) end +-- ~18 - mythic dungeon section do local buildSection = function(sectionFrame) diff --git a/functions/profiles.lua b/functions/profiles.lua index d68a132b..1f315f90 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -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)