- added new panel to consolidate plugins and panels from the main addon into only one frame.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user