diff --git a/.pkgmeta b/.pkgmeta
index 382a2128..2525dc7a 100644
--- a/.pkgmeta
+++ b/.pkgmeta
@@ -11,4 +11,8 @@ move-folders:
Details/plugins/Details_DungeonInfo-Warlords: Details_DungeonInfo-Warlords
Details/plugins/Details_3DModelsPaths: Details_3DModelsPaths
Details/plugins/Details_RaidCheck: Details_RaidCheck
- Details/plugins/Details_DpsTuning: Details_DpsTuning
\ No newline at end of file
+ Details/plugins/Details_DpsTuning: Details_DpsTuning
+
+required-dependencies:
+ - details_raidpowerbars
+ - details-legacy-raids-info
\ No newline at end of file
diff --git a/Libs/DF/colors.lua b/Libs/DF/colors.lua
index ed794f9d..f52a48ac 100644
--- a/Libs/DF/colors.lua
+++ b/Libs/DF/colors.lua
@@ -7,6 +7,18 @@ do
end
DF.alias_text_colors = {
+ ["HUNTER"] = {0.67, 0.83, 0.45},
+ ["WARLOCK"] = {0.58, 0.51, 0.79},
+ ["PRIEST"] = {1.0, 1.0, 1.0},
+ ["PALADIN"] = {0.96, 0.55, 0.73},
+ ["MAGE"] = {0.41, 0.8, 0.94},
+ ["ROGUE"] = {1.0, 0.96, 0.41},
+ ["DRUID"] = {1.0, 0.49, 0.04},
+ ["SHAMAN"] = {0.0, 0.44, 0.87},
+ ["WARRIOR"] = {0.78, 0.61, 0.43},
+ ["DEATHKNIGHT"] = {0.77, 0.12, 0.23},
+ ["MONK"] = {0.0, 1.00, 0.59},
+
["aliceblue"] = {0.941176, 0.972549, 1, 1},
["antiquewhite"] = {0.980392, 0.921569, 0.843137, 1},
["aqua"] = {0, 1, 1, 1},
diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua
index 51419481..1ff84ee3 100644
--- a/Libs/DF/fw.lua
+++ b/Libs/DF/fw.lua
@@ -1,5 +1,5 @@
-local major, minor = "DetailsFramework-1.0", 8
+local major, minor = "DetailsFramework-1.0", 9
local DF, oldminor = LibStub:NewLibrary (major, minor)
if (not DF) then
@@ -167,6 +167,10 @@ DF.www_icons = {
mmoc = {0, 0.7890625, 80/123, 123/128},
}
+function DF:IntegerToTimer (value)
+ return "" .. floor (value/60) .. ":" .. format ("%02.f", value%60)
+end
+
function DF:Embed (target)
for k, v in pairs (embed_functions) do
target[v] = self[v]
diff --git a/Libs/DF/normal_bar.lua b/Libs/DF/normal_bar.lua
index 4d5605fb..2c1bc751 100644
--- a/Libs/DF/normal_bar.lua
+++ b/Libs/DF/normal_bar.lua
@@ -509,48 +509,92 @@ local APIBarFunctions
function BarMetaFunctions:OnTimerEnd()
if (self.OnTimerEndHook) then
- local interrupt = self.OnTimerEndHook()
+ local interrupt = self.OnTimerEndHook (self)
if (interrupt) then
return
end
end
self.timer_texture:Hide()
+ self.timer_textureR:Hide()
self.div_timer:Hide()
self:Hide()
self.timer = false
end
local OnUpdate = function (self, elapsed)
- local timepct = (elapsed / self.tempo) * 100
- self.c = self.c - (timepct*self.width/100)
+ --> percent of elapsed
+ local pct = abs (self.end_timer - GetTime() - self.tempo) / self.tempo
+ if (self.inverse) then
+ self.t:SetWidth (self.total_size * pct)
+ else
+ self.t:SetWidth (self.total_size * abs (pct-1))
+ end
+
+ --> right text
self.remaining = self.remaining - elapsed
- self.righttext:SetText (_math_floor (self.remaining))
- self.timertexture:SetWidth (self.c)
- if (self.c < 1) then
+ if (self.MyObject.RightTextIsTimer) then
+ self.righttext:SetText (DF:IntegerToTimer (self.remaining))
+ else
+ self.righttext:SetText (_math_floor (self.remaining))
+ end
+
+ if (pct >= 1) then
+ self.righttext:SetText ("")
self:SetScript ("OnUpdate", nil)
self.MyObject:OnTimerEnd()
end
end
function BarMetaFunctions:SetTimer (tempo)
-
- self.statusbar.width = self.statusbar:GetWidth()
+
+ -- o que é inverso
+ -- barra cheia
+ -- barra vazia
+ -- o que é left to right
+ -- barra que faz da direita pra esquerda
+ -- contrário
+
self.statusbar.tempo = tempo
self.statusbar.remaining = tempo
- self.statusbar.c = self.statusbar.width
+ self.statusbar.total_size = self.statusbar:GetWidth()
+ self.statusbar.end_timer = GetTime() + tempo
+ self.statusbar.inverse = self.BarIsInverse
- self.timer_texture:Show()
- self.timer_texture:SetWidth (self.statusbar.width)
- self.statusbar.t = self.timer_texture
- self (1)
+ self (0)
self.div_timer:Show()
self.background:Show()
self:Show()
+ if (self.LeftToRight) then
+ self.timer_texture:Hide()
+ self.timer_textureR:Show()
+ self.statusbar.t = self.timer_textureR
+ self.timer_textureR:ClearAllPoints()
+ self.timer_textureR:SetPoint ("right", self.statusbar, "right")
+ self.div_timer:SetPoint ("left", self.timer_textureR, "left", -14, -1)
+ else
+ self.timer_texture:Show()
+ self.timer_textureR:Hide()
+ self.statusbar.t = self.timer_texture
+ self.timer_texture:ClearAllPoints()
+ self.timer_texture:SetPoint ("left", self.statusbar, "left")
+ self.div_timer:SetPoint ("left", self.timer_texture, "right", -16, -1)
+ end
+
+ if (self.BarIsInverse) then
+ self.statusbar.t:SetWidth (1)
+ else
+ self.statusbar.t:SetWidth (self.statusbar.total_size)
+ end
+
self.timer = true
- self.statusbar:SetScript ("OnUpdate", OnUpdate)
+ DF:ScheduleTimer ("StartTimeBarAnimation", 0.1, self)
+ end
+
+ function DF:StartTimeBarAnimation (timebar)
+ timebar.statusbar:SetScript ("OnUpdate", OnUpdate)
end
------------------------------------------------------------------------------------------------------------
@@ -644,6 +688,9 @@ function DF:NewBar (parent, container, name, member, w, h, value, texture_name)
BarObject.timer_texture:SetWidth (w)
BarObject.timer_texture:SetHeight (h)
+ BarObject.timer_textureR = _G [name .. "_timerTextureR"]
+ BarObject.timer_textureR:Hide()
+
BarObject._texture = _G [name .. "_statusbarTexture"]
BarObject.background = _G [name .. "_background"]
BarObject._icon = _G [name .. "_icon"]
diff --git a/Libs/DF/normal_bar.xml b/Libs/DF/normal_bar.xml
index 919ca1e2..238f13d1 100644
--- a/Libs/DF/normal_bar.xml
+++ b/Libs/DF/normal_bar.xml
@@ -23,6 +23,14 @@
+
+
+
+
+
+
+
+
diff --git a/boot.lua b/boot.lua
index 1348efe0..603e1418 100644
--- a/boot.lua
+++ b/boot.lua
@@ -3,8 +3,8 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
- _detalhes.build_counter = 1601 --it's 1601 for release
- _detalhes.userversion = "v4.0d"
+ _detalhes.build_counter = 1936 --it's 1936 for release
+ _detalhes.userversion = "v4.0e"
_detalhes.realversion = 75 --core version
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
Details = _detalhes
@@ -45,7 +45,7 @@ do
--
- Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v4.d (|cFFFFCC00Set 09, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added a custom display for Crowd Control Received.\n\n|cFFFFFF00-|r Weak Aura Creator Tool, now has full support for BigWigs and Dbm time bars.\n\n|cFFFFFF00-|r Auras for interrupt and dispelling has been added on the Weak Aura Creator Tool.\n\n|cFFFFFF00-|r Details! Forge now has support for DBM and BigWigs time bars.\n\n|cFFFFFF00-|r Solo Plugins now has a close button on their panels.\n\n|cFFFFFF00-|r Fixed damage/healing score message after a boss kill.\n\n|cFFFFFF00-|r Now, an alert to open the history panel is shown after killing a boss.\n\n|cFFFFFF00-|r Added a 'all-displays' menu when right clicking title bar.\n\n|cFFFFFF00-|r Removed few texture from bookmarks panel, now it has a more clean appearance.\n\n|cFFFFFF00-|r Updated Details! Framework.\n\n|cFFFFFF00-|r Added option in order to change the bar orientation.\n\n|cFFFFFF00-|r Added an option to make the menus on title bar work with clicks instead of hovering over them.\n\n|cFFFFFF00-|r Healing for battleground enemies is now placed on healing done instead of enemy healing done.\n\n|cFFFFFF00-|r Improvements on our support for Arena battles.\n\n|cFFFFFF00-|r Fixed some issues on the Player Detail Window.\n\n|cFFFFFF00-|r Fixed encounter time on title bar text.\n\n|cFFFFFF00-|r Fixed death display tooltip, wasn't respecting the font and size set on options panel.\n\n|cFFFFFF00v3.18.5 (|cFFFFCC00Aug 19, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Improvements on Weakauras creation from Encounter Details plugin.\n\n|cFFFFFF00-|r Improvements on 'Auto Switch to Current' feature. Details! windows are now more responsible about auto changing a segment while the player, for instance, has the report window opened.\n\n|cFFFFFF00-|r Added slash command '/de wipe'. It ends the raid encounter segment and stop capturing data.\nIf you are the raid leader, all other users of Details! will also stop.\nWorks great for players not make damage padding after a wipe call.\n\n|cFFFFFF00-|r Added the overheal made by pets on tooltip and player details window.\n\n|cFFFFFF00-|r Added an option to disable stretch button and bar highlight.\n\n|cFFFFFF00-|r Disabling nicknames now also disable avatars.\n\n|cFFFFFF00-|r Added 'spinal healing injector' on custom display 'Health Potion & Stone' used.\n\n|cFFFFFF00-|r Fixed title text width when auto-hide menu buttons is enabled.\n\n|cFFFFFF00-|r Fixed item level of timewarped items.\n\n|cFFFFFF00-|r Fixed report for custom display Crowd Control.\n\n|cFFFFFF00-|r Fixed role icons on custom displays.\n\n|cFFFFFF00-|r Fixed an issue with dropdown boxes where wasn't showing all options.\n\n|cFFFFFF00-|r Fixed Ticket #53: background alpha after stretching which wasn't correctly coming back to original color.\n\n|cFFFFFF00-|r Fixed ticket #51: API Call 'GetCombat('overall')' wasn't returning the overall combat object.\n\n|cFFFFFF00-|r Fixed ticket #50: issue opening icon selection frame.\n\n|cFFFFFF00v3.17.12 (|cFFFFCC00Aug 05, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added an option for lock micro displays. When locked they don't interact with mouse or stay on top of menus.\n\n|cFFFFFF00-|r Fixed ticket #49: death display not working correctly with sort direction bottom-to-top.\n\n|cFFFFFF00-|r Fixed an issue with death display where the text wasn't updating their width correctly.\n\n|cFFFFFF00-|r Fixed an issue with energy and miscellaneous displays type not working correctly with bar animations.\n\n|cFFFFFF00-|r Fixed an issue while loading old profiles wans't updating their values for newer versions of the addon.\n\n|cFFFFFF00-|r Fixed an issue with bookmarks panel not opening correctly.\n\n|cFFFFFF00v3.17.10 (|cFFFFCC00Aug 02, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed ticket #47: Title bar font resets with UI reload / relog.\n\n|cFFFFFF00-|r Fixed ticket #46: Icon select panel wasn't opening.\n\n|cFFFFFF00-|r Fixed ticket #45: Windwalker icon for Mistweaver monks.\n\n|cFFFFFF00-|r Fixed issue with vehicles exchanging ownership, e.g. Soulbound Constructor on HFC raid.\n\n|cFFFFFF00v3.17.6 (|cFFFFCC00Jul 16, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Major improvements on the aura tool creation for WeakAuras.\n\n|cFFFFFF00-|r Fixed some issues with spec icons where sometimes it shows four small icons.\n\n|cFFFFFF00-|r Added an option to show a stopwatch on the title text showing the elapsed time of an encounter.\n\n|cFFFFFF00-|r Window title text now shrinks correctly when isn't enough space for it.\n\n|cFFFFFF00-|r For some special cases, left click now open the report window and shift+click shows the tooltip content in the window.\n\n|cFFFFFF00-|r Damage Taken by Spells now are a part of Damage bracket (no more on custom).\n\n|cFFFFFF00-|r Fixed custom functions for the customized bar left text.\n\n|cFFFFFF00-|r Improvements on report text format and also reverse option now works as intended.\n\n|cFFFFFF00-|r Removed the option for report only what is shown in the window.\n\n|cFFFFFF00-|r Added skins for report panel, the skin follow the skin selected for Player Detail Window.\n\n|cFFFFFF00v3.16.0c (|cFFFFCC00Jul 06, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Encounter Details graphic for Archimonde encounter.\n\n|cFFFFFF00-|r Numbers format on Player Detail Window now respect the format chosen on options panel.\n\n|cFFFFFF00-|r Removed pet icons on Player Detail Window.\n\n|cFFFFFF00-|r Fixed some wrong textures on spec icons.\n\n|cFFFFFF00-|r Improvements on all skins for the Player Detail Window.\n\n|cFFFFFF00v3.15.8b (|cFFFFCC00Jul 01, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Soul Capacitor trinket fix.\n\n|cFFFFFF00-|r Fixed several small bugs from 6.2 patch.\n\n|cFFFFFF00-|r Disabled the special behavior for Tyrant Velhari encounter.\n\n|cFFFFFF00v3.15.7 (|cFFFFCC00Jun 23, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added support for Hellfire Citadel raid.\n\n|cFFFFFF00-|r Added support for custom CLEU parser functions.\n\n|cFFFFFF00-|r Tyrant Velhari encounter now has a custom CLEU parser function for healing where the heal absorbed by Aura of Contempt will count towards overheal and not healing done.\n\n|cFFFFFF00-|r Added support for embed on Chat Tabs.\n\n|cFFFFFF00-|r |cFFAAFFAAPS: We've made an addon for Shadow-Lord Iskar encounter called 'Iskar Assist' check it out|r.\n\n|cFFFFFF00v3.15.5a (|cFFFFCC00Jun 12, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue where sometimes tooltips wasn't being shown.\n\n|cFFFFFF00-|r Fixed a problem with overall data where it was using, even on dungoens, the raid-only 30 delay rule.\n\n|cFFFFFF00-|r Fixed an issue with spec detection (now it may detect even faster).\n\n|cFFFFFF00v3.15.5 (|cFFFFCC00Jun 09, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed a problem with auto hide feature not hiding plugins hosted by the window.\n\n|cFFFFFF00-|r Fixed an issue with stretch feature when the anchor button was anchored at the bottom side of the window."
+ Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v4.0e (|cFFFFCC00Set 14, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added a custom display for Crowd Control Received.\n\n|cFFFFFF00-|r Weak Aura Creator Tool, now has full support for BigWigs and Dbm time bars.\n\n|cFFFFFF00-|r Auras for interrupt and dispelling has been added on the Weak Aura Creator Tool.\n\n|cFFFFFF00-|r Details! Forge now has support for DBM and BigWigs time bars.\n\n|cFFFFFF00-|r Solo Plugins now has a close button on their panels.\n\n|cFFFFFF00-|r Fixed damage/healing score message after a boss kill.\n\n|cFFFFFF00-|r Now, an alert to open the history panel is shown after killing a boss.\n\n|cFFFFFF00-|r Added a 'all-displays' menu when right clicking title bar.\n\n|cFFFFFF00-|r Removed few texture from bookmarks panel, now it has a more clean appearance.\n\n|cFFFFFF00-|r Updated Details! Framework.\n\n|cFFFFFF00-|r Added option in order to change the bar orientation.\n\n|cFFFFFF00-|r Added an option to make the menus on title bar work with clicks instead of hovering over them.\n\n|cFFFFFF00-|r Healing for battleground enemies is now placed on healing done instead of enemy healing done.\n\n|cFFFFFF00-|r Improvements on our support for Arena battles.\n\n|cFFFFFF00-|r Fixed some issues on the Player Detail Window.\n\n|cFFFFFF00-|r Fixed encounter time on title bar text.\n\n|cFFFFFF00-|r Fixed death display tooltip, wasn't respecting the font and size set on options panel.\n\n|cFFFFFF00v3.18.5 (|cFFFFCC00Aug 19, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Improvements on Weakauras creation from Encounter Details plugin.\n\n|cFFFFFF00-|r Improvements on 'Auto Switch to Current' feature. Details! windows are now more responsible about auto changing a segment while the player, for instance, has the report window opened.\n\n|cFFFFFF00-|r Added slash command '/de wipe'. It ends the raid encounter segment and stop capturing data.\nIf you are the raid leader, all other users of Details! will also stop.\nWorks great for players not make damage padding after a wipe call.\n\n|cFFFFFF00-|r Added the overheal made by pets on tooltip and player details window.\n\n|cFFFFFF00-|r Added an option to disable stretch button and bar highlight.\n\n|cFFFFFF00-|r Disabling nicknames now also disable avatars.\n\n|cFFFFFF00-|r Added 'spinal healing injector' on custom display 'Health Potion & Stone' used.\n\n|cFFFFFF00-|r Fixed title text width when auto-hide menu buttons is enabled.\n\n|cFFFFFF00-|r Fixed item level of timewarped items.\n\n|cFFFFFF00-|r Fixed report for custom display Crowd Control.\n\n|cFFFFFF00-|r Fixed role icons on custom displays.\n\n|cFFFFFF00-|r Fixed an issue with dropdown boxes where wasn't showing all options.\n\n|cFFFFFF00-|r Fixed Ticket #53: background alpha after stretching which wasn't correctly coming back to original color.\n\n|cFFFFFF00-|r Fixed ticket #51: API Call 'GetCombat('overall')' wasn't returning the overall combat object.\n\n|cFFFFFF00-|r Fixed ticket #50: issue opening icon selection frame.\n\n|cFFFFFF00v3.17.12 (|cFFFFCC00Aug 05, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added an option for lock micro displays. When locked they don't interact with mouse or stay on top of menus.\n\n|cFFFFFF00-|r Fixed ticket #49: death display not working correctly with sort direction bottom-to-top.\n\n|cFFFFFF00-|r Fixed an issue with death display where the text wasn't updating their width correctly.\n\n|cFFFFFF00-|r Fixed an issue with energy and miscellaneous displays type not working correctly with bar animations.\n\n|cFFFFFF00-|r Fixed an issue while loading old profiles wans't updating their values for newer versions of the addon.\n\n|cFFFFFF00-|r Fixed an issue with bookmarks panel not opening correctly.\n\n|cFFFFFF00v3.17.10 (|cFFFFCC00Aug 02, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed ticket #47: Title bar font resets with UI reload / relog.\n\n|cFFFFFF00-|r Fixed ticket #46: Icon select panel wasn't opening.\n\n|cFFFFFF00-|r Fixed ticket #45: Windwalker icon for Mistweaver monks.\n\n|cFFFFFF00-|r Fixed issue with vehicles exchanging ownership, e.g. Soulbound Constructor on HFC raid.\n\n|cFFFFFF00v3.17.6 (|cFFFFCC00Jul 16, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Major improvements on the aura tool creation for WeakAuras.\n\n|cFFFFFF00-|r Fixed some issues with spec icons where sometimes it shows four small icons.\n\n|cFFFFFF00-|r Added an option to show a stopwatch on the title text showing the elapsed time of an encounter.\n\n|cFFFFFF00-|r Window title text now shrinks correctly when isn't enough space for it.\n\n|cFFFFFF00-|r For some special cases, left click now open the report window and shift+click shows the tooltip content in the window.\n\n|cFFFFFF00-|r Damage Taken by Spells now are a part of Damage bracket (no more on custom).\n\n|cFFFFFF00-|r Fixed custom functions for the customized bar left text.\n\n|cFFFFFF00-|r Improvements on report text format and also reverse option now works as intended.\n\n|cFFFFFF00-|r Removed the option for report only what is shown in the window.\n\n|cFFFFFF00-|r Added skins for report panel, the skin follow the skin selected for Player Detail Window.\n\n|cFFFFFF00v3.16.0c (|cFFFFCC00Jul 06, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Encounter Details graphic for Archimonde encounter.\n\n|cFFFFFF00-|r Numbers format on Player Detail Window now respect the format chosen on options panel.\n\n|cFFFFFF00-|r Removed pet icons on Player Detail Window.\n\n|cFFFFFF00-|r Fixed some wrong textures on spec icons.\n\n|cFFFFFF00-|r Improvements on all skins for the Player Detail Window.\n\n|cFFFFFF00v3.15.8b (|cFFFFCC00Jul 01, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Soul Capacitor trinket fix.\n\n|cFFFFFF00-|r Fixed several small bugs from 6.2 patch.\n\n|cFFFFFF00-|r Disabled the special behavior for Tyrant Velhari encounter.\n\n|cFFFFFF00v3.15.7 (|cFFFFCC00Jun 23, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added support for Hellfire Citadel raid.\n\n|cFFFFFF00-|r Added support for custom CLEU parser functions.\n\n|cFFFFFF00-|r Tyrant Velhari encounter now has a custom CLEU parser function for healing where the heal absorbed by Aura of Contempt will count towards overheal and not healing done.\n\n|cFFFFFF00-|r Added support for embed on Chat Tabs.\n\n|cFFFFFF00-|r |cFFAAFFAAPS: We've made an addon for Shadow-Lord Iskar encounter called 'Iskar Assist' check it out|r.\n\n|cFFFFFF00v3.15.5a (|cFFFFCC00Jun 12, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue where sometimes tooltips wasn't being shown.\n\n|cFFFFFF00-|r Fixed a problem with overall data where it was using, even on dungoens, the raid-only 30 delay rule.\n\n|cFFFFFF00-|r Fixed an issue with spec detection (now it may detect even faster).\n\n|cFFFFFF00v3.15.5 (|cFFFFCC00Jun 09, 2015|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed a problem with auto hide feature not hiding plugins hosted by the window.\n\n|cFFFFFF00-|r Fixed an issue with stretch feature when the anchor button was anchored at the bottom side of the window."
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r "
diff --git a/core/parser.lua b/core/parser.lua
index a024c75b..906608b3 100644
--- a/core/parser.lua
+++ b/core/parser.lua
@@ -145,8 +145,8 @@
end
-- /run local f=CreateFrame("frame");f:RegisterAllEvents();f:SetScript("OnEvent", function(self, ...)print (...);end)
--- /run
--- local f=CreateFrame("frame");f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");f:SetScript("OnEvent", function(self, ...) print (...) end)
+-- /run local f=CreateFrame("frame");f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");f:SetScript("OnEvent", function(self, ...) print (...) end)
+-- /run local f=CreateFrame("frame");f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");f:SetScript("OnEvent", function(self, ...) print (...) end)
-- /run local f=CreateFrame("frame");f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");f:SetScript("OnEvent", function(self, ...)print (...);end)
@@ -462,13 +462,13 @@
--> firendly fire
if (
- (
+ --(
(_bit_band (alvo_flags, REACTION_FRIENDLY) ~= 0 and _bit_band (who_flags, REACTION_FRIENDLY) ~= 0) or --ajdt d' brx
- (raid_members_cache [who_serial] and raid_members_cache [alvo_serial]) --amrl
- )
- and
+ (raid_members_cache [alvo_serial] and raid_members_cache [who_serial] and alvo_serial:find ("Player") and who_serial:find ("Player")) --amrl
+ --)
+ --and
--spellid ~= 124255 --stagger
- spellid ~= 999997 --stagger
+ --spellid ~= 999997 --stagger
) then
--> ignore soul link (damage from the warlock on his pet)
diff --git a/core/util.lua b/core/util.lua
index 4ca8a761..b82656ae 100644
--- a/core/util.lua
+++ b/core/util.lua
@@ -151,6 +151,10 @@
return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right
end
+ function _detalhes:GetCurrentToKFunction()
+ return _detalhes.ToKFunctions [_detalhes.ps_abbreviation]
+ end
+
_detalhes.ToKFunctions = {_detalhes.NoToK, _detalhes.ToK, _detalhes.ToK2, _detalhes.ToK0, _detalhes.ToKMin, _detalhes.ToK2Min, _detalhes.ToK0Min, _detalhes.comma_value}
_detalhes.string = {}
diff --git a/functions/profiles.lua b/functions/profiles.lua
index 4f8d9a65..1479b622 100644
--- a/functions/profiles.lua
+++ b/functions/profiles.lua
@@ -934,7 +934,7 @@ local default_profile = {
--> death log
deadlog_limit = 16,
- deadlog_events = 16,
+ deadlog_events = 32,
--> report
report_lines = 5,
diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua
index f66596f7..8ae0e35c 100644
--- a/gumps/janela_principal.lua
+++ b/gumps/janela_principal.lua
@@ -7996,6 +7996,52 @@ local modo_selecao_on_leave = function (self)
end
end
+local title_bar_icons = {
+ {texture = [[Interface\AddOns\Details\images\toolbar_icons]], texcoord = {0/256, 32/256, 0, 1}},
+ {texture = [[Interface\AddOns\Details\images\toolbar_icons]], texcoord = {32/256, 64/256, 0, 1}},
+ {texture = [[Interface\AddOns\Details\images\toolbar_icons]], texcoord = {66/256, 93/256, 0, 1}},
+ {texture = [[Interface\AddOns\Details\images\toolbar_icons]], texcoord = {96/256, 128/256, 0, 1}},
+ {texture = [[Interface\AddOns\Details\images\toolbar_icons]], texcoord = {128/256, 160/256, 0, 1}},
+}
+function _detalhes:GetTitleBarIconsTexture (button)
+ return title_bar_icons [button] or title_bar_icons
+end
+
+function _detalhes:CreateFakeWindow()
+ local t = CreateFrame ("frame")
+ t:SetSize (200, 91)
+ t:SetBackdrop ({bgFile = "Interface\\AddOns\\Details\\images\\background", tile = true, tileSize = 16 })
+ t:SetBackdropColor (0.0941, 0.0941, 0.0941, 0.3)
+ local tb = CreateFrame ("frame", nil, t)
+ tb:SetPoint ("bottomleft", t, "topleft", 0, 0)
+ tb:SetPoint ("bottomright", t, "topright", 0, 0)
+ tb:SetHeight (16)
+ tb:SetBackdrop ({bgFile = "Interface\\AddOns\\Details\\images\\background", tile = true, tileSize = 16 })
+ tb:SetBackdropColor (0.7, 0.7, 0.7, 0.4)
+ local tt = tb:CreateFontString (nil, "overlay", "GameFontNormal")
+ _detalhes:SetFontColor (tt, "white")
+ _detalhes:SetFontSize (tt, 10)
+ _detalhes:SetFontFace (tt, LibStub:GetLibrary("LibSharedMedia-3.0"):Fetch ("font", "Accidental Presidency"))
+ tt:SetPoint ("bottomleft", tb, 3, 4)
+ tt:SetText ("Damage Done")
+
+ t.TitleIcons = {}
+ for i = 1, 5 do
+ local b = tb:CreateTexture (nil, "overlay")
+ b:SetSize (12, 12)
+ b:SetPoint ("bottomright", tb, "bottomright", -((abs(i-6)-1)*11) - 1, 2)
+ local button_texture_texcoord = _detalhes:GetTitleBarIconsTexture (i)
+ b:SetTexture (button_texture_texcoord.texture)
+ b:SetTexCoord (unpack (button_texture_texcoord.texcoord))
+ tinsert (t.TitleIcons, b)
+ end
+
+ t.TitleBar = tb
+ t.TitleText = tt
+
+ return t
+end
+
function gump:CriaCabecalho (baseframe, instancia)
baseframe.cabecalho = {}
diff --git a/gumps/switch.lua b/gumps/switch.lua
index 309b754e..5f3d4e65 100644
--- a/gumps/switch.lua
+++ b/gumps/switch.lua
@@ -176,6 +176,39 @@ do
DetailsSwitchPanel.all_switch = all_switch
function _detalhes:ShowAllSwitch()
+
+ --_detalhes:SetTutorialCVar ("SWITCH_PANEL_FIRST_OPENED", false)
+ if (not _detalhes:GetTutorialCVar ("SWITCH_PANEL_FIRST_OPENED")) then
+ _detalhes:SetTutorialCVar ("SWITCH_PANEL_FIRST_OPENED", true)
+ local fake_window = _detalhes:CreateFakeWindow()
+ fake_window:SetPoint ("bottomleft", all_switch, "topleft", 0, 10)
+
+ local all_switch_titlebar_help = CreateFrame ("frame", "DetailsSwitchAllPopUp1", fake_window, "DetailsHelpBoxTemplate")
+ all_switch_titlebar_help.ArrowUP:Show()
+ all_switch_titlebar_help.ArrowGlowUP:Show()
+ all_switch_titlebar_help.Text:SetText ("Right click on Title Bar to open all displays menu.")
+ all_switch_titlebar_help:SetPoint ("bottom", fake_window.TitleBar, "top", 0, 30)
+ all_switch_titlebar_help:Show()
+
+ local all_switch_titlebar2_help = CreateFrame ("frame", "DetailsSwitchAllPopUp1", fake_window, "DetailsHelpBoxTemplate")
+ all_switch_titlebar2_help.ArrowLEFT:Show()
+ all_switch_titlebar2_help.ArrowGlowLEFT:Show()
+ all_switch_titlebar2_help.Text:SetText ("Right clicking anywhere else opens your Bookmarks.")
+ all_switch_titlebar2_help:SetPoint ("right", fake_window, "left", -30, 0)
+ all_switch_titlebar2_help:Show()
+
+ local close = CreateFrame ("button", nil, fake_window)
+ close:SetPoint ("bottomright", fake_window, "bottomright", -10, 10)
+ close:SetScript ("OnClick", function() fake_window:Hide(); all_switch_titlebar2_help:Hide(); all_switch_titlebar_help:Hide() end)
+ close:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = "Interface\\AddOns\\Details\\images\\background", tile = true, tileSize = 16 })
+ close:SetBackdropColor (0.7, 0.7, 0.7, 0.4)
+ close:SetSize (100, 20)
+ local t = close:CreateFontString (nil, "overlay", "GameFontNormal")
+ t:SetPoint ("center", 0, 0)
+ t:SetText ("CLOSE")
+
+ end
+
if (all_switch:IsShown()) then
return all_switch:Hide()
end