- added new panel to consolidate plugins and panels from the main addon into only one frame.

This commit is contained in:
Tercio
2017-11-26 16:31:05 -02:00
parent 91dd598b03
commit db3030644a
10 changed files with 644 additions and 177 deletions
@@ -473,11 +473,9 @@ local function CreatePluginFrames (data)
end
--> user clicked on button, need open or close window
function EncounterDetails:OpenWindow()
if (EncounterDetails.open) then
if (EncounterDetails.Frame:IsShown()) then
return EncounterDetails:CloseWindow()
end
@@ -508,6 +506,8 @@ local function CreatePluginFrames (data)
C_Timer.After (3, function() EncounterDetails:ShowTutorial() end)
DetailsPluginContainerWindow.OpenPlugin (EncounterDetails)
return true
end
@@ -2103,6 +2103,11 @@ function EncounterDetails:OnEvent (_, event, ...)
[7] = "MONSTER_YELL",
}
--> embed the plugin into the plugin window
if (DetailsPluginContainerWindow) then
DetailsPluginContainerWindow.EmbedPlugin (EncounterDetails, EncounterDetails.Frame)
end
end
end
+6 -6
View File
@@ -1982,7 +1982,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
local already_added = {}
local build_dbm_bars = function()
local t = {}
local db = _detalhes.global_plugin_database ["DETAILS_PLUGIN_ENCOUNTER_DETAILS"]
local db = _detalhes.boss_mods_timers
if (db) then
wipe (already_added)
local encounter_id = EncounterDetails_SpellAurasScroll.encounter_id
@@ -2015,7 +2015,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
local build_bigwigs_bars = function()
local t = {}
local db = _detalhes.global_plugin_database ["DETAILS_PLUGIN_ENCOUNTER_DETAILS"]
local db = _detalhes.boss_mods_timers
if (db) then
wipe (already_added)
local encounter_id = EncounterDetails_SpellAurasScroll.encounter_id
@@ -2485,14 +2485,14 @@ end
local frame = BossFrame
local mouse_down = function()
frame:StartMoving()
frame.isMoving = true
--frame:StartMoving()
--frame.isMoving = true
end
local mouse_up = function()
if (frame.isMoving) then
frame:StopMovingOrSizing()
frame.isMoving = false
-- frame:StopMovingOrSizing()
-- frame.isMoving = false
end
end