This commit is contained in:
tercio
2014-04-01 21:20:43 -03:00
parent fcf9d7a2ed
commit 36e7b26b30
30 changed files with 3039 additions and 1851 deletions
@@ -198,6 +198,25 @@ local function CreatePluginFrames (data)
end
local IsShiftKeyDown = IsShiftKeyDown
local shift_monitor = function (self)
if (IsShiftKeyDown()) then
local spellname = GetSpellInfo (self.spellid)
if (spellname) then
GameTooltip:SetOwner (self, "ANCHOR_TOPLEFT")
GameTooltip:SetSpellByID (self.spellid)
GameTooltip:Show()
self.showing_spelldesc = true
end
else
if (self.showing_spelldesc) then
self:GetScript ("OnEnter") (self)
self.showing_spelldesc = false
end
end
end
--> custom tooltip for dead details ---------------------------------------------------------------------------------------------------------
local function KillInfo (deathTable, row)
@@ -555,22 +574,40 @@ function EncounterDetails:SetRowScripts (barra, index, container)
if (self.TTT == "damage_taken") then --> damage taken
DamageTakenDetails (self.jogador, barra)
elseif (self.TTT == "habilidades_inimigas") then --> enemy abilytes
EnemySkills (self.jogador, self)
self:SetScript ("OnUpdate", shift_monitor)
self.spellid = self.jogador [4]
_GameTooltip:AddLine (" ")
_GameTooltip:AddLine (Loc ["STRING_HOLDSHIFT"])
elseif (self.TTT == "total_interrupt") then
KickBy (self.jogador, self)
self:SetScript ("OnUpdate", shift_monitor)
self.spellid = self.jogador [3]
_GameTooltip:AddLine (" ")
_GameTooltip:AddLine (Loc ["STRING_HOLDSHIFT"])
elseif (self.TTT == "dispell") then
DispellInfo (self.jogador, self)
self:SetScript ("OnUpdate", shift_monitor)
self.spellid = self.jogador [3]
_GameTooltip:AddLine (" ")
_GameTooltip:AddLine (Loc ["STRING_HOLDSHIFT"])
elseif (self.TTT == "morte") then --> deaths
KillInfo (self.jogador, self) --> aqui 2
end
GameTooltip:Show()
end)
barra:SetScript ("OnLeave", --> MOUSE OUT
function (self)
self:SetScript ("OnUpdate", nil)
if (self.fading_in or self.faded or not self:IsShown() or self.hidden) then
return
end
@@ -35,6 +35,8 @@ Loc ["STRING_TOOLTIP"] = "Show Encounter Details Window"
Loc ["STRING_LAST_COOLDOWN"] = "last cooldown used"
Loc ["STRING_NOLAST_COOLDOWN"] = "no cooldown used"
Loc ["STRING_HOLDSHIFT"] = "SHIFT For Spell Description"
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."
@@ -34,6 +34,8 @@ Loc ["STRING_TOOLTIP"] = "Mostrar os detalhes do combate"
Loc ["STRING_LAST_COOLDOWN"] = "ultimo cooldown usado"
Loc ["STRING_NOLAST_COOLDOWN"] = "nenhum cooldown usado"
Loc ["STRING_HOLDSHIFT"] = "SHIFT Para Descricao da Habilidade"
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."
@@ -53,6 +53,29 @@ local siege_of_orgrimmar = {
end
end,
encounter_ids = {
-- Vale of Eternal Sorrows
[1602] = 1, -- Immerseus
[1598] = 2, -- Fallen Protectors
[1624] = 3, -- Norushen
[1604] = 4, -- Sha of Pride
-- Gates of Retribution
[1622] = 5, -- Galakras
[1600] = 6, -- Iron Juggernaut
[1606] = 7, -- Kor'kron Dark Shaman
[1603] = 8, -- General Nazgrim
-- The Underhold
[1595] = 9, -- Malkorok
[1594] = 10, -- Spoils of Pandaria
[1599] = 11, -- Thok the Bloodthirsty
-- Downfall
[1601] = 12, -- Siegecrafter Blackfuse
[1593] = 13, -- Paragons of Klaxy
[1623] = 14, -- Garrosh Hellscream
},
boss_ids = {
-- Vale of Eternal Sorrows
[71543] = 1, -- Immerseus
@@ -361,7 +384,8 @@ local siege_of_orgrimmar = {
boss = "Norushen",
portrait = [[Interface\EncounterJournal\UI-EJ-BOSS-Norushen]],
combat_end = {1, 72276},
--combat_end = {1, 72276},
encounter_start = {delay = 25},
equalize = true,
spell_mechanics = {