- Changes to make the live version work with the BfA Beta.
This commit is contained in:
+16
-1
@@ -332,7 +332,22 @@ do
|
||||
end
|
||||
|
||||
function _detalhes:GetCurrentDungeonBossListFromEJ()
|
||||
local EJ_CInstance = EJ_GetCurrentInstance()
|
||||
|
||||
local EJ_CInstance
|
||||
|
||||
if (_detalhes.IsBFAClient) then
|
||||
local mapID = C_Map.GetBestMapForUnit ("player")
|
||||
|
||||
if (not mapID) then
|
||||
--print ("Details! exeption handled: zone has no map")
|
||||
return
|
||||
end
|
||||
|
||||
EJ_CInstance = EJ_GetInstanceForMap (mapID)
|
||||
else
|
||||
EJ_CInstance = EJ_GetCurrentInstance()
|
||||
end
|
||||
|
||||
if (EJ_CInstance and EJ_CInstance ~= 0) then
|
||||
if (_detalhes.encounter_dungeons [EJ_CInstance]) then
|
||||
return _detalhes.encounter_dungeons [EJ_CInstance]
|
||||
|
||||
@@ -920,3 +920,151 @@ if (debugmode) then
|
||||
end
|
||||
|
||||
-- endd
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-->
|
||||
|
||||
--[=[
|
||||
C_Timer.After (2, function()
|
||||
|
||||
|
||||
local Details = _G._detalhes
|
||||
|
||||
--create the left side frame, need a minimize button only
|
||||
--title bar and a minimize button
|
||||
|
||||
local f = CreateFrame ("frame", "DetailsBetaRaidTest", UIParent)
|
||||
--f:Hide()
|
||||
|
||||
f:RegisterEvent ("ZONE_CHANGED_NEW_AREA")
|
||||
f:RegisterEvent ("ENCOUNTER_START")
|
||||
f:RegisterEvent ("ENCOUNTER_END")
|
||||
|
||||
|
||||
f:SetScript ("OnEvent", function (self, event, ...)
|
||||
|
||||
if (event == "ZONE_CHANGED_NEW_AREA") then
|
||||
local zoneName, zoneType, _, _, _, _, _, zoneMapID = GetInstanceInfo()
|
||||
if (zoneName and zoneType == "raid") then
|
||||
f.InRaidInstance = true
|
||||
else
|
||||
f.InRaidInstance = false
|
||||
f:Hide()
|
||||
end
|
||||
|
||||
elseif (event == "ENCOUNTER_END" and _G.WeakAuras) then
|
||||
if (f.InRaidInstance) then
|
||||
f:Show()
|
||||
end
|
||||
|
||||
elseif (event == "ENCOUNTER_START") then
|
||||
f:Hide()
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
f:SetSize (150, 150)
|
||||
f:SetPoint ("left", UIParent, "left", 0, -150)
|
||||
f:SetFrameStrata ("LOW")
|
||||
f:EnableMouse (true)
|
||||
f:SetMovable (true)
|
||||
f:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true})
|
||||
f:SetBackdropColor (0, 0, 0, 0.9)
|
||||
f:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
|
||||
--minimized frame
|
||||
f.FrameMinimized = CreateFrame ("frame", "DetailsBetaRaidTestMinimized", UIParent)
|
||||
local fMinimized = f.FrameMinimized
|
||||
|
||||
fMinimized:SetSize (20, 20)
|
||||
fMinimized:SetPoint ("left", UIParent, "left", 0, 0)
|
||||
fMinimized:SetFrameStrata ("LOW")
|
||||
fMinimized:EnableMouse (true)
|
||||
fMinimized:SetMovable (true)
|
||||
fMinimized:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true})
|
||||
fMinimized:SetBackdropColor (0, 0, 0, 0.9)
|
||||
fMinimized:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
fMinimized:Hide()
|
||||
|
||||
f.IsMinimized = false
|
||||
|
||||
--titlebar
|
||||
local titlebar = CreateFrame ("frame", nil, f)
|
||||
titlebar:SetPoint ("topleft", f, "topleft", 2, -3)
|
||||
titlebar:SetPoint ("topright", f, "topright", -2, -3)
|
||||
titlebar:SetHeight (20)
|
||||
titlebar:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\AddOns\Details\images\background]], tileSize = 64, tile = true})
|
||||
titlebar:SetBackdropColor (.5, .5, .5, 1)
|
||||
titlebar:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
|
||||
--> title
|
||||
local titleLabel = _detalhes.gump:NewLabel (titlebar, titlebar, nil, "titulo", "Raid Test Helper", "GameFontHighlightLeft", 12, {227/255, 186/255, 4/255})
|
||||
titleLabel:SetPoint ("center", titlebar , "center")
|
||||
titleLabel:SetPoint ("top", titlebar , "top", 0, -5)
|
||||
f.TitleText = titleLabel
|
||||
|
||||
|
||||
local fw = Details.gump
|
||||
|
||||
--weakauras
|
||||
local open_aura_dbm_timer= function()
|
||||
--> open details! aura panel for
|
||||
|
||||
end
|
||||
|
||||
local open_debuff_aura= function()
|
||||
--> open plugin on the debuffs page
|
||||
|
||||
end
|
||||
|
||||
local DBMTimerButton = fw:CreateButton (f, open_aura_dbm_timer, 140, 20, "Create Big Boss Timer", _, _, _, _, _, -1, fw:GetTemplate ("button", "OPTIONS_BUTTON_TEMPLATE"), fw:GetTemplate ("font", "OPTIONS_FONT_TEMPLATE"))
|
||||
local DebuffAuraButton = fw:CreateButton (f, open_debuff_aura, 140, 20, "Create Boss Debuff Aura", _, _, _, _, _, -1, fw:GetTemplate ("button", "OPTIONS_BUTTON_TEMPLATE"), fw:GetTemplate ("font", "OPTIONS_FONT_TEMPLATE"))
|
||||
|
||||
--all spells
|
||||
|
||||
local open_boss_spells = function()
|
||||
|
||||
end
|
||||
local BossSpellsButton = fw:CreateButton (f, open_boss_spells, 140, 20)
|
||||
|
||||
--set the positions
|
||||
local YStart = -28
|
||||
DBMTimerButton:SetPoint (5, YStart)
|
||||
DebuffAuraButton:SetPoint (5, YStart * 2)
|
||||
|
||||
|
||||
|
||||
|
||||
Details! Beta Helper
|
||||
|
||||
All Spells:
|
||||
- show a list of spells
|
||||
|
||||
Timers:
|
||||
- show when the spell cast some spells
|
||||
|
||||
|
||||
* on hover over the create dbm timer button showing a .gif showing how the timer works
|
||||
* clicking on it open the Spell List in the dbm or bigwigs panel
|
||||
|
||||
* on click on create aura for debuff, open the encoutnern details panel on the aura creation
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
end)
|
||||
|
||||
--]=]
|
||||
+17
-1
@@ -985,6 +985,7 @@ local default_profile = {
|
||||
report_to_who = "",
|
||||
report_heal_links = false,
|
||||
report_schema = 1,
|
||||
deny_score_messages = false,
|
||||
|
||||
--> colors
|
||||
default_bg_color = 0.0941,
|
||||
@@ -1409,7 +1410,22 @@ function _detalhes:RestoreState_CurrentMythicDungeonRun()
|
||||
local savedTable = _detalhes.mythic_dungeon_currentsaved
|
||||
local mythicLevel = C_ChallengeMode.GetActiveKeystoneInfo()
|
||||
local zoneName, _, _, _, _, _, _, currentZoneID = GetInstanceInfo()
|
||||
local ejID = EJ_GetCurrentInstance()
|
||||
|
||||
local ejID = 0
|
||||
|
||||
if (_detalhes.IsBFAClient) then
|
||||
local mapID = C_Map.GetBestMapForUnit ("player")
|
||||
|
||||
if (not mapID) then
|
||||
return
|
||||
end
|
||||
|
||||
if (mapID) then
|
||||
ejID = EJ_GetInstanceForMap (mapID) or 0
|
||||
end
|
||||
else
|
||||
ejID = EJ_GetCurrentInstance() or 0
|
||||
end
|
||||
|
||||
--> is there a saved state for the dungeon?
|
||||
if (savedTable.started) then
|
||||
|
||||
Reference in New Issue
Block a user