Merging Seal of Command on Wrath classic
This commit is contained in:
@@ -11,14 +11,14 @@ local function DebugMessage (...)
|
||||
end
|
||||
|
||||
--Needed locals
|
||||
local _GetTime = GetTime --wow api local
|
||||
local GetTime = GetTime --wow api local
|
||||
local _UFC = UnitAffectingCombat --wow api local
|
||||
local _IsInRaid = IsInRaid --wow api local
|
||||
local _IsInGroup = IsInGroup --wow api local
|
||||
local IsInRaid = IsInRaid --wow api local
|
||||
local IsInGroup = IsInGroup --wow api local
|
||||
local _UnitAura = UnitAura --wow api local
|
||||
local _GetSpellInfo = _detalhes.getspellinfo --wow api local
|
||||
local _CreateFrame = CreateFrame --wow api local
|
||||
local _GetTime = GetTime --wow api local
|
||||
local GetTime = GetTime --wow api local
|
||||
local _GetCursorPosition = GetCursorPosition --wow api local
|
||||
local _GameTooltip = GameTooltip --wow api local
|
||||
|
||||
@@ -27,9 +27,9 @@ local GameCooltip = GameCooltip2
|
||||
local _math_floor = math.floor --lua library local
|
||||
local _cstr = string.format --lua library local
|
||||
local ipairs = ipairs --lua library local
|
||||
local _pairs = pairs --lua library local
|
||||
local pairs = pairs --lua library local
|
||||
local _table_sort = table.sort --lua library local
|
||||
local _table_insert = table.insert --lua library local
|
||||
local tinsert = table.insert --lua library local
|
||||
local _unpack = unpack --lua library local
|
||||
local _bit_band = bit.band
|
||||
|
||||
@@ -752,7 +752,7 @@ local function DispellInfo (dispell, barra)
|
||||
local jogadores = dispell [1] --[nome od jogador] = total
|
||||
local tabela_jogadores = {}
|
||||
|
||||
for nome, tabela in _pairs(jogadores) do --tabela = [1] total tomado [2] classe
|
||||
for nome, tabela in pairs(jogadores) do --tabela = [1] total tomado [2] classe
|
||||
tabela_jogadores [#tabela_jogadores + 1] = {nome, tabela [1], tabela [2]}
|
||||
end
|
||||
|
||||
@@ -792,7 +792,7 @@ local function KickBy (magia, barra)
|
||||
local jogadores = magia [1] --[nome od jogador] = total
|
||||
local tabela_jogadores = {}
|
||||
|
||||
for nome, tabela in _pairs(jogadores) do --tabela = [1] total tomado [2] classe
|
||||
for nome, tabela in pairs(jogadores) do --tabela = [1] total tomado [2] classe
|
||||
tabela_jogadores [#tabela_jogadores + 1] = {nome, tabela [1], tabela [2]}
|
||||
end
|
||||
|
||||
@@ -840,7 +840,7 @@ local function EnemySkills (habilidade, barra)
|
||||
local tabela_jogadores = {}
|
||||
local total = 0
|
||||
|
||||
for nome, tabela in _pairs(jogadores) do --tabela = [1] total tomado [2] classe
|
||||
for nome, tabela in pairs(jogadores) do --tabela = [1] total tomado [2] classe
|
||||
tabela_jogadores [#tabela_jogadores + 1] = {nome, tabela[1], tabela[2]}
|
||||
total = total + tabela[1]
|
||||
end
|
||||
@@ -900,13 +900,13 @@ local function DamageTakenDetails (jogador, barra)
|
||||
|
||||
local meus_agressores = {}
|
||||
|
||||
for nome, _ in _pairs(agressores) do --agressores seria a lista de nomes
|
||||
for nome, _ in pairs(agressores) do --agressores seria a lista de nomes
|
||||
local este_agressor = showing._ActorTable[showing._NameIndexTable[nome]]
|
||||
if (este_agressor) then --checagem por causa do total e do garbage collector que n�o limpa os nomes que deram dano
|
||||
local habilidades = este_agressor.spells._ActorTable
|
||||
for id, habilidade in _pairs(habilidades) do
|
||||
for id, habilidade in pairs(habilidades) do
|
||||
local alvos = habilidade.targets
|
||||
for target_name, amount in _pairs(alvos) do
|
||||
for target_name, amount in pairs(alvos) do
|
||||
if (target_name == jogador.nome) then
|
||||
meus_agressores [#meus_agressores+1] = {id, amount, este_agressor.nome}
|
||||
end
|
||||
@@ -1021,7 +1021,7 @@ function EncounterDetails:SetRowScripts (barra, index, container)
|
||||
return
|
||||
end
|
||||
|
||||
self.mouse_down = _GetTime()
|
||||
self.mouse_down = GetTime()
|
||||
local x, y = _GetCursorPosition()
|
||||
self.x = _math_floor(x)
|
||||
self.y = _math_floor(y)
|
||||
@@ -1047,7 +1047,7 @@ function EncounterDetails:SetRowScripts (barra, index, container)
|
||||
x = _math_floor(x)
|
||||
y = _math_floor(y)
|
||||
|
||||
if ((self.mouse_down+0.4 > _GetTime() and (x == self.x and y == self.y)) or (x == self.x and y == self.y)) then
|
||||
if ((self.mouse_down+0.4 > GetTime() and (x == self.x and y == self.y)) or (x == self.x and y == self.y)) then
|
||||
_detalhes:BossInfoRowClick (self)
|
||||
end
|
||||
end)
|
||||
@@ -1382,7 +1382,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
local habilidades_usadas = {}
|
||||
local have_pool = false
|
||||
for spellid, _ in _pairs(habilidades_poll) do
|
||||
for spellid, _ in pairs(habilidades_poll) do
|
||||
have_pool = true
|
||||
break
|
||||
end
|
||||
@@ -1399,7 +1399,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
local habilidades = jogador.spells._ActorTable
|
||||
|
||||
for id, habilidade in _pairs(habilidades) do
|
||||
for id, habilidade in pairs(habilidades) do
|
||||
--if (habilidades_poll [id]) then
|
||||
--esse jogador usou uma habilidade do boss
|
||||
local esta_habilidade = habilidades_usadas [id] --tabela n�o numerica, pq diferentes monstros podem castar a mesma magia
|
||||
@@ -1420,7 +1420,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
--pega os alvos e adiciona ao [2]
|
||||
local alvos = habilidade.targets
|
||||
for target_name, amount in _pairs(alvos) do
|
||||
for target_name, amount in pairs(alvos) do
|
||||
|
||||
--ele tem o nome do jogador, vamos ver se este alvo � realmente um jogador verificando na tabela do combate
|
||||
local tabela_dano_do_jogador = DamageContainer._ActorTable [DamageContainer._NameIndexTable [target_name]]
|
||||
@@ -1438,7 +1438,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
--check if the spell id is in the spell poll.
|
||||
local habilidades = jogador.spells._ActorTable
|
||||
|
||||
for id, habilidade in _pairs(habilidades) do
|
||||
for id, habilidade in pairs(habilidades) do
|
||||
if (habilidades_poll [id]) then
|
||||
--esse jogador usou uma habilidade do boss
|
||||
local esta_habilidade = habilidades_usadas [id] --tabela n�o numerica, pq diferentes monstros podem castar a mesma magia
|
||||
@@ -1459,7 +1459,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
--pega os alvos e adiciona ao [2]
|
||||
local alvos = habilidade.targets
|
||||
for target_name, amount in _pairs(alvos) do
|
||||
for target_name, amount in pairs(alvos) do
|
||||
|
||||
--ele tem o nome do jogador, vamos ver se este alvo � realmente um jogador verificando na tabela do combate
|
||||
local tabela_dano_do_jogador = DamageContainer._ActorTable [DamageContainer._NameIndexTable [target_name]]
|
||||
@@ -1479,7 +1479,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
local tabela_em_ordem = {}
|
||||
local jaFoi = {}
|
||||
|
||||
for id, tabela in _pairs(habilidades_usadas) do
|
||||
for id, tabela in pairs(habilidades_usadas) do
|
||||
local spellname = Details.GetSpellInfo(tabela [4])
|
||||
|
||||
if (not jaFoi [spellname]) then
|
||||
@@ -1608,7 +1608,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
tabela.total = jogador.total
|
||||
|
||||
--em quem ele deu dano
|
||||
for target_name, amount in _pairs(jogador.targets) do
|
||||
for target_name, amount in pairs(jogador.targets) do
|
||||
local este_jogador = _combat_object (1, target_name)
|
||||
if (este_jogador) then
|
||||
if (este_jogador.classe ~= "PET" and este_jogador.classe ~= "UNGROUPPLAYER" and este_jogador.classe ~= "UNKNOW") then
|
||||
@@ -1620,11 +1620,11 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
_table_sort (tabela.dano_em, _detalhes.Sort2)
|
||||
|
||||
--quem deu dano nele
|
||||
for agressor, _ in _pairs(jogador.damage_from) do
|
||||
for agressor, _ in pairs(jogador.damage_from) do
|
||||
--local este_jogador = DamageContainer._ActorTable [DamageContainer._NameIndexTable [agressor]]
|
||||
local este_jogador = _combat_object (1, agressor)
|
||||
if (este_jogador and este_jogador:IsPlayer()) then
|
||||
for target_name, amount in _pairs(este_jogador.targets) do
|
||||
for target_name, amount in pairs(este_jogador.targets) do
|
||||
if (target_name == nome) then
|
||||
tabela.damage_from [#tabela.damage_from+1] = {agressor, amount, este_jogador.classe}
|
||||
tabela.damage_from_total = tabela.damage_from_total + amount
|
||||
@@ -1661,7 +1661,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
local topDamage = dano_em[1] and dano_em[1][2]
|
||||
|
||||
local dano_em_total = tabela.dano_em_total
|
||||
for _, esta_tabela in _pairs(dano_em) do
|
||||
for _, esta_tabela in pairs(dano_em) do
|
||||
local coords = EncounterDetails.class_coords [esta_tabela[3]]
|
||||
GameCooltip:AddLine(EncounterDetails:GetOnlyName(esta_tabela[1]), _detalhes:ToK (esta_tabela[2]).." (".. _cstr ("%.1f", esta_tabela[2]/dano_em_total*100) .."%)", 1, "white", "orange")
|
||||
|
||||
@@ -1708,7 +1708,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
local damage_from_total = tabela.damage_from_total
|
||||
local topDamage = damage_from[1] and damage_from[1][2]
|
||||
|
||||
for _, esta_tabela in _pairs(damage_from) do
|
||||
for _, esta_tabela in pairs(damage_from) do
|
||||
|
||||
local coords = EncounterDetails.class_coords [esta_tabela[3]]
|
||||
if (coords) then
|
||||
@@ -1866,7 +1866,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
local oque_interrompi = jogador.interrompeu_oque
|
||||
--vai ter [spellid] = quantidade
|
||||
|
||||
for spellid, amt in _pairs(oque_interrompi) do
|
||||
for spellid, amt in pairs(oque_interrompi) do
|
||||
if (not habilidades_interrompidas [spellid]) then --se a spell n�o tiver na pool, cria a tabela dela
|
||||
habilidades_interrompidas [spellid] = {{}, 0, spellid} --tabela com quem interrompeu e o total de vezes que a habilidade foi interrompida
|
||||
end
|
||||
@@ -1884,7 +1884,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
--por em ordem
|
||||
tabela_em_ordem = {}
|
||||
for spellid, tabela in _pairs(habilidades_interrompidas) do
|
||||
for spellid, tabela in pairs(habilidades_interrompidas) do
|
||||
tabela_em_ordem [#tabela_em_ordem+1] = tabela
|
||||
end
|
||||
_table_sort (tabela_em_ordem, _detalhes.Sort2)
|
||||
@@ -1978,7 +1978,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
--print("dispell: " .. jogador.classe .. " nome: " .. jogador.nome)
|
||||
|
||||
for spellid, amt in _pairs(oque_dispelei) do
|
||||
for spellid, amt in pairs(oque_dispelei) do
|
||||
if (not habilidades_dispeladas [spellid]) then --se a spell n�o tiver na pool, cria a tabela dela
|
||||
habilidades_dispeladas [spellid] = {{}, 0, spellid} --tabela com quem dispolou e o total de vezes que a habilidade foi dispelada
|
||||
end
|
||||
@@ -1998,7 +1998,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
--por em ordem
|
||||
tabela_em_ordem = {}
|
||||
for spellid, tabela in _pairs(habilidades_dispeladas) do
|
||||
for spellid, tabela in pairs(habilidades_dispeladas) do
|
||||
tabela_em_ordem [#tabela_em_ordem+1] = tabela
|
||||
end
|
||||
_table_sort (tabela_em_ordem, _detalhes.Sort2)
|
||||
@@ -2066,7 +2066,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
local habilidades_info = boss_info and boss_info.spell_mechanics or {} --barra.extra pega esse cara aqui --ent�o esse erro � das habilidades que n�o tao
|
||||
|
||||
for index, tabela in ipairs(mortes) do
|
||||
--{esta_morte, time, este_jogador.nome, este_jogador.classe, _UnitHealthMax (alvo_name), minutos.."m "..segundos.."s", ["dead"] = true}
|
||||
--{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, 0, 1)
|
||||
|
||||
@@ -189,12 +189,12 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
row.textura:SetStatusBarColor (.5, .5, .5, 0)
|
||||
row.textura:SetMinMaxValues(0,100)
|
||||
|
||||
row.lineText1 = row.textura:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
row.lineText1 = row.textura:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
row.lineText1:SetPoint("LEFT", row.textura, "LEFT", 22, -1)
|
||||
row.lineText1:SetJustifyH("LEFT")
|
||||
row.lineText1:SetTextColor (1,1,1,1)
|
||||
|
||||
row.lineText4 = row.textura:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
row.lineText4 = row.textura:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
row.lineText4:SetPoint("RIGHT", row.textura, "RIGHT", -2, 0)
|
||||
row.lineText4:SetJustifyH("RIGHT")
|
||||
row.lineText4:SetTextColor (1,1,1,1)
|
||||
@@ -994,7 +994,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
texture:SetHeight(9)
|
||||
texture:SetPoint("TOPLEFT", EncounterDetails.Frame, "TOPLEFT", (i*65) + 499, -81)
|
||||
texture:SetColorTexture (unpack(grafico_cores[i]))
|
||||
local text = g:CreateFontString (nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
local text = g:CreateFontString(nil, "OVERLAY", "GameFontHighlightSmall")
|
||||
text:SetPoint("LEFT", texture, "right", 2, 0)
|
||||
text:SetJustifyH("LEFT")
|
||||
if (i == 1) then
|
||||
@@ -1579,13 +1579,13 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
line.icon:SetPoint("left", line, "left", 2, 0)
|
||||
line.icon:SetSize(14, 14)
|
||||
|
||||
line.lefttext = line:CreateFontString (nil, "overlay", "GameFontHighlightSmall")
|
||||
line.lefttext = line:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
line.lefttext:SetPoint("left", line.icon, "right", 2, 0)
|
||||
line.lefttext:SetWidth(line:GetWidth() - 26)
|
||||
line.lefttext:SetHeight(14)
|
||||
line.lefttext:SetJustifyH("left")
|
||||
|
||||
line.righttext = line:CreateFontString (nil, "overlay", "GameFontHighlightSmall")
|
||||
line.righttext = line:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
|
||||
line.righttext:SetPoint("left", line.icon, "right", 46, 0)
|
||||
line.righttext:SetWidth(line:GetWidth() - 60)
|
||||
line.righttext:SetHeight(14)
|
||||
@@ -1916,7 +1916,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
spellinfo:SetScript("OnEnter", info_onenter)
|
||||
spellinfo:SetScript("OnLeave", info_onleave)
|
||||
|
||||
local spellinfotext = spellinfo:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
local spellinfotext = spellinfo:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
spellinfotext:SetPoint("center", spellinfo, "center")
|
||||
spellinfotext:SetText("info")
|
||||
spellinfo:SetPoint("left", spellname.widget, "right", 4, 0)
|
||||
@@ -2380,13 +2380,13 @@ local ScrollCreateLine = function(self, index)
|
||||
local icon = statusBar:CreateTexture("$parentIcon", "overlay")
|
||||
icon:SetSize(ScrollLineHeight, ScrollLineHeight)
|
||||
|
||||
local name = statusBar:CreateFontString ("$parentName", "overlay", "GameFontNormal")
|
||||
local name = statusBar:CreateFontString("$parentName", "overlay", "GameFontNormal")
|
||||
_detalhes.gump:SetFontSize (name, 10)
|
||||
icon:SetPoint("left", line, "left", 2, 0)
|
||||
name:SetPoint("left", icon, "right", 2, 0)
|
||||
_detalhes.gump:SetFontColor(name, "white")
|
||||
|
||||
local done = statusBar:CreateFontString ("$parentDone", "overlay", "GameFontNormal")
|
||||
local done = statusBar:CreateFontString("$parentDone", "overlay", "GameFontNormal")
|
||||
_detalhes.gump:SetFontSize (done, 10)
|
||||
_detalhes.gump:SetFontColor(done, "white")
|
||||
done:SetPoint("right", line, "right", -2, 0)
|
||||
@@ -2456,9 +2456,9 @@ for i = 1, 10 do
|
||||
local icon = line:CreateTexture("$parentIcon", "overlay")
|
||||
icon:SetSize(16, 16)
|
||||
icon:SetTexture([[Interface\AddOns\Details\images\clock]])
|
||||
local name = line:CreateFontString ("$parentName", "overlay", "GameFontNormal")
|
||||
local name = line:CreateFontString("$parentName", "overlay", "GameFontNormal")
|
||||
_detalhes.gump:SetFontSize (name, 10)
|
||||
local done = line:CreateFontString ("$parentDone", "overlay", "GameFontNormal")
|
||||
local done = line:CreateFontString("$parentDone", "overlay", "GameFontNormal")
|
||||
_detalhes.gump:SetFontSize (done, 10)
|
||||
|
||||
icon:SetPoint("left", line, "left", 2, 0)
|
||||
@@ -2484,11 +2484,11 @@ for i = 1, 20 do
|
||||
line:SetBackdrop({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true})
|
||||
line:SetBackdropColor(unpack(BGColorDefault))
|
||||
line:Hide()
|
||||
local name = line:CreateFontString ("$parentName", "overlay", "GameFontNormal")
|
||||
local name = line:CreateFontString("$parentName", "overlay", "GameFontNormal")
|
||||
_detalhes.gump:SetFontSize (name, 9)
|
||||
name:SetPoint("left", line, "left", 2, 0)
|
||||
|
||||
local done = line:CreateFontString ("$parentDone", "overlay", "GameFontNormal")
|
||||
local done = line:CreateFontString("$parentDone", "overlay", "GameFontNormal")
|
||||
_detalhes.gump:SetFontSize (done, 9)
|
||||
done:SetPoint("right", line, "right", -2, 0)
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ local function CreatePluginFrames()
|
||||
titlebar:SetPoint("bottomright", SOF, "topright")
|
||||
titlebar:SetBackdrop({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tile = true, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}})
|
||||
titlebar:SetBackdropColor(.1, .1, .1, .9)
|
||||
titlebar.text = titlebar:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
titlebar.text = titlebar:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
titlebar.text:SetPoint("center", titlebar, "center")
|
||||
titlebar.text:SetText("Details! Streamer: Action Tracker")
|
||||
titlebar:SetScript("OnEnter", function(self)
|
||||
@@ -609,8 +609,8 @@ local function CreatePluginFrames()
|
||||
|
||||
local arrow = statusbar:CreateTexture(nil, "overlay")
|
||||
|
||||
local text1 = statusbar:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
local text2 = statusbar:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
local text1 = statusbar:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
local text2 = statusbar:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
|
||||
icon1:SetPoint("left", f, "left", 2, 0) --player spell icon
|
||||
text1:SetPoint("left", icon1, "right", 2, 0) --player spell name
|
||||
@@ -1610,7 +1610,7 @@ screen_frame:SetScript("OnLeave", function()
|
||||
end)
|
||||
|
||||
|
||||
local screen_frame_text = screen_frame:CreateFontString ("StreamerOverlayDpsHpsFrameText", "overlay", "GameFontNormal")
|
||||
local screen_frame_text = screen_frame:CreateFontString("StreamerOverlayDpsHpsFrameText", "overlay", "GameFontNormal")
|
||||
screen_frame_text:SetPoint("center", screen_frame, "center")
|
||||
screen_frame.text = screen_frame_text
|
||||
|
||||
@@ -2219,7 +2219,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
--get the selected profile and overwrite the settings
|
||||
local ptable = Details_StreamerDB.profiles [profileName]
|
||||
|
||||
_detalhes.table.deploy (ptable, StreamOverlay.DefaultConfigTable) --update with any new config from the default table
|
||||
_detalhes.table.deploy(ptable, StreamOverlay.DefaultConfigTable) --update with any new config from the default table
|
||||
_detalhes.table.overwrite (StreamOverlay.db, ptable) --overwrite the local settings with the profile settings
|
||||
|
||||
Details_StreamerDB.characters [pname] = profileName
|
||||
@@ -2269,7 +2269,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
--load dbtable
|
||||
Details_StreamerDB.profiles [pname] = {}
|
||||
_detalhes.table.overwrite (Details_StreamerDB.profiles [pname], StreamOverlay.db)
|
||||
_detalhes.table.deploy (Details_StreamerDB.profiles [pname], StreamOverlay.DefaultConfigTable) --update with any new config from the default table
|
||||
_detalhes.table.deploy(Details_StreamerDB.profiles [pname], StreamOverlay.DefaultConfigTable) --update with any new config from the default table
|
||||
--StreamOverlay.db = Details_StreamerDB.profiles [pname] --no can't change the local database table
|
||||
|
||||
optionsFrame.NewProfileButton:Hide()
|
||||
@@ -2456,7 +2456,7 @@ function StreamOverlay:OnEvent (_, event, ...)
|
||||
|
||||
local icon = welcomeWindow:CreateTexture(nil, "overlay")
|
||||
icon:SetTexture([[Interface\MINIMAP\MOVIERECORDINGICON]])
|
||||
local title = welcomeWindow:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
local title = welcomeWindow:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
title:SetText("Details!: Action Tracker (plugin)")
|
||||
StreamOverlay:SetFontSize (title, 20)
|
||||
|
||||
@@ -2466,11 +2466,11 @@ function StreamOverlay:OnEvent (_, event, ...)
|
||||
youtubeTwitchIcons:SetSize(109, 413 - 370)
|
||||
youtubeTwitchIcons:SetPoint("topleft", welcomeWindow, "topleft", 123, -61)
|
||||
|
||||
local text1 = welcomeWindow:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
local text1 = welcomeWindow:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
text1:SetText("SHOW TO YOUR VIEWERS YOUR ROTATION\nThis way they can learn while watching your content")
|
||||
local text2 = welcomeWindow:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
local text2 = welcomeWindow:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
text2:SetText("Use the command:")
|
||||
local text3 = welcomeWindow:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
local text3 = welcomeWindow:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
text3:SetText("/streamer")
|
||||
DetailsFramework:SetFontSize(text3, 16)
|
||||
|
||||
@@ -2513,7 +2513,7 @@ function StreamOverlay:OnEvent (_, event, ...)
|
||||
--load dbtable
|
||||
local ptable = Details_StreamerDB.profiles [ Details_StreamerDB.characters [pname] ] or {} --already existen config set or empty table
|
||||
_detalhes.table.overwrite (StreamOverlay.db, ptable) --profile overwrite the local settings
|
||||
_detalhes.table.deploy (ptable, StreamOverlay.db) --local settings deploy stuff which non exist on profile
|
||||
_detalhes.table.deploy(ptable, StreamOverlay.db) --local settings deploy stuff which non exist on profile
|
||||
|
||||
Details_StreamerDB.profiles [ Details_StreamerDB.characters [pname] ] = ptable
|
||||
end
|
||||
|
||||
@@ -2,11 +2,11 @@ local AceLocale = LibStub("AceLocale-3.0")
|
||||
local Loc = AceLocale:GetLocale ("Details_Threat")
|
||||
|
||||
local _GetNumSubgroupMembers = GetNumSubgroupMembers --wow api
|
||||
local _GetNumGroupMembers = GetNumGroupMembers --wow api
|
||||
local GetNumGroupMembers = GetNumGroupMembers --wow api
|
||||
local _UnitIsFriend = UnitIsFriend --wow api
|
||||
local _UnitName = UnitName --wow api
|
||||
local _IsInRaid = IsInRaid --wow api
|
||||
local _IsInGroup = IsInGroup --wow api
|
||||
local IsInRaid = IsInRaid --wow api
|
||||
local IsInGroup = IsInGroup --wow api
|
||||
local _UnitGroupRolesAssigned = DetailsFramework.UnitGroupRolesAssigned --wow api
|
||||
local GetUnitName = GetUnitName
|
||||
|
||||
@@ -102,7 +102,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
ThreatMeter.Actived = false
|
||||
|
||||
if (ThreatMeter:IsInCombat() or UnitAffectingCombat ("player")) then
|
||||
if (ThreatMeter:IsInCombat() or UnitAffectingCombat("player")) then
|
||||
if (not ThreatMeter.initialized) then
|
||||
return
|
||||
end
|
||||
@@ -323,8 +323,8 @@ local function CreatePluginFrames (data)
|
||||
if (ThreatMeter.Actived and UnitExists(unitId) and not _UnitIsFriend("player", unitId)) then
|
||||
|
||||
--get the threat of all players
|
||||
if (_IsInRaid()) then
|
||||
for i = 1, _GetNumGroupMembers(), 1 do
|
||||
if (IsInRaid()) then
|
||||
for i = 1, GetNumGroupMembers(), 1 do
|
||||
|
||||
local thisplayer_name = GetUnitName("raid"..i, true)
|
||||
local threat_table_index = ThreatMeter.player_list_hash [thisplayer_name]
|
||||
@@ -340,8 +340,8 @@ local function CreatePluginFrames (data)
|
||||
|
||||
end
|
||||
|
||||
elseif (_IsInGroup()) then
|
||||
for i = 1, _GetNumGroupMembers()-1, 1 do
|
||||
elseif (IsInGroup()) then
|
||||
for i = 1, GetNumGroupMembers()-1, 1 do
|
||||
local thisplayer_name = GetUnitName("party"..i, true)
|
||||
local threat_table_index = ThreatMeter.player_list_hash [thisplayer_name]
|
||||
local threat_table = ThreatMeter.player_list_indexes [threat_table_index]
|
||||
@@ -661,8 +661,8 @@ local function CreatePluginFrames (data)
|
||||
ThreatMeter.player_list_hash = {}
|
||||
|
||||
--pre build player list
|
||||
if (_IsInRaid()) then
|
||||
for i = 1, _GetNumGroupMembers(), 1 do
|
||||
if (IsInRaid()) then
|
||||
for i = 1, GetNumGroupMembers(), 1 do
|
||||
local thisplayer_name = GetUnitName("raid"..i, true)
|
||||
local role = _UnitGroupRolesAssigned(thisplayer_name)
|
||||
local _, class = UnitClass (thisplayer_name)
|
||||
@@ -671,8 +671,8 @@ local function CreatePluginFrames (data)
|
||||
ThreatMeter.player_list_hash [thisplayer_name] = #ThreatMeter.player_list_indexes
|
||||
end
|
||||
|
||||
elseif (_IsInGroup()) then
|
||||
for i = 1, _GetNumGroupMembers()-1, 1 do
|
||||
elseif (IsInGroup()) then
|
||||
for i = 1, GetNumGroupMembers()-1, 1 do
|
||||
local thisplayer_name = GetUnitName("party"..i, true)
|
||||
local role = _UnitGroupRolesAssigned(thisplayer_name)
|
||||
local _, class = UnitClass (thisplayer_name)
|
||||
|
||||
@@ -15,14 +15,14 @@ local DF = _G.DetailsFramework
|
||||
--ignorar bloodlust, shield d priest
|
||||
--reler os tanks ao sair de um grupo
|
||||
|
||||
local _GetTime = GetTime --wow api local
|
||||
local GetTime = GetTime --wow api local
|
||||
local _UFC = UnitAffectingCombat --wow api local
|
||||
local _IsInRaid = IsInRaid --wow api local
|
||||
local _IsInGroup = IsInGroup --wow api local
|
||||
local IsInRaid = IsInRaid --wow api local
|
||||
local IsInGroup = IsInGroup --wow api local
|
||||
local _UnitName = UnitName --wow api local
|
||||
local _UnitGroupRolesAssigned = DetailsFramework.UnitGroupRolesAssigned
|
||||
local _UnitHealth = UnitHealth --wow api local
|
||||
local _UnitHealthMax = UnitHealthMax --wow api local
|
||||
local UnitHealth = UnitHealth --wow api local
|
||||
local UnitHealthMax = UnitHealthMax --wow api local
|
||||
local _UnitIsPlayer = UnitIsPlayer --wow api local
|
||||
local _UnitClass = UnitClass --wow api local
|
||||
local _UnitDebuff = UnitDebuff --wow api local
|
||||
@@ -36,10 +36,10 @@ local CONST_DEBUFF_AMOUNT = 5
|
||||
local CONST_MAX_TANKS = 2
|
||||
|
||||
local _cstr = string.format --lua library local
|
||||
local _table_insert = table.insert --lua library local
|
||||
local tinsert = table.insert --lua library local
|
||||
local _table_remove = table.remove --lua library local
|
||||
local ipairs = ipairs --lua library local
|
||||
local _pairs = pairs --lua library local
|
||||
local pairs = pairs --lua library local
|
||||
local _math_floor = math.floor --lua library local
|
||||
local abs = math.abs --lua library local
|
||||
local _math_min = math.min --lua library local
|
||||
@@ -499,7 +499,7 @@ local function CreatePluginFrames (data)
|
||||
elevateStringsFrame:SetFrameLevel(dblock:GetFrameLevel()+10)
|
||||
elevateStringsFrame:EnableMouse(false)
|
||||
|
||||
local stack = elevateStringsFrame:CreateFontString (elevateStringsFrame:GetName() .. "_StackText", "overlay", "GameFontNormal")
|
||||
local stack = elevateStringsFrame:CreateFontString(elevateStringsFrame:GetName() .. "_StackText", "overlay", "GameFontNormal")
|
||||
stack:SetPoint("bottomright", dblock, "bottomright", 0, 0)
|
||||
DetailsFramework:SetFontColor(stack, "yellow")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user