- Battle for Dazaralor update.

- Fixed rogue spec icons.
- Some visual improvements.
- Framework update.
This commit is contained in:
Tercioo
2019-01-20 00:22:22 -02:00
parent b198c62489
commit 0c486a24a2
32 changed files with 3069 additions and 248 deletions
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details! 3D Model Viewer
## Notes: When the 3d models option is enabled, this tool is used to select which model will be used on the window's rows.
## DefaultState: Enabled
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details Storage
## Notes: Stores information for Details!
## DefaultState: Enabled
+1 -1
View File
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details Damage, the Game! (plugin)
## Notes: Plugin for Details
## RequiredDeps: Details
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details Dps Tuning (plugin)
## Notes: Plugin for Details
## RequiredDeps: Details
@@ -3,6 +3,13 @@ local Loc = AceLocale:GetLocale ("Details_EncounterDetails")
local Graphics = LibStub:GetLibrary("LibGraph-2.0")
local _
local isDebug = false
local function DebugMessage (...)
if (isDebug) then
print ("|cFFFFFF00EBreakDown|r:", ...)
end
end
--> Needed locals
local _GetTime = GetTime --> wow api local
local _UFC = UnitAffectingCombat --> wow api local
@@ -49,7 +56,7 @@ local sort_by_name = function (t1, t2) return t1.nome < t2.nome end
local CLASS_ICON_TCOORDS = _G.CLASS_ICON_TCOORDS
EncounterDetails.name = "Encounter Details"
EncounterDetails.name = "Encounter Breakdown"
EncounterDetails.debugmode = false
function EncounterDetails:FormatCooltipSettings()
@@ -390,7 +397,7 @@ local function CreatePluginFrames (data)
local alert = CreateFrame ("frame", "EncounterDetailsTutorialAlertButton1", EncounterDetails.ToolbarButton, "MicroButtonAlertTemplate")
alert:SetFrameLevel (302)
alert.label = "Click here (on the skull icon) to bring the Encounter Details panel"
alert.label = "Click here (on the skull icon) to bring the Encounter Breakdown panel"
alert.Text:SetSpacing (4)
alert:SetClampedToScreen (true)
MicroButtonAlert_SetText (alert, alert.label)
@@ -491,8 +498,19 @@ local function CreatePluginFrames (data)
end
EncounterDetailsFrame:HookScript ("OnShow", function()
C_Timer.After (0.1, function()
if (not EncounterDetails.LastOpenedTime or EncounterDetails.LastOpenedTime + 2 < GetTime()) then
if (_detalhes.AddOnStartTime and _detalhes.AddOnStartTime + 30 < GetTime()) then
EncounterDetails:OpenAndRefresh()
end
end
end)
end)
--> user clicked on button, need open or close window
function EncounterDetails:OpenWindow()
if (EncounterDetails.Frame:IsShown()) then
return EncounterDetails:CloseWindow()
end
@@ -1144,23 +1162,45 @@ function EncounterDetails:OpenAndRefresh (_, segment)
local frame = EncounterDetailsFrame --alias
DebugMessage ("OpenAndRefresh() called")
EncounterDetails.LastOpenedTime = GetTime()
_G [frame:GetName().."SegmentsDropdown"].MyObject:Refresh()
if (segment) then
_combat_object = EncounterDetails:GetCombat (segment)
EncounterDetails._segment = segment
DebugMessage ("there's a segment to use:", segment, _combat_object, _combat_object and _combat_object.is_boss)
else
DebugMessage ("no segment has been passed, looping segments to find one.")
local historico = _detalhes.tabela_historico.tabelas
local foundABoss = false
for index, combate in ipairs (historico) do
if (combate.is_boss and combate.is_boss.index) then
_G [frame:GetName().."SegmentsDropdown"].MyObject:Select (index)
EncounterDetails._segment = index
_combat_object = combate
DebugMessage ("segment found: ", index, combate:GetCombatName(), combate.is_trash)
_G [frame:GetName().."SegmentsDropdown"].MyObject:Select (index, true)
foundABoss = index
break
end
end
if (not foundABoss) then
DebugMessage ("boss not found during the segment loop")
end
end
if (not _combat_object) then
EncounterDetails:Msg ("no combat found.")
DebugMessage ("_combat_object is nil, EXIT")
return
end
@@ -1181,16 +1221,32 @@ function EncounterDetails:OpenAndRefresh (_, segment)
end
if (not _combat_object.is_boss) then
for _, combat in _ipairs (EncounterDetails:GetCombatSegments()) do
DebugMessage ("_combat_object is not a boss, trying another loop in the segments")
local foundSegment
for index, combat in _ipairs (EncounterDetails:GetCombatSegments()) do
if (combat.is_boss and EncounterDetails:GetBossDetails (combat.is_boss.mapid, combat.is_boss.index)) then
_combat_object = combat
_G [frame:GetName().."SegmentsDropdown"].MyObject:Select (index, true)
DebugMessage ("found another segment during another loop", index, combat:GetCombatName(), combat.is_trash)
foundSegment = true
break
end
end
if (not foundSegment) then
DebugMessage ("boss not found during the second loop segment")
end
if (not _combat_object.is_boss) then
DebugMessage ("_combat_object still isn't a boss segment, trying to get the last segment shown.")
if (EncounterDetails.LastSegmentShown) then
_combat_object = EncounterDetails.LastSegmentShown
DebugMessage ("found the last segment shown, using it.")
else
DebugMessage ("the segment isn't a boss, EXIT.")
return
end
end
@@ -1198,6 +1254,8 @@ function EncounterDetails:OpenAndRefresh (_, segment)
--> the segment is a boss
DebugMessage ("segment are OKAY, updating the panel")
boss_id = _combat_object.is_boss.index
map_id = _combat_object.is_boss.mapid
boss_info = _detalhes:GetBossDetails (_combat_object.is_boss.mapid, _combat_object.is_boss.index)
@@ -1,6 +1,6 @@
## Interface: 80000
## Title: Details Encounter (plugin)
## Notes: Plugin for Details
## Interface: 80100
## Title: Details!: Encounter Breakdown (plugin)
## Notes: Show detailed information about a boss encounter. Also provide damage per phase, graphic charts, easy weakauras creation.
## RequiredDeps: Details
## OptionalDeps: Ace3
## SavedVariablesPerCharacter: EncounterDetailsDB
+2 -2
View File
@@ -4,8 +4,8 @@ if (not Loc) then
return
end
Loc ["STRING_PLUGIN_NAME"] = "Encounter Details"
Loc ["STRING_WINDOW_TITLE"] = "Details! Encounter Info"
Loc ["STRING_PLUGIN_NAME"] = "Encounter Breakdown"
Loc ["STRING_WINDOW_TITLE"] = "Details! Encounter Breakdown"
Loc ["STRING_TOTAL_DAMAGE"] = "Total Damage"
Loc ["STRING_TOTAL_HEAL"] = "Total Heal"
Loc ["STRING_SHOW_ALL_DATA"] = "Show overall data"
+3 -3
View File
@@ -76,7 +76,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
local build_options_panel = function()
local options_frame = EncounterDetails:CreatePluginOptionsFrame ("EncounterDetailsOptionsWindow", "Encounter Details Options", 2)
local options_frame = EncounterDetails:CreatePluginOptionsFrame ("EncounterDetailsOptionsWindow", "Encounter Breakdown Options", 2)
-- 1 = only when inside a raid map
-- 2 = only when in raid group
@@ -132,7 +132,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
type = "toggle",
get = function() return EncounterDetails.db.hide_on_combat end,
set = function (self, fixedparam, value) EncounterDetails.db.hide_on_combat = value end,
desc = "Encounter Details window automatically close when you enter in combat.",
desc = "Encounter Breakdown window automatically close when you enter in combat.",
name = "Hide on Combat"
},
{
@@ -2635,7 +2635,7 @@ end
BossFrame.MacroEditBox = DetailsFrameWork:CreateTextEntry (frame, function()end, 300, 20)
BossFrame.MacroEditBox:SetPoint ("left", options, "right", 10, 0)
BossFrame.MacroEditBox:SetAlpha (0.5)
BossFrame.MacroEditBox:SetText ("/run Details:OpenPlugin ('Encounter Details')")
BossFrame.MacroEditBox:SetText ("/run Details:OpenPlugin ('Encounter Breakdown')")
BossFrame.MacroEditBox:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTON_TEMPLATE"))
BossFrame.MacroEditBox:SetSize (360, 20)
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details Raid Check (plugin)
## Notes: Show a icon on Details title bar showing flask, food, pre-pots.
## RequiredDeps: Details
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details!: Streamer (plugin)
## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps.
## RequiredDeps: Details
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details TimeAttack (plugin)
## Notes: Plugin for Details
## SavedVariablesPerCharacter: _detalhes_databaseTimeAttack
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details Tiny Threat (plugin)
## Notes: Plugin for Details
## RequiredDeps: Details
@@ -1,4 +1,4 @@
## Interface: 80000
## Interface: 80100
## Title: Details Vanguard (plugin)
## Notes: Plugin for Details
## SavedVariablesPerCharacter: _detalhes_databaseVanguard