This commit is contained in:
tercio
2014-03-10 20:34:28 -03:00
parent af768dac51
commit f789cb9500
24 changed files with 1797 additions and 105 deletions
+4 -3
View File
@@ -8,9 +8,9 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
_detalhes.userversion = "v1.10.0"
_detalhes.version = "Alpha 013"
_detalhes.realversion = 14
_detalhes.userversion = "v1.11.0"
_detalhes.version = "Alpha 015"
_detalhes.realversion = 15
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> initialization stuff
@@ -200,6 +200,7 @@ do
local SharedMedia = LibStub:GetLibrary ("LibSharedMedia-3.0")
SharedMedia:Register ("statusbar", "Details D'ictum", [[Interface\AddOns\Details\images\bar4]])
SharedMedia:Register ("statusbar", "Details D'ictum (reverse)", [[Interface\AddOns\Details\images\bar4_reverse]])
SharedMedia:Register ("statusbar", "Details Serenity", [[Interface\AddOns\Details\images\bar_serenity]])
--> global 'vardump' for dump table contents over chat panel
function vardump (t)
+19 -6
View File
@@ -1036,11 +1036,24 @@ function atributo_damage:AtualizaBarra (instancia, barras_container, qual_barra,
esta_porcentagem = _math_floor ((self.custom/instancia.top) * 100) --> determina qual o tamanho da barra
else
if (sub_atributo == 1) then --> mostrando damage done
esta_barra.texto_direita:SetText (_detalhes:ToK (damage_total) .." ".. div_abre .. _math_floor (dps) .. ", ".. _cstr ("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
dps = _math_floor (dps)
if (_detalhes.ps_abbreviation == 2) then
dps = _detalhes:ToK (dps)
elseif (_detalhes.ps_abbreviation == 3) then
dps = _detalhes:ToK2 (dps)
end
esta_barra.texto_direita:SetText (_detalhes:ToK (damage_total) .." ".. div_abre .. dps .. ", ".. _cstr ("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
esta_porcentagem = _math_floor ((damage_total/instancia.top) * 100) --> determina qual o tamanho da barra
elseif (sub_atributo == 2) then --> mostrando dps
esta_barra.texto_direita:SetText (_cstr("%.1f", dps) .." ".. div_abre .. _detalhes:ToK (damage_total) .. ", ".._cstr("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
dps = _math_floor (dps)
if (_detalhes.ps_abbreviation == 2) then
esta_barra.texto_direita:SetText (_detalhes:ToK (dps) .. " " .. div_abre .. _detalhes:ToK (damage_total) .. ", " .. _cstr ("%.1f", porcentagem) .. "%" .. div_fecha) --seta o texto da direita
elseif (_detalhes.ps_abbreviation == 3) then
esta_barra.texto_direita:SetText (_detalhes:ToK2 (dps) .. " " .. div_abre .. _detalhes:ToK (damage_total) .. ", " .. _cstr ("%.1f", porcentagem) .. "%" .. div_fecha) --seta o texto da direita
else
esta_barra.texto_direita:SetText (_cstr ("%.1f", dps) .. " " .. div_abre .. _detalhes:ToK (damage_total) .. ", " .. _cstr ("%.1f", porcentagem) .. "%" .. div_fecha) --seta o texto da direita
end
esta_porcentagem = _math_floor ((dps/instancia.top) * 100) --> determina qual o tamanho da barra
elseif (sub_atributo == 3) then --> mostrando damage taken
@@ -2011,7 +2024,7 @@ function atributo_damage:MontaInfoDamageDone()
end
barra.texto_esquerdo:SetText (index..instancia.divisores.colocacao..tabela[1]) --seta o texto da esqueda
barra.texto_direita:SetText (tabela[2] .." ".. instancia.divisores.abre .._cstr("%.1f", tabela[3]) .."%".. instancia.divisores.fecha) --seta o texto da direita
barra.texto_direita:SetText (_detalhes:comma_value (tabela[2]) .." ".. instancia.divisores.abre .. _cstr ("%.1f", tabela[3]) .."%".. instancia.divisores.fecha) --seta o texto da direita
--barra.icone:SetTexture (tabela[4]) --CLASSE
@@ -2144,7 +2157,7 @@ function atributo_damage:MontaDetalhesFriendlyFire (nome, barra)
end
barra.texto_esquerdo:SetText (index..instancia.divisores.colocacao..tabela[4]) --seta o texto da esqueda
barra.texto_direita:SetText (tabela[2] .." ".. instancia.divisores.abre .._cstr("%.1f", tabela[3]) .."%".. instancia.divisores.fecha) --seta o texto da direita
barra.texto_direita:SetText (_detalhes:comma_value (tabela[2]) .. " " .. instancia.divisores.abre .. _cstr ("%.1f", tabela[3]) .. "%" .. instancia.divisores.fecha) --seta o texto da direita
barra.icone:SetTexture (tabela[5])
@@ -2206,7 +2219,7 @@ function atributo_damage:MontaDetalhesEnemy (spellid, barra)
_detalhes:name_space_info (barra)
if (spell.total > 0) then
barra.texto_direita:SetText (tabela[2] .." (".. _cstr("%.1f", tabela[2] / spell.total * 100) .."%)") --seta o texto da direita
barra.texto_direita:SetText (_detalhes:comma_value (tabela[2]) .." (".. _cstr("%.1f", tabela[2] / spell.total * 100) .."%)") --seta o texto da direita
else
barra.texto_direita:SetText (tabela[2] .." (0%)") --seta o texto da direita
end
@@ -2295,7 +2308,7 @@ function atributo_damage:MontaDetalhesDamageTaken (nome, barra)
barra.texto_esquerdo:SetText (index..instancia.divisores.colocacao..tabela[4]) --seta o texto da esqueda
_detalhes:name_space_info (barra)
barra.texto_direita:SetText (tabela[2] .." ".. instancia.divisores.abre .._cstr("%.1f", tabela[3]) .."%".. instancia.divisores.fecha) --seta o texto da direita
barra.texto_direita:SetText (_detalhes:comma_value (tabela[2]) .." ".. instancia.divisores.abre .._cstr("%.1f", tabela[3]) .."%".. instancia.divisores.fecha) --seta o texto da direita
barra.icone:SetTexture (tabela[5])
+35 -6
View File
@@ -416,8 +416,20 @@ function atributo_heal:AtualizaBarra (instancia, barras_container, qual_barra, l
local esta_porcentagem
if ((_detalhes.time_type == 2 and self.grupo) or (not _detalhes:CaptureGet ("heal") and not _detalhes:CaptureGet ("aura")) or not self.shadow) then
hps = healing_total / combat_time
self.last_hps = hps
if (not self.shadow and combat_time == 0) then
local p = _detalhes.tabela_vigente (2, self.nome)
if (p) then
local t = p:Tempo()
hps = healing_total / t
self.last_hps = hps
else
hps = healing_total / combat_time
self.last_hps = hps
end
else
hps = healing_total / combat_time
self.last_hps = hps
end
else
if (not self.on_hold) then
hps = healing_total/self:Tempo() --calcula o dps deste objeto
@@ -438,11 +450,27 @@ function atributo_heal:AtualizaBarra (instancia, barras_container, qual_barra, l
esta_porcentagem = _math_floor ((self.custom/instancia.top) * 100) --> determina qual o tamanho da barra
else
if (sub_atributo == 1) then --> mostrando healing done
esta_barra.texto_direita:SetText (_detalhes:ToK (healing_total) .." ".. div_abre .. _math_floor (hps) .. ", ".. _cstr ("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
hps = _math_floor (hps)
if (_detalhes.ps_abbreviation == 2) then
hps = _detalhes:ToK (hps)
elseif (_detalhes.ps_abbreviation == 3) then
hps = _detalhes:ToK2 (hps)
end
esta_barra.texto_direita:SetText (_detalhes:ToK (healing_total) .." ".. div_abre .. hps .. ", ".. _cstr ("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
esta_porcentagem = _math_floor ((healing_total/instancia.top) * 100) --> determina qual o tamanho da barra
elseif (sub_atributo == 2) then --> mostrando hps
esta_barra.texto_direita:SetText (_cstr("%.1f", hps) .." ".. div_abre .. _detalhes:ToK (healing_total) .. ", ".._cstr("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
hps = _math_floor (hps)
if (_detalhes.ps_abbreviation == 2) then
esta_barra.texto_direita:SetText (_detalhes:ToK (hps) .." ".. div_abre .. _detalhes:ToK (healing_total) .. ", ".._cstr("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
elseif (_detalhes.ps_abbreviation == 2) then
esta_barra.texto_direita:SetText (_detalhes:ToK2 (hps) .." ".. div_abre .. _detalhes:ToK (healing_total) .. ", ".._cstr("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
else
esta_barra.texto_direita:SetText (_cstr("%.1f", hps) .." ".. div_abre .. _detalhes:ToK (healing_total) .. ", ".._cstr("%.1f", porcentagem).."%" .. div_fecha) --seta o texto da direita
end
esta_porcentagem = _math_floor ((hps/instancia.top) * 100) --> determina qual o tamanho da barra
elseif (sub_atributo == 3) then --> mostrando overall
@@ -1220,6 +1248,7 @@ function atributo_heal:MontaInfoHealingDone()
barra.minha_tabela = self
barra.show = tabela[1]
barra.spellid = self.nome
barra:Show()
if (self.detalhes and self.detalhes == barra.show) then
@@ -1265,7 +1294,7 @@ function atributo_heal:MontaInfoHealingDone()
barra.nome_inimigo = tabela [1]
-- no lugar do spell id colocar o que?
--barra.spellid = tabela[5]
barra.spellid = tabela[5]
barra:Show()
--if (self.detalhes and self.detalhes == barra.spellid) then
@@ -1398,7 +1427,7 @@ function atributo_heal:MontaDetalhesHealingTaken (nome, barra)
end
barra.texto_esquerdo:SetText (index..instancia.divisores.colocacao..tabela[4]) --seta o texto da esqueda
barra.texto_direita:SetText (tabela[2] .." ".. instancia.divisores.abre .._cstr("%.1f", tabela[3]) .."%".. instancia.divisores.fecha) --seta o texto da direita
barra.texto_direita:SetText (_detalhes:comma_value (tabela[2]) .." ".. instancia.divisores.abre .._cstr("%.1f", tabela[3]) .."%".. instancia.divisores.fecha) --seta o texto da direita
barra.icone:SetTexture (tabela[5])
+6 -1
View File
@@ -266,8 +266,13 @@ end
--gump:Fade (self.baseframe.cabecalho.atributo_icon, _unpack (_detalhes.windows_fade_out))
--gump:Fade (self.baseframe.cabecalho.ball, _unpack (_detalhes.windows_fade_out))
--gump:Fade (self.baseframe, _unpack (_detalhes.windows_fade_out))
if (self.hide_icon) then
gump:Fade (self.baseframe.cabecalho.atributo_icon, 1)
else
gump:Fade (self.baseframe.cabecalho.atributo_icon, 0)
end
--gump:Fade (self.baseframe.cabecalho.atributo_icon, 0)
gump:Fade (self.baseframe.cabecalho.ball, 0)
gump:Fade (self.baseframe, 0)
+7
View File
@@ -2740,6 +2740,13 @@
end
end
function _detalhes:IsInCache (playerguid)
return raid_members_cache [playerguid]
end
function _detalhes:GetParserPlayerCache()
return raid_members_cache
end
--serach key: ~cache
function _detalhes:UpdateParserGears()
+3 -1
View File
@@ -52,8 +52,10 @@
PluginObject.__icon = PluginIcon or [[Interface\ICONS\Trade_Engineering]]
PluginObject.real_name = PluginAbsoluteName
local saved_table
if (PluginType ~= "STATUSBAR") then
local saved_table = _detalhes.plugin_database [PluginAbsoluteName]
saved_table = _detalhes.plugin_database [PluginAbsoluteName]
if (not saved_table) then
saved_table = {enabled = true, author = Author or "--------"}
_detalhes.plugin_database [PluginAbsoluteName] = saved_table
+24 -8
View File
@@ -7,6 +7,7 @@
local _detalhes = _G._detalhes
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> local pointers
@@ -16,15 +17,15 @@
--> details api functions
--> create a button which will be displayed on tooltip
function _detalhes.ToolBar:NewPluginToolbarButton (func, icon, tooltip, w, h, name)
function _detalhes.ToolBar:NewPluginToolbarButton (func, icon, pluginname, tooltip, w, h, framename)
--> random name if nameless
if (not name) then
name = "DetailsToolbarButton" .. math.random (1, 100000)
if (not framename) then
framename = "DetailsToolbarButton" .. math.random (1, 100000)
end
--> create button from template
local button = CreateFrame ("button", name, _detalhes.listener, "DetailsToolbarButton")
local button = CreateFrame ("button", framename, _detalhes.listener, "DetailsToolbarButton")
--> sizes
if (w) then
@@ -43,9 +44,11 @@
button:SetPushedTexture (icon)
button:SetDisabledTexture (icon)
button:SetHighlightTexture (icon, "ADD")
button.__icon = icon
button.__name = pluginname
--> blizzard built-in animation
local FourCornerAnimeFrame = CreateFrame ("frame", name.."Blink", button, "IconIntroAnimTemplate")
local FourCornerAnimeFrame = CreateFrame ("frame", framename.."Blink", button, "IconIntroAnimTemplate")
FourCornerAnimeFrame:SetPoint ("center", button)
FourCornerAnimeFrame:SetWidth (w or 14)
FourCornerAnimeFrame:SetHeight (w or 14)
@@ -104,6 +107,8 @@
end
end
_detalhes.ToolBar:ReorganizeIcons (lastIcon)
return true
end
@@ -136,8 +141,19 @@
end
if (button.tooltip) then
GameCooltip:Reset()
GameCooltip:AddLine (button.tooltip)
--GameCooltip:SetOption ("FixedWidth", 200)
GameCooltip:SetOption ("ButtonsYMod", -5)
GameCooltip:SetOption ("YSpacingMod", -5)
GameCooltip:SetOption ("IgnoreButtonAutoHeight", true)
GameCooltip:SetColor (1, 0.5, 0.5, 0.5, 0.5)
--[[title]] GameCooltip:AddLine (button.__name, nil, 1, "orange", nil, 12, SharedMedia:Fetch ("font", "Friz Quadrata TT"))
GameCooltip:AddIcon (button.__icon, 1, 1, 16, 16)
----[[desc]] GameCooltip:AddLine (button.tooltip)
GameCooltip:ShowCooltip (button, "tooltip")
end
end
@@ -206,9 +222,9 @@
ThisButton:Show()
LastIcon = ThisButton
end
elseif (instance.plugins_grow_direction == 1) then --> left direction
if (instance.consolidate) then
LastIcon = instance.consolidateButtonTexture
else
+10
View File
@@ -55,6 +55,16 @@
end
return _string_format ("%.1f", numero)
end
function _detalhes:ToK2 (numero)
if (numero > 999999) then
return _string_format ("%.2f", numero/1000000) .. "M"
elseif (numero > 99999) then
return _math_floor (numero/1000) .. "K"
elseif (numero > 999) then
return _string_format ("%.1f", (numero/1000)) .. "K"
end
return _string_format ("%.1f", numero)
end
--> short numbers no numbers after comma
function _detalhes:ToK0 (numero)
if (numero > 1000000) then
+9
View File
@@ -135,6 +135,14 @@ local ImageMetaFunctions = {}
_object:SetDesaturated (false)
end
end
--> texcoords
local smember_texcoord = function (_object, _value)
if (_value) then
_object:SetTexCoord (unpack (_value))
else
_object:SetTexCoord (0, 1, 0, 1)
end
end
local set_members_function_index = {
["show"] = smember_show,
@@ -143,6 +151,7 @@ local ImageMetaFunctions = {}
["width"] = smember_width,
["height"] = smember_height,
["texture"] = smember_texture,
["texcoord"] = smember_texcoord,
["color"] = smember_color,
["blackwhite"] = smember_desaturated,
}
+4
View File
@@ -50,6 +50,7 @@ end
_detalhes_database.window_clamp = _detalhes.window_clamp
--> text sizes
_detalhes_database.font_sizes = _detalhes.font_sizes
_detalhes_database.ps_abbreviation = _detalhes.ps_abbreviation
-- max segments
_detalhes_database.segments_amount = _detalhes.segments_amount
_detalhes_database.segments_amount_to_save = _detalhes.segments_amount_to_save
@@ -254,6 +255,7 @@ end --]]
_detalhes.clear_graphic = _detalhes_database.clear_graphic
--> text sizes
_detalhes.font_sizes = _detalhes_database.font_sizes
_detalhes.ps_abbreviation = _detalhes_database.ps_abbreviation
-- row animation
_detalhes.use_row_animations = _detalhes_database.use_row_animations
_detalhes.animate_scroll = _detalhes_database.animate_scroll
@@ -414,6 +416,8 @@ function _detalhes:ApplyConfigDataOnLoad()
self.font_sizes = self.font_sizes or {menus = 10}
self.minimap = self.minimap or {hide = false, radius = 160, minimapPos = 220}
self.ps_abbreviation = self.ps_abbreviation or 1
self.plugin_database = self.plugin_database or {}
--> tutorial
+1470 -28
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -1084,6 +1084,7 @@ local function SetBarraScripts (esta_barra, instancia, i)
--> talvez devesse escurecer a janela no fundo... pois o tooltip é transparente e pode confundir
GameTooltip:SetOwner (self, "ANCHOR_TOPRIGHT")
-- ~erro
if (self.spellid == "enemies") then --> damage taken enemies
if (not self.minha_tabela or not self.minha_tabela:MontaTooltipDamageTaken (self, i)) then -- > poderia ser aprimerado para uma tailcall
return
@@ -1091,6 +1092,7 @@ local function SetBarraScripts (esta_barra, instancia, i)
elseif (not self.minha_tabela or not self.minha_tabela:MontaTooltipAlvos (self, i)) then -- > poderia ser aprimerado para uma tailcall
return
end
GameTooltip:Show()
+36 -4
View File
@@ -91,7 +91,7 @@ function _detalhes:OpenOptionsWindow (instance)
local info_text = g:NewLabel (window, nil, nil, "infotext", "", "GameFontNormal", 12)
info_text:SetPoint ("topleft", window, "topleft", 470, -97)
info_text.width = 200
info_text.height = 240
info_text.height = 280
info_text.align = "<"
info_text.valign = "^"
info_text.active = false
@@ -179,7 +179,7 @@ function _detalhes:OpenOptionsWindow (instance)
-- ~altura
if (options_type == 1) then
window.options [1][1].slider:SetMinMaxValues (0, 110)
window.options [1][1].slider:SetMinMaxValues (0, 200)
elseif (options_type == 2) then
window.options [2][1].slider:SetMinMaxValues (0, 1300)
window.options [2][1].slider.scrollMax = 1300
@@ -511,6 +511,13 @@ function _detalhes:OpenOptionsWindow (instance)
frame1.fragsPvpSlider:SetHook ("OnLeave", background_on_leave)
--------------- Time Type
--hide on combat
g:NewSwitch (frame1, _, "$parentHideOnCombatSlider", "hideOnCombatSlider", 60, 20, _, _, window.instance.hide_in_combat)
--mini map
g:NewSwitch (frame1, _, "$parentMinimapSlider", "minimapSlider", 60, 20, _, _, not _detalhes.minimap.hide)
--time type
g:NewLabel (frame1, _, "$parentTimeTypeLabel", "timetypeLabel", Loc ["STRING_OPTIONS_TIMEMEASURE"])
frame1.timetypeLabel:SetPoint (10, -290)
--
@@ -539,7 +546,6 @@ function _detalhes:OpenOptionsWindow (instance)
g:NewLabel (frame1, _, "$parentMinimapLabel", "minimapLabel", Loc ["STRING_OPTIONS_MINIMAP"])
frame1.minimapLabel:SetPoint (10, -310)
--
g:NewSwitch (frame1, _, "$parentMinimapSlider", "minimapSlider", 60, 20, _, _, not _detalhes.minimap.hide)
frame1.minimapSlider:SetPoint ("left", frame1.minimapLabel, "right", 2, 0)
frame1.minimapSlider.OnSwitch = function (self, _, value)
_detalhes.minimap.hide = not value
@@ -565,7 +571,6 @@ function _detalhes:OpenOptionsWindow (instance)
g:NewLabel (frame1, _, "$parentHideOnCombatAlphaLabel", "hideOnCombatAlphaLabel", Loc ["STRING_OPTIONS_HIDECOMBATALPHA"])
frame1.hideOnCombatAlphaLabel:SetPoint (10, -370)
g:NewSwitch (frame1, _, "$parentHideOnCombatSlider", "hideOnCombatSlider", 60, 20, _, _, window.instance.hide_in_combat)
frame1.hideOnCombatSlider:SetPoint ("left", frame1.hideOnCombatLabel, "right", 2, 0)
frame1.hideOnCombatSlider.OnSwitch = function (self, instance, value)
instance.hide_in_combat = value
@@ -588,6 +593,33 @@ function _detalhes:OpenOptionsWindow (instance)
frame1.hideOnCombatAlphaSlider:SetHook ("OnEnter", background_on_enter)
frame1.hideOnCombatAlphaSlider:SetHook ("OnLeave", background_on_leave)
--------------- abbreviation type
g:NewLabel (frame1, _, "$parentDpsAbbreviateLabel", "dpsAbbreviateLabel", Loc ["STRING_OPTIONS_PS_ABBREVIATE"])
frame1.dpsAbbreviateLabel:SetPoint (10, -410)
--
local onSelectTimeAbbreviation = function (_, _, abbreviationtype)
_detalhes.ps_abbreviation = abbreviationtype
_detalhes:AtualizaGumpPrincipal (-1, true)
end
local abbreviationOptions = {
{value = 1, label = Loc ["STRING_OPTIONS_PS_ABBREVIATE_NONE"], onclick = onSelectTimeAbbreviation, icon = "Interface\\Icons\\Achievement_Guild_Challenge_1"}, --, desc = ""
{value = 2, label = Loc ["STRING_OPTIONS_PS_ABBREVIATE_TOK"], onclick = onSelectTimeAbbreviation, icon = "Interface\\Icons\\Achievement_Guild_Challenge_100"}, --, desc = ""
{value = 3, label = Loc ["STRING_OPTIONS_PS_ABBREVIATE_TOK2"], onclick = onSelectTimeAbbreviation, icon = "Interface\\Icons\\Achievement_Guild_Challenge_10"} --, desc = ""
}
local buildAbbreviationMenu = function()
return abbreviationOptions
end
g:NewDropDown (frame1, _, "$parentAbbreviateDropdown", "dpsAbbreviateDropdown", 160, 20, buildAbbreviationMenu, _detalhes.ps_abbreviation) -- func, default
frame1.dpsAbbreviateDropdown:SetPoint ("left", frame1.dpsAbbreviateLabel, "right", 2, 0)
frame1.dpsAbbreviateDropdown:SetFrameStrata ("DIALOG")
frame1.dpsAbbreviateDropdown.info = Loc ["STRING_OPTIONS_PS_ABBREVIATE_DESC"]
window:create_line_background (frame1, frame1.dpsAbbreviateLabel, frame1.dpsAbbreviateDropdown)
frame1.dpsAbbreviateDropdown:SetHook ("OnEnter", background_on_enter)
frame1.dpsAbbreviateDropdown:SetHook ("OnLeave", background_on_leave)
---------------- appearance
local frame2 = window.options [2][1].gump
+2 -2
View File
@@ -4015,7 +4015,7 @@ function _detalhes:HideMainIcon (value)
if (value) then
self.hide_icon = true
self.baseframe.cabecalho.atributo_icon:Hide()
gump:Fade (self.baseframe.cabecalho.atributo_icon, 1)
self.baseframe.cabecalho.ball:SetParent (self.baseframe)
if (self.toolbar_side == 1) then
@@ -4032,7 +4032,7 @@ function _detalhes:HideMainIcon (value)
else
self.hide_icon = false
self.baseframe.cabecalho.atributo_icon:Show()
gump:Fade (self.baseframe.cabecalho.atributo_icon, 0)
self.baseframe.cabecalho.ball:SetParent (_detalhes.listener)
if (self.toolbar_side == 1) then
+2 -2
View File
@@ -132,8 +132,8 @@ function _detalhes:OpenWelcomeWindow ()
Loc ["STRING_WELCOME_3"] = "Choose your DPS and HPS prefered method:"
Loc ["STRING_WELCOME_4"] = "Activity Time"..": "
Loc ["STRING_WELCOME_5"] = "Effective Time"..": "
Loc ["STRING_WELCOME_6"] = "the timer of each raid member is put on hold if his activity is ceased and back again to count when is resumed, common way of mensure Dps and Hps."
Loc ["STRING_WELCOME_7"] = "used for rankings, this method uses the elapsed combat time for mensure the Dps and Hps of all raid members."
Loc ["STRING_WELCOME_6"] = "the timer of each raid member is put on hold if his activity is ceased and back again to count when is resumed, common way of measure Dps and Hps."
Loc ["STRING_WELCOME_7"] = "used for rankings, this method uses the elapsed combat time for measure the Dps and Hps of all raid members."
Loc ["STRING_WELCOME_8"] = "if you change your mind, you can always modify again through options panel"
Loc ["STRING_WELCOME_9"] = "Details! reads and calculate combat numbers in a very fast way, but if some kind of data is irrelevant for you, you can disable/enable it 'on-the-fly'."
Loc ["STRING_WELCOME_10"] = "Mouse over each slider to see what they represent."
Binary file not shown.
+7 -5
View File
@@ -2,10 +2,7 @@ local Loc = LibStub("AceLocale-3.0"):NewLocale("Details", "enUS", true)
if not Loc then return end
--------------------------------------------------------------------------------------------------------------------------------------------
-- \n\n|cFFFFFF00-|r
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Fixed a issue with overall data Dps when have only one segment.\n\n|cFFFFFF00-|r Changed colors and added some backgrounds for menus.\n\n|cFFFFFF00-|r Options panel has his height size increased.\n\n|cFFFFFF00-|r Added options for hide the window or change the transparency when in combat.\n\n|cFFFFFF00-|r Added a control panel for plugins, where you can enable or disable then.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|r More fixes on Skins support and new tools for plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Minor bug fixes and improvements on Welcome Screen.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r The bar now starts after the icon instead of left window border.\n\n|cFFFFFF00-|r Welcome window now is localizated to others languages\n\n|cFFFFFF00-|r Fixed issue with Damage Rank Plugin.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r fixed issue with main window icon when no plugin installed. \n\n|cFFFFFF00-|r fixed issue with some options button text which where out of positioning.\n\n|cFFFFFF00-|r fixed sub menu overlap when near right screen edge.\n\n|cFFFFFF00-|r fixed close button position for default skin.\n\n|cFFFFFF00-|r fixed skin error when selecting solo or right plugins.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Fixed minimap icon stuck problem.\n\n|cFFFFFF00-|r Skin support has been rewrite and now is more flexibe.\n\n|cFFFFFF00-|r Added up to 20 new customization options over options panel.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Added slash command 'details reinstall' which cleans Details! config in case of erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Added new skin: Simple Gray.\n\n|cFFFFFF00-|r Added minimap and interface addon panel buttons.\n\n|cFFFFFF00-|r Added new tutorials bubbles for basic aspects of Details! window.\n\n|cFFFFFF00-|r Fixed a issue with Panic Mode where sometimes his isnt triggered.\n\n|cFFFFFF00v1.8.0|r\n\n|cFFFFFF00-|r Added a new plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r New options panel!\n\n|cFFFFFF00v1.7.0|r\n\n- Fixed some colors issues with enimies bars.\n\n|cFFFFFF00-|r Fixed some phrases which isn't still not translated to enUS.\n\n|cFFFFFF00-|r Major rewrite on CC-Breaks, now it's working properly.\n\n|cFFFFFF00-|r Added new sub attribute for damage: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Added support to skins, you can change over options panel.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Added sub attribute 'Enemies' which shows, of course, only enemies.\n\n|cFFFFFF00-|r Fixed issue with successful spell cast."
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.11.0|r\n\n|cFFFFFF00-|r Added an option for abbreviate Dps and Hps.\n\n|cFFFFFF00-|r Fixed issue where the window icon fade away when reopening the window.\n\n|cFFFFFF00-|r Improvements in class recognition.\n\n|cFFFFFF00-|r Added follow spells as defensive cooldowns:\nHealing Tide Totem, Spirit Link Totem, Demoralizing Banner, Mass Spell Reflection and Shield Block.\n\n|cFFFFFF00-|r More improvements done in Encounter Details plugin.\n\n|cFFFFFF00-|r Improvements made in the downloadable plugins: Timeline and Advanced Death Logs.\n\n|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Fixed a issue with overall data Dps when have only one segment.\n\n|cFFFFFF00-|r Changed colors and added some backgrounds for menus.\n\n|cFFFFFF00-|r Options panel has his height size increased.\n\n|cFFFFFF00-|r Added options for hide the window or change the transparency when in combat.\n\n|cFFFFFF00-|r Added a control panel for plugins, where you can enable or disable then.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|r More fixes on Skins support and new tools for plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Minor bug fixes and improvements on Welcome Screen.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r The bar now starts after the icon instead of left window border.\n\n|cFFFFFF00-|r Welcome window now is localizated to others languages\n\n|cFFFFFF00-|r Fixed issue with Damage Rank Plugin.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r fixed issue with main window icon when no plugin installed. \n\n|cFFFFFF00-|r fixed issue with some options button text which where out of positioning.\n\n|cFFFFFF00-|r fixed sub menu overlap when near right screen edge.\n\n|cFFFFFF00-|r fixed close button position for default skin.\n\n|cFFFFFF00-|r fixed skin error when selecting solo or right plugins.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Fixed minimap icon stuck problem.\n\n|cFFFFFF00-|r Skin support has been rewrite and now is more flexibe.\n\n|cFFFFFF00-|r Added up to 20 new customization options over options panel.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Added slash command 'details reinstall' which cleans Details! config in case of erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Added new skin: Simple Gray.\n\n|cFFFFFF00-|r Added minimap and interface addon panel buttons.\n\n|cFFFFFF00-|r Added new tutorials bubbles for basic aspects of Details! window.\n\n|cFFFFFF00-|r Fixed a issue with Panic Mode where sometimes his isnt triggered."
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails:|r " --> color and details name
@@ -421,11 +418,16 @@ if not Loc then return end
Loc ["STRING_OPTIONS_MINIMAP"] = "Minimap Icon"
Loc ["STRING_OPTIONS_MINIMAP_DESC"] = "Show or Hide minimap icon."
Loc ["STRING_OPTIONS_TIMEMEASURE"] = "Time Measure"
Loc ["STRING_OPTIONS_TIMEMEASURE_DESC"] = "|cFFFFFFFFActivity|r: the timer of each raid member is put on hold if his activity is ceased and back again to count when is resumed, common way of mensure Dps and Hps.\n\n|cFFFFFFFFEffective|r: used on rankings, this method uses the elapsed combat time for mensure the Dps and Hps of all raid members."
Loc ["STRING_OPTIONS_TIMEMEASURE_DESC"] = "|cFFFFFFFFActivity|r: the timer of each raid member is put on hold if his activity is ceased and back again to count when is resumed, common way of measure Dps and Hps.\n\n|cFFFFFFFFEffective|r: used on rankings, this method uses the elapsed combat time for measure the Dps and Hps of all raid members."
Loc ["STRING_OPTIONS_HIDECOMBAT"] = "Hide On Combat"
Loc ["STRING_OPTIONS_HIDECOMBAT_DESC"] = "If enabled, this instance window is hidden when you enter in combat."
Loc ["STRING_OPTIONS_HIDECOMBATALPHA"] = "Transparency"
Loc ["STRING_OPTIONS_HIDECOMBATALPHA_DESC"] = "The window can be completely hidden or just be more transparent."
Loc ["STRING_OPTIONS_PS_ABBREVIATE"] = "PS Abbreviation"
Loc ["STRING_OPTIONS_PS_ABBREVIATE_DESC"] = "Choose the abbreviation method for Dps and Hps.\n\n|cFFFFFFFFNone|r: no abbreviation, the raw number is shown.\n\n|cFFFFFFFFHundreds I|r: the number is reduced with a letter representing his value.\n\n59874 = 59.8K\n100.000 = 100.0K\n19.530.000 = 19.53M\n\n|cFFFFFFFFHundreds II|r: the number is reduced with a letter representing his value.\n\n59874 = 59.8K\n100.000 = 100K\n19.530.000 = 19.53M"
Loc ["STRING_OPTIONS_PS_ABBREVIATE_NONE"] = "None"
Loc ["STRING_OPTIONS_PS_ABBREVIATE_TOK"] = "Hundrets I"
Loc ["STRING_OPTIONS_PS_ABBREVIATE_TOK2"] = "Hundrets II"
Loc ["STRING_OPTIONS_PERFORMANCE1"] = "Performance Tweaks"
Loc ["STRING_OPTIONS_PERFORMANCE1_DESC"] = "This options can help save some cpu usage."
+6 -1
View File
@@ -3,7 +3,7 @@ if not Loc then return end
--------------------------------------------------------------------------------------------------------------------------------------------
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Corrigido um problema no Dps no segmento total quando existia apenas 1 segmento.\n\n|cFFFFFF00-|r Cores e imagem de fundo dos menus foram alterados.\n\n|cFFFFFF00-|r A altura do painel de opcoes foi aumentada.\n\n|cFFFFFF00-|r Adicionada opcao para esconder ou alterar a transparencia da janela quando estiver em combate.\n\n|cFFFFFF00-|r Adicionado um painel de controle de plugins para ativar ou desativa-los.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|rMais correcoes para as Skins e suporte a novos plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Pequenas correcoes e melhorias na tela de boas vindas.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r A barra agora comeca apos o icone e nao mais na borda esquerda da janela.\n\n|cFFFFFF00-|r Janela de boas vindas agora esta traduzida para outros idiomas.\n\n|cFFFFFF00-|r Corrigido o problema que estava afetando o plugin de Rank de Dano.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r corrigido problema do icone na janela principal quando nao havia nenhum plugin instalado. \n\n|cFFFFFF00-|r corrigido problema com alguns botoes no painel de opcoes onde o texto estava fora do lugar.\n\n|cFFFFFF00-|r corrigido a posicao dos sub menus quando proximos a borda direita do monitor.\n\n|cFFFFFF00-|r corrigida a posicao do botao de fechar do skin padrao.\n\n|cFFFFFF00-|r corrigido um erro nas skins ao selecionar um plugin de raide ou solo.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Corrigido o problema de nao movimentar o botao no minimapa.\n\n|cFFFFFF00-|r Suporte a skins foi reescrito e agora ficou mais flexivel.\n\n|cFFFFFF00-|r Adicionadas mais de 20 opcoes de customizacao no painel de opcoes.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Adicionado comando 'details reinstalar' no qual limpa a configuracao do Details! em caso de erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Adicionada nova skin: Simple Gray.\n\n|cFFFFFF00-|r Adicionado botoes para o Details! no minimapa e menu de addons no painel de intercace.\n\n|cFFFFFF00-|r Adicionados novas bolhas de tutoriais para aspectos basicos das janelas do Details!.\n\n|cFFFFFF00-|r Corrigido o Modo Panico aonde as vezes ele nao era disparado.\n\n|cFFFFFF00v1.8.0|r\n\n- Adicionado novo plugin: You Are Not Prepared.\n\n|cFFFFFF00-|r Novo painel de opcoes!\n\n|cFFFFFF00v1.7.0|r\n\n- Corrigido alguns problemas com as cores das barras de inimigos.\n\n|cFFFFFF00-|r CC Quebrado foi inteiramente reescrito e agora deve funcionar corretamente.\n\n|cFFFFFF00-|r Adicionado novo sub atributo ao dano: Voidzones & Debuffs.|cFFFFFF00v1.6.7|r\n\n- Adicionado suporte a skins, troque ela atraves do painel de opcoes.\n\n|cFFFFFF00v1.6.5|r\n\n|cFFFFFF00-|r Adicionado o sub atributo 'Inimigos' que mostra, eh claro, somente inimigos.\n\n|cFFFFFF00-|r Corrigido um problema na captura das magias conjuradas."
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v1.11.0|r\n\n|cFFFFFF00-|r Adicionado opcao para abreviar o Dps e o Hps.\n\n|cFFFFFF00-|r Corrigido um problema onde o icone da janela desaparecia ao reabri-la.\n\n|cFFFFFF00-|r Melhorias no reconhecimento das classes.\n\n|cFFFFFF00-|r As seguintes magias foram adicionadas como cooldowns: Healing Tide Totem, Spirit Link Totem, Demoralizing Banner, Mass Spell Reflection and Shield Block.\n\n|cFFFFFF00-|r Mais melhorias feitas no plugin Encounter Details.\n\n|cFFFFFF00-|r Melhorias feitas nos plugins disponiveis para download: Timeline e Advanced Death Logs.\n\n|cFFFFFF00v1.10.0|r\n\n|cFFFFFF00-|r Corrigido um problema no Dps no segmento total quando existia apenas 1 segmento.\n\n|cFFFFFF00-|r Cores e imagem de fundo dos menus foram alterados.\n\n|cFFFFFF00-|r A altura do painel de opcoes foi aumentada.\n\n|cFFFFFF00-|r Adicionada opcao para esconder ou alterar a transparencia da janela quando estiver em combate.\n\n|cFFFFFF00-|r Adicionado um painel de controle de plugins para ativar ou desativa-los.\n\n|cFFFFFF00v1.9.5|r\n\n|cFFFFFF00-|rMais correcoes para as Skins e suporte a novos plugins.|r\n\n|cFFFFFF00v1.9.4|r\n\n|cFFFFFF00-|r Pequenas correcoes e melhorias na tela de boas vindas.\n\n|cFFFFFF00v1.9.3|r\n\n|cFFFFFF00-|r A barra agora comeca apos o icone e nao mais na borda esquerda da janela.\n\n|cFFFFFF00-|r Janela de boas vindas agora esta traduzida para outros idiomas.\n\n|cFFFFFF00-|r Corrigido o problema que estava afetando o plugin de Rank de Dano.\n\n|cFFFFFF00v1.9.1|r\n\n|cFFFFFF00-|r corrigido problema do icone na janela principal quando nao havia nenhum plugin instalado. \n\n|cFFFFFF00-|r corrigido problema com alguns botoes no painel de opcoes onde o texto estava fora do lugar.\n\n|cFFFFFF00-|r corrigido a posicao dos sub menus quando proximos a borda direita do monitor.\n\n|cFFFFFF00-|r corrigida a posicao do botao de fechar do skin padrao.\n\n|cFFFFFF00-|r corrigido um erro nas skins ao selecionar um plugin de raide ou solo.|cFFFFFF00v1.9.0|r\n\n|cFFFFFF00-|r Corrigido o problema de nao movimentar o botao no minimapa.\n\n|cFFFFFF00-|r Suporte a skins foi reescrito e agora ficou mais flexivel.\n\n|cFFFFFF00-|r Adicionadas mais de 20 opcoes de customizacao no painel de opcoes.\n\n|cFFFFFF00v1.8.4|r\n\n|cFFFFFF00-|r Adicionado comando 'details reinstalar' no qual limpa a configuracao do Details! em caso de erros.\n\n|cFFFFFF00v1.8.3|r\n\n|cFFFFFF00-|r Adicionada nova skin: Simple Gray.\n\n|cFFFFFF00-|r Adicionado botoes para o Details! no minimapa e menu de addons no painel de intercace.\n\n|cFFFFFF00-|r Adicionados novas bolhas de tutoriais para aspectos basicos das janelas do Details!.\n\n|cFFFFFF00-|r Corrigido o Modo Panico aonde as vezes ele nao era disparado."
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetalhes:|r " --> color and details name
@@ -419,6 +419,11 @@ if not Loc then return end
Loc ["STRING_OPTIONS_HIDECOMBAT_DESC"] = "Se ativada, a janela desta instancia ficara oculta quando voce entrar em combate."
Loc ["STRING_OPTIONS_HIDECOMBATALPHA"] = "Transparencia"
Loc ["STRING_OPTIONS_HIDECOMBATALPHA_DESC"] = "A janela pode ser completamente escondida ou apenas ficar mais transparente."
Loc ["STRING_OPTIONS_PS_ABBREVIATE"] = "PS Abreviacao"
Loc ["STRING_OPTIONS_PS_ABBREVIATE_DESC"] = "Escolha o metodo de abreviacao para o Dps e Hps.\n\n|cFFFFFFFFNenhuma|r: sem abreviacao, o numero inteiro e mostrado.\n\n|cFFFFFFFFCem I|r: o numero e reduzido e uma letra indica o valor.\n\n59874 = 59.8K\n100.000 = 100.0K\n19.530.000 = 19.53M\n\n|cFFFFFFFFHundreds II|r: o numero e reduzido e uma letra indica o valor.\n\n59874 = 59.8K\n100.000 = 100K\n19.530.000 = 19.53M"
Loc ["STRING_OPTIONS_PS_ABBREVIATE_NONE"] = "Nenhuma"
Loc ["STRING_OPTIONS_PS_ABBREVIATE_TOK"] = "Cem I"
Loc ["STRING_OPTIONS_PS_ABBREVIATE_TOK2"] = "Cem II"
Loc ["STRING_OPTIONS_PERFORMANCE1"] = "Ajustes de Performance"
Loc ["STRING_OPTIONS_PERFORMANCE1_DESC"] = "Estas opcoes podem ajudar no desempenho deste addon."
@@ -187,7 +187,7 @@ local function CreatePluginFrames (data)
end
--> create the button to show on toolbar [1] function OnClick [2] texture [3] tooltip [4] width or 14 [5] height or 14 [6] frame name or nil
EncounterDetails.ToolbarButton = _detalhes.ToolBar:NewPluginToolbarButton (EncounterDetails.OpenWindow, "Interface\\Scenarios\\ScenarioIcon-Boss", Loc ["STRING_TOOLTIP"], 12, 12, "ENCOUNTERDETAILS_BUTTON") --"Interface\\COMMON\\help-i"
EncounterDetails.ToolbarButton = _detalhes.ToolBar:NewPluginToolbarButton (EncounterDetails.OpenWindow, "Interface\\Scenarios\\ScenarioIcon-Boss", Loc ["STRING_PLUGIN_NAME"], Loc ["STRING_TOOLTIP"], 12, 12, "ENCOUNTERDETAILS_BUTTON") --"Interface\\COMMON\\help-i"
--> setpoint anchors mod if needed
EncounterDetails.ToolbarButton.y = 0.5
EncounterDetails.ToolbarButton.x = 0
@@ -217,6 +217,7 @@ end
GameCooltip:SetType ("tooltipbar")
GameCooltip:SetOwner (row)
for index, event in _ipairs (lastEvents) do
--max hp percent (in case of hp cooldowns)
@@ -229,7 +230,6 @@ end
local nome_magia, _, icone_magia = _GetSpellInfo (event [2])
if (not event[3] and not battleress) then --> battle ress
GameCooltip:AddLine ("+".._cstr ("%.1f", event[4] - timeOfDeath) .."s "..nome_magia.." ("..event[6]..")", "-- -- -- ", 1, "white")
GameCooltip:AddIcon ("Interface\\Glues\\CharacterSelect\\Glues-AddOn-Icons", 1, 1, nil, nil, .75, 1, 0, 1)
GameCooltip:AddStatusBar (100, 1, "silver", false)
@@ -249,7 +249,7 @@ end
_school = _detalhes:trim (_school)
local texto_esquerdo
if (nome_magia) then
texto_esquerdo = "".._cstr ("%.1f", event[4] - timeOfDeath) .."s "..nome_magia.." (".. _school ..")"
texto_esquerdo = "".._cstr ("%.1f", event[4] - timeOfDeath) .."s " .. nome_magia .. " (".. event [6] ..")" --" (".. _school ..")"
texto_esquerdo = texto_esquerdo:gsub ("(%()%)", "")
else
texto_esquerdo = ""
@@ -297,7 +297,8 @@ end
GameCooltip:SetOption ("StatusBarHeightMod", -6)
GameCooltip:SetOption ("FixedWidth", 400)
GameCooltip:SetOption ("TextSize", 9.5)
GameCooltip:SetOption ("TextSize", 9)
GameCooltip:SetOption ("StatusBarTexture", "Interface\\AddOns\\Details\\images\\bar_serenity")
GameCooltip:ShowCooltip()
end
@@ -588,10 +589,16 @@ function EncounterDetails:SetRowScripts (barra, index, container)
end
--> Here start the data mine ---------------------------------------------------------------------------------------------------------
function EncounterDetails:OpenAndRefresh()
function EncounterDetails:OpenAndRefresh (_, segment)
--> small alias
local frame = EncounterDetailsFrame
local frame = EncounterDetailsFrame --alias
local _combat_object = _combat_object
if (segment) then
_combat_object = _detalhes.tabela_historico.tabelas [segment]
else
_G [frame:GetName().."SegmentsDropdown"].MyObject:Select (1, true)
end
--[
if (frame.ShowType == "main") then
@@ -666,11 +673,19 @@ function EncounterDetails:OpenAndRefresh()
local barra = container.barras [index]
if (not barra) then
barra = EncounterDetails:CreateRow (index, container)
_detalhes:SetFontSize (barra.texto_esquerdo, 9)
_detalhes:SetFontSize (barra.texto_direita, 9)
_detalhes:SetFontFace (barra.texto_esquerdo, "Arial Narrow")
barra.TTT = "damage_taken" -- tool tip type --> damage taken
barra.report_text = Loc ["STRING_PLUGIN_NAME"].."! "..Loc ["STRING_DAMAGE_TAKEN_REPORT"]
end
barra.texto_esquerdo:SetText (jogador.nome)
if (jogador.nome:find ("-")) then
barra.texto_esquerdo:SetText (jogador.nome:gsub (("-.*"), ""))
else
barra.texto_esquerdo:SetText (jogador.nome)
end
barra.texto_direita:SetText (_detalhes:comma_value (jogador.damage_taken))
_detalhes:name_space (barra)
@@ -792,6 +807,10 @@ function EncounterDetails:OpenAndRefresh()
barra = EncounterDetails:CreateRow (index, container)
barra.TTT = "habilidades_inimigas" -- tool tip type --enemy abilities
barra.report_text = Loc ["STRING_PLUGIN_NAME"].."! " .. Loc ["STRING_ABILITY_DAMAGE"]
_detalhes:SetFontSize (barra.texto_esquerdo, 9)
_detalhes:SetFontSize (barra.texto_direita, 9)
_detalhes:SetFontFace (barra.texto_esquerdo, "Arial Narrow")
barra.t:SetVertexColor (1, .8, .8, .8)
end
local nome_magia, _, icone_magia = _GetSpellInfo (habilidade[4])
@@ -804,7 +823,7 @@ function EncounterDetails:OpenAndRefresh()
barra.jogador = habilidade --> barra.jogador agora tem a tabela com --> [1] total dano causado [2] jogadores que foram alvos [3] jogadores que castaram essa magia [4] ID da magia
--barra.textura:SetStatusBarColor (_unpack (_detalhes.class_colors [jogador.classe]))
barra.textura:SetStatusBarColor (1, 1, 1, 1) --> a cor pode ser a spell school da magia
--barra.textura:SetStatusBarColor (1, 1, 1, 1) --> a cor pode ser a spell school da magia
if (index == 1) then
barra.textura:SetValue (100)
@@ -1278,12 +1297,20 @@ function EncounterDetails:OpenAndRefresh()
--> {esta_morte, time, este_jogador.nome, este_jogador.classe, _UnitHealthMax (alvo_name), minutos.."m "..segundos.."s", ["dead"] = true}
local barra = container.barras [index]
if (not barra) then
barra = EncounterDetails:CreateRow (index, container, 3, 3, -4)
barra = EncounterDetails:CreateRow (index, container, 3, 0, -4)
barra.TTT = "morte" -- tool tip type
barra.report_text = "Details! " .. Loc ["STRING_DEAD_LOG"]
_detalhes:SetFontSize (barra.texto_esquerdo, 9)
_detalhes:SetFontSize (barra.texto_direita, 9)
_detalhes:SetFontFace (barra.texto_esquerdo, "Arial Narrow")
end
barra.texto_esquerdo:SetText (index..". "..tabela [3])
if (tabela [3]:find ("-")) then
barra.texto_esquerdo:SetText (index..". "..tabela [3]:gsub (("-.*"), ""))
else
barra.texto_esquerdo:SetText (index..". "..tabela [3])
end
barra.texto_direita:SetText (tabela [6])
_detalhes:name_space (barra)
+4 -4
View File
@@ -35,10 +35,10 @@ Loc ["STRING_TOOLTIP"] = "Show Encounter Details Window"
Loc ["STRING_LAST_COOLDOWN"] = "last cooldown used"
Loc ["STRING_NOLAST_COOLDOWN"] = "no cooldown used"
Loc ["STRING_ADDS_HELP"] = "Mouse over |cFF00FF00Arrow Up|r for dmg received, |cFFFF0000Arrow Down|r for dmg dealt.\n|cFFFFFF00Click Arrow|r: Report the data shown on tooltip."
Loc ["STRING_INTERRIPT_HELP"] = "\n\n|cFFFFFF00Click|r on a bar: open report window."
Loc ["STRING_DISPELL_HELP"] = "\n\n|cFFFFFF00Click|r on a bar: open report window."
Loc ["STRING_DEATHS_HELP"] = "\n\n|cFFFFFF00Click|r on a bar: open report window."
Loc ["STRING_ADDS_HELP"] = "Mouse over |cFF00FF00Arrow Up|r\nfor dmg received, |cFFFF0000Arrow\n|cFFFF0000Down|r for dmg dealt. |cFFFFFF00Click\n|cFFFFFF00Arrow|r: Report the data\nshown on tooltip."
Loc ["STRING_INTERRIPT_HELP"] = " |cFFFFFF00Click|r on a bar:\nopen report window.\nIn the right we have the\namount interrupted against\nthe total times casted."
Loc ["STRING_DISPELL_HELP"] = " \n|cFFFFFF00Click|r on a bar:\nopen report window."
Loc ["STRING_DEATHS_HELP"] = " \n|cFFFFFF00Click|r on a bar:\nopen report window."
--> mechanic types
Loc ["STRING_HEAL"] = "heal"
+40 -8
View File
@@ -13,15 +13,18 @@ do
function EncounterDetails:CreateRowTexture (row)
row.textura = CreateFrame ("StatusBar", nil, row)
row.textura:SetAllPoints (row)
row.textura:SetStatusBarTexture ("Interface\\AddOns\\Details\\images\\bar4")
local t = row.textura:CreateTexture (nil, "overlay")
t:SetTexture ("Interface\\AddOns\\Details\\images\\bar_serenity")
row.t = t
row.textura:SetStatusBarTexture (t)
row.textura:SetStatusBarColor(.5, .5, .5, 0)
row.textura:SetMinMaxValues(0,100)
row.texto_esquerdo = row.textura:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall")
row.texto_esquerdo:SetPoint ("LEFT", row.textura, "LEFT", 22, 0)
row.texto_esquerdo:SetPoint ("LEFT", row.textura, "LEFT", 22, -1)
row.texto_esquerdo:SetJustifyH ("LEFT")
row.texto_esquerdo:SetTextColor (1,1,1,1)
row.texto_direita = row.textura:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall")
row.texto_direita:SetPoint ("RIGHT", row.textura, "RIGHT", -2, 0)
row.texto_direita:SetJustifyH ("RIGHT")
@@ -533,10 +536,10 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156:
BossFrame["timeamt0"]:Hide()
end
BossFrame.StatusBar_damageicon:Show()
BossFrame.StatusBar_healicon:Show()
BossFrame.StatusBar_totaldamage:Show()
BossFrame.StatusBar_totalheal:Show()
--BossFrame.StatusBar_damageicon:Show()
--BossFrame.StatusBar_healicon:Show()
--BossFrame.StatusBar_totaldamage:Show()
--BossFrame.StatusBar_totalheal:Show()
BossFrame.ShowType = "main"
@@ -652,7 +655,7 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156:
frame.raid_name:SetPoint ("CENTER", frame.boss_name, "CENTER", 0, 14)
--> Barra de Status:
frame.StatusBar_damageicon = frame:CreateTexture (nil, "overlay")
frame.StatusBar_damageicon:SetPoint ("bottomleft", frame, "bottomleft", 20, 21)
frame.StatusBar_damageicon:SetTexture ("Interface\\AddOns\\Details_EncounterDetails\\images\\boss_icones")
@@ -672,6 +675,35 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156:
DetailsFrameWork:NewLabel (frame, frame, nil, "StatusBar_totalheal", Loc ["STRING_TOTAL_HEAL"], "GameFontHighlightSmall")
frame.StatusBar_totalheal:SetPoint ("left", frame.StatusBar_healicon, "right", 2, 0)
frame.StatusBar_damageicon:Hide()
frame.StatusBar_totaldamage:Hide()
frame.StatusBar_healicon:Hide()
frame.StatusBar_totalheal:Hide()
--> Selecionar o segmento
local buildSegmentosMenu = function (self)
local historico = _detalhes.tabela_historico.tabelas
local return_table = {}
for index, combate in ipairs (historico) do
if (combate.is_boss) then
local l, r, t, b, icon = _detalhes:GetBossIcon (combate.is_boss.mapid, combate.is_boss.index)
return_table [#return_table+1] = {value = index, label = "#" .. index .. " " .. combate.is_boss.name, icon = icon, texcoord = {l, r, t, b}, onclick = EncounterDetails.OpenAndRefresh}
end
end
return return_table
end
local segmentos_string = DetailsFrameWork:NewLabel (frame, nil, nil, "segmentosString", "Segment:", "GameFontNormal", 12)
segmentos_string:SetPoint ("bottomleft", frame, "bottomleft", 20, 17)
_detalhes:SetFontColor (segmentos_string, "white")
_detalhes:SetFontSize (segmentos_string, 10)
local segmentos = DetailsFrameWork:NewDropDown (frame, _, "$parentSegmentsDropdown", "segmentosDropdown", 160, 18, buildSegmentosMenu, nil)
segmentos:SetPoint ("left", segmentos_string, "right", 2, 0)
--> Caixa do Dano total tomado pela Raid
+1 -1
View File
@@ -34,7 +34,7 @@ Loc ["STRING_TOOLTIP"] = "Mostrar os detalhes do combate"
Loc ["STRING_LAST_COOLDOWN"] = "ultimo cooldown usado"
Loc ["STRING_NOLAST_COOLDOWN"] = "nenhum cooldown usado"
Loc ["STRING_ADDS_HELP"] = "Passe o mouse |cFF00FF00Flecha|r dano recebido, |cFFFF0000Flecha|r dano feito.\n|cFFFFFF00Clique|r: Reporta os dados no tooltip."
Loc ["STRING_ADDS_HELP"] = "Passe o mouse |cFF00FF00Flecha|r\ndano recebido, |cFFFF0000Flecha|r\ndano feito.|cFFFFFF00Clique|r: Reporta\nos dados no tooltip."
Loc ["STRING_INTERRIPT_HELP"] = "\n\n|cFFFFFF00Clique|r na barra: abre a janela de enviar relatorio."
Loc ["STRING_DISPELL_HELP"] = "\n\n|cFFFFFF00Clique|r na barra: abre a janela de enviar relatorio."
Loc ["STRING_DEATHS_HELP"] = "\n\n|cFFFFFF00Clique|r na barra: abre a janela de enviar relatorio."
@@ -93,7 +93,7 @@
ErrorReport.Frame:SetPoint ("center", UIParent, "center")
ErrorReport.Frame:Show()
end
ErrorReport.ToolbarButton = _detalhes.ToolBar:NewPluginToolbarButton (ErrorReport.OpenWindow, "Interface\\HELPFRAME\\HelpIcon-Bug", Loc ["STRING_TOOLTIP"], 20, 20, "DETAILS_ERRORREPORT_BUTTON")
ErrorReport.ToolbarButton = _detalhes.ToolBar:NewPluginToolbarButton (ErrorReport.OpenWindow, "Interface\\HELPFRAME\\HelpIcon-Bug", Loc ["STRING_PLUGIN_NAME"], Loc ["STRING_TOOLTIP"], 20, 20, "DETAILS_ERRORREPORT_BUTTON")
--> setpoint anchors mod if needed
ErrorReport.ToolbarButton.y = 0
ErrorReport.ToolbarButton.x = 0
+67 -13
View File
@@ -1,3 +1,5 @@
--no inicio da luta gravar tabela com os coolsdowns de cada jogador e ir anotando quando eles sao usados.
--File Revision: 1
--Last Modification: 27/07/2013
-- Change Log:
@@ -419,14 +421,50 @@ function _G._detalhes:Start()
--377 328 508 409 0.0009765625
t:SetTexCoord (0.7373046875, 0.9912109375, 0.6416015625, 0.7978515625)
t:SetPoint ("center", f, "center")
local text = f:CreateFontString (nil, "overlay", "GameFontHighlight")
text:SetPoint ("topleft", t, "topleft", 24, -15)
_detalhes:SetFontSize (text, 9)
text:SetTextColor (.9, .9, .9, 1)
text:SetSize (120, 50)
text:SetJustifyV ("top")
text:SetJustifyH ("left")
f.text = text
local line1 = f:CreateFontString (nil, "overlay", "GameFontHighlightSmall")
line1:SetPoint ("topleft", t, "topleft", 24, -10)
_detalhes:SetFontSize (line1, 9)
line1:SetTextColor (.9, .9, .9, 1)
line1:SetSize (110, 12)
line1:SetJustifyV ("center")
line1:SetJustifyH ("center")
local line2 = f:CreateFontString (nil, "overlay", "GameFontHighlightSmall")
line2:SetPoint ("topleft", t, "topleft", 11, -20)
_detalhes:SetFontSize (line2, 9)
line2:SetTextColor (.9, .9, .9, 1)
line2:SetSize (140, 12)
line2:SetJustifyV ("center")
line2:SetJustifyH ("center")
local line3 = f:CreateFontString (nil, "overlay", "GameFontHighlightSmall")
line3:SetPoint ("topleft", t, "topleft", 7, -30)
_detalhes:SetFontSize (line3, 9)
line3:SetTextColor (.9, .9, .9, 1)
line3:SetSize (144, 12)
line3:SetJustifyV ("center")
line3:SetJustifyH ("center")
local line4 = f:CreateFontString (nil, "overlay", "GameFontHighlightSmall")
line4:SetPoint ("topleft", t, "topleft", 11, -40)
_detalhes:SetFontSize (line4, 9)
line4:SetTextColor (.9, .9, .9, 1)
line4:SetSize (140, 12)
line4:SetJustifyV ("center")
line4:SetJustifyH ("center")
local line5 = f:CreateFontString (nil, "overlay", "GameFontHighlightSmall")
line5:SetPoint ("topleft", t, "topleft", 24, -50)
_detalhes:SetFontSize (line5, 9)
line5:SetTextColor (.9, .9, .9, 1)
line5:SetSize (110, 12)
line5:SetJustifyV ("center")
line5:SetJustifyH ("center")
f.lines = {line1, line2, line3, line4, line5}
--t:SetPoint ("center", UIParent, "center")
function f:FlipHorizontal()
if (not f.isHorizontalFlipped) then
@@ -465,17 +503,33 @@ function _G._detalhes:Start()
end
end
function f:SetBubbleText (text)
f.text:SetText (text)
function f:SetBubbleText (line1, line2, line3, line4, line5)
if (not line1) then
for _, line in ipairs (f.lines) do
line:SetText ("")
end
return
end
if (line1:find ("\n")) then
line1, line2, line3, line4, line5 = strsplit ("\n", line1)
end
f.lines[1]:SetText (line1)
f.lines[2]:SetText (line2)
f.lines[3]:SetText (line3)
f.lines[4]:SetText (line4)
f.lines[5]:SetText (line5)
end
function f:SetOwner (frame, myPoint, hisPoint, x, y)
function f:SetOwner (frame, myPoint, hisPoint, x, y, alpha)
f:ClearAllPoints()
f.text:SetText ("")
f:SetBubbleText (nil)
t:SetTexCoord (0.7373046875, 0.9912109375, 0.6416015625, 0.7978515625)
f.isHorizontalFlipped = false
f.isVerticalFlipped = false
f:SetPoint (myPoint or "bottom", frame, hisPoint or "top", x or 0, y or 0)
t:SetAlpha (alpha or 1)
end
function f:ShowBubble()
@@ -486,7 +540,7 @@ function _G._detalhes:Start()
f:Hide()
end
f:SetBubbleText ("Teste do Texto da Bub ble testo texto e mais texto dentro da dubble. continuando o texto dentro da bubble pra ver ate onde ele vai")
f:SetBubbleText (nil)
f:Hide()