@@ -1025,7 +1025,7 @@ function atributo_energy:ToolTipRegenRecebido (instancia, numero, barra, keydown
|
|||||||
|
|
||||||
for i = 1, #allGeneratorSpells do
|
for i = 1, #allGeneratorSpells do
|
||||||
local thisGenerator = allGeneratorSpells [i]
|
local thisGenerator = allGeneratorSpells [i]
|
||||||
local spellName, _, spellIcon = GetSpellInfo(thisGenerator[1].id)
|
local spellName, _, spellIcon = _GetSpellInfo(thisGenerator[1].id)
|
||||||
GameCooltip:AddLine(spellName, FormatTooltipNumber (_, thisGenerator[2]) .. " (|cFFFF5555overflow: " .. FormatTooltipNumber (_, thisGenerator[3]) .. "|r | " .. _cstr ("%.1f", (thisGenerator[2] / allGenerated) * 100).."%)")
|
GameCooltip:AddLine(spellName, FormatTooltipNumber (_, thisGenerator[2]) .. " (|cFFFF5555overflow: " .. FormatTooltipNumber (_, thisGenerator[3]) .. "|r | " .. _cstr ("%.1f", (thisGenerator[2] / allGenerated) * 100).."%)")
|
||||||
GameCooltip:AddIcon (spellIcon, nil, nil, icon_size.W, icon_size.H, .1, .9, .1, .9)
|
GameCooltip:AddIcon (spellIcon, nil, nil, icon_size.W, icon_size.H, .1, .9, .1, .9)
|
||||||
_detalhes:AddTooltipBackgroundStatusbar()
|
_detalhes:AddTooltipBackgroundStatusbar()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ local unpack = unpack
|
|||||||
local GetTime = GetTime
|
local GetTime = GetTime
|
||||||
local CreateFrame = CreateFrame
|
local CreateFrame = CreateFrame
|
||||||
local GetSpellLink = GetSpellLink
|
local GetSpellLink = GetSpellLink
|
||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
local _GetSpellInfo = Details.GetSpellInfo
|
local _GetSpellInfo = Details.GetSpellInfo
|
||||||
local GameTooltip = GameTooltip
|
local GameTooltip = GameTooltip
|
||||||
local IsShiftKeyDown = IsShiftKeyDown
|
local IsShiftKeyDown = IsShiftKeyDown
|
||||||
@@ -336,10 +336,14 @@ local onEnterSpellBar = function(spellBar, motion) --parei aqui: precisa por nom
|
|||||||
local normalAverage = spellTable.n_total / math.max(normalHitsAmt, 0.0001)
|
local normalAverage = spellTable.n_total / math.max(normalHitsAmt, 0.0001)
|
||||||
blockLine3.leftText:SetText(Loc ["STRING_AVERAGE"] .. ": " .. Details:CommaValue(normalAverage))
|
blockLine3.leftText:SetText(Loc ["STRING_AVERAGE"] .. ": " .. Details:CommaValue(normalAverage))
|
||||||
|
|
||||||
local tempo = (elapsedTime * spellTable.n_total) / math.max(spellTable.total, 0.001)
|
if (spellTable.n_total > 0) then
|
||||||
local normalAveragePercent = spellBar.average / normalAverage * 100
|
local tempo = (elapsedTime * spellTable.n_total) / math.max(spellTable.total, 0.001)
|
||||||
local normalTempoPercent = normalAveragePercent * tempo / 100
|
local normalAveragePercent = spellBar.average / normalAverage * 100
|
||||||
blockLine3.rightText:SetText(Loc ["STRING_HPS"] .. ": " .. Details:CommaValue(spellTable.n_total / normalTempoPercent))
|
local normalTempoPercent = normalAveragePercent * tempo / 100
|
||||||
|
blockLine3.rightText:SetText(Loc ["STRING_HPS"] .. ": " .. Details:CommaValue(spellTable.n_total / normalTempoPercent))
|
||||||
|
else
|
||||||
|
blockLine3.rightText:SetText(Loc ["STRING_HPS"] .. ": " .. Details:CommaValue(0))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
---@type number
|
---@type number
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ local unpack = unpack
|
|||||||
local GetTime = GetTime
|
local GetTime = GetTime
|
||||||
local CreateFrame = CreateFrame
|
local CreateFrame = CreateFrame
|
||||||
local GetSpellLink = GetSpellLink
|
local GetSpellLink = GetSpellLink
|
||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
local _GetSpellInfo = Details.GetSpellInfo
|
local _GetSpellInfo = Details.GetSpellInfo
|
||||||
local GameTooltip = GameTooltip
|
local GameTooltip = GameTooltip
|
||||||
local IsShiftKeyDown = IsShiftKeyDown
|
local IsShiftKeyDown = IsShiftKeyDown
|
||||||
@@ -605,4 +605,4 @@ function spellsTab.CreateTargetBar(self, index) --~create ~target ~createtarget
|
|||||||
targetBar:AlignWithHeader(self.Header, "left")
|
targetBar:AlignWithHeader(self.Header, "left")
|
||||||
|
|
||||||
return targetBar
|
return targetBar
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ local unpack = unpack
|
|||||||
local GetTime = GetTime
|
local GetTime = GetTime
|
||||||
local CreateFrame = CreateFrame
|
local CreateFrame = CreateFrame
|
||||||
local GetSpellLink = GetSpellLink
|
local GetSpellLink = GetSpellLink
|
||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
local _GetSpellInfo = Details.GetSpellInfo
|
local _GetSpellInfo = Details.GetSpellInfo
|
||||||
local GameTooltip = GameTooltip
|
local GameTooltip = GameTooltip
|
||||||
local IsShiftKeyDown = IsShiftKeyDown
|
local IsShiftKeyDown = IsShiftKeyDown
|
||||||
|
|||||||
@@ -759,7 +759,10 @@ function Details:CreateCurrentDpsFrame(parent, name)
|
|||||||
local dpsBarFrame = DetailsArenaDpsBars.splitBar
|
local dpsBarFrame = DetailsArenaDpsBars.splitBar
|
||||||
|
|
||||||
--a percenntagem na barra esta sendo setada corretamente, porem a animação não esta funcrtionando ainda
|
--a percenntagem na barra esta sendo setada corretamente, porem a animação não esta funcrtionando ainda
|
||||||
local percentValue = teamGreenDps / totalDamage
|
local percentValue = 0
|
||||||
|
if (totalDamage > 0) then
|
||||||
|
percentValue = teamGreenDps / totalDamage
|
||||||
|
end
|
||||||
percentValue = Saturate(percentValue)
|
percentValue = Saturate(percentValue)
|
||||||
|
|
||||||
--print(percentValue)
|
--print(percentValue)
|
||||||
@@ -963,4 +966,4 @@ function DetailsTestSplitBar()
|
|||||||
loopTime = 0.1
|
loopTime = 0.1
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
local Details = _G.Details
|
local Details = _G.Details
|
||||||
local C_Timer = _G.C_Timer
|
local C_Timer = _G.C_Timer
|
||||||
|
local GetSpellInfo = Details.GetSpellInfo
|
||||||
local libwindow = LibStub("LibWindow-1.1")
|
local libwindow = LibStub("LibWindow-1.1")
|
||||||
|
|
||||||
function Details:OpenEventTrackerOptions(bFromOptionsPanel)
|
function Details:OpenEventTrackerOptions(bFromOptionsPanel)
|
||||||
@@ -262,7 +263,7 @@ function Details:CreateEventTrackerFrame(parentObject, name)
|
|||||||
local screenFrame = CreateFrame("frame", name, parentObject or UIParent,"BackdropTemplate")
|
local screenFrame = CreateFrame("frame", name, parentObject or UIParent,"BackdropTemplate")
|
||||||
screenFrame:SetPoint("center", UIParent, "center")
|
screenFrame:SetPoint("center", UIParent, "center")
|
||||||
|
|
||||||
if (not DetailsFramework.IsDragonflight() and not DetailsFramework.IsNonRetailWowWithRetailAPI()) then
|
if (not DetailsFramework.IsDragonflightAndBeyond() and not DetailsFramework.IsNonRetailWowWithRetailAPI()) then
|
||||||
screenFrame:SetMinResize (150, 40)
|
screenFrame:SetMinResize (150, 40)
|
||||||
screenFrame:SetMaxResize (800, 1024)
|
screenFrame:SetMaxResize (800, 1024)
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -6383,7 +6383,7 @@ do
|
|||||||
spellname_entry:SetPoint("left", spellname, "right", 2, 0)
|
spellname_entry:SetPoint("left", spellname, "right", 2, 0)
|
||||||
|
|
||||||
local spellid_entry_func = function(arg1, arg2, spellid)
|
local spellid_entry_func = function(arg1, arg2, spellid)
|
||||||
local spellname, _, icon = GetSpellInfo(spellid)
|
local spellname, _, icon = _GetSpellInfo(spellid)
|
||||||
if (spellname) then
|
if (spellname) then
|
||||||
spellname_entry:SetText(spellname)
|
spellname_entry:SetText(spellname)
|
||||||
addframe.spellIconButton.icon.texture = icon
|
addframe.spellIconButton.icon.texture = icon
|
||||||
@@ -7226,4 +7226,4 @@ do
|
|||||||
|
|
||||||
tinsert(Details.optionsSection, buildSection)
|
tinsert(Details.optionsSection, buildSection)
|
||||||
end
|
end
|
||||||
--]=]
|
--]=]
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ function Details.Survey.OpenSpellCategoryScreen()
|
|||||||
local spellId = spellTable[1]
|
local spellId = spellTable[1]
|
||||||
--get a line
|
--get a line
|
||||||
local line = self:GetLine(i)
|
local line = self:GetLine(i)
|
||||||
local spellName, _, spellIcon = GetSpellInfo(spellId)
|
local spellName, _, spellIcon = Details.GetSpellInfo(spellId)
|
||||||
line.Icon:SetTexture(spellIcon)
|
line.Icon:SetTexture(spellIcon)
|
||||||
line.Icon:SetTexCoord(.1, .9, .1, .9)
|
line.Icon:SetTexCoord(.1, .9, .1, .9)
|
||||||
line.SpellNameText.text = spellName
|
line.SpellNameText.text = spellName
|
||||||
@@ -361,4 +361,4 @@ function Details.Survey.OpenSpellCategoryScreen()
|
|||||||
|
|
||||||
DetailsSpellCategoryFrame.SpellScroll:RefreshScroll()
|
DetailsSpellCategoryFrame.SpellScroll:RefreshScroll()
|
||||||
DetailsSpellCategoryFrame:Show()
|
DetailsSpellCategoryFrame:Show()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1958,7 +1958,7 @@ local empty_other_values = {}
|
|||||||
function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, triggertype, auratype, other_values)
|
function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, triggertype, auratype, other_values)
|
||||||
|
|
||||||
if (not spellname) then
|
if (not spellname) then
|
||||||
spellname = select(1, GetSpellInfo(spellid))
|
spellname = select(1, _detalhes.GetSpellInfo(spellid))
|
||||||
end
|
end
|
||||||
|
|
||||||
Details:Destroy(empty_other_values)
|
Details:Destroy(empty_other_values)
|
||||||
@@ -2783,4 +2783,4 @@ function _detalhes:OpenAuraPanel (spellid, spellname, spellicon, encounterid, tr
|
|||||||
DetailsAuraPanel:Show()
|
DetailsAuraPanel:Show()
|
||||||
DetailsPluginContainerWindow.OpenPlugin (DetailsAuraPanel)
|
DetailsPluginContainerWindow.OpenPlugin (DetailsAuraPanel)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ This is a high level API for Details! Damage Meter
|
|||||||
|
|
||||||
local addonName, Details222 = ...
|
local addonName, Details222 = ...
|
||||||
|
|
||||||
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
|
|
||||||
--local helpers
|
--local helpers
|
||||||
local getCombatObject = function(segmentNumber)
|
local getCombatObject = function(segmentNumber)
|
||||||
---@type combat
|
---@type combat
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
local Loc = LibStub("AceLocale-3.0"):GetLocale ( "Details" )
|
local Loc = LibStub("AceLocale-3.0"):GetLocale ( "Details" )
|
||||||
local _
|
local _
|
||||||
local addonName, Details222 = ...
|
local addonName, Details222 = ...
|
||||||
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
--initialize buffs name container
|
--initialize buffs name container
|
||||||
_detalhes.Buffs.BuffsTable = {} -- armazenara o [nome do buff] = { tabela do buff }
|
_detalhes.Buffs.BuffsTable = {} -- armazenara o [nome do buff] = { tabela do buff }
|
||||||
_detalhes.Buffs.__index = _detalhes.Buffs
|
_detalhes.Buffs.__index = _detalhes.Buffs
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ local Details = _G.Details
|
|||||||
local DF = _G.DetailsFramework
|
local DF = _G.DetailsFramework
|
||||||
local C_Timer = _G.C_Timer
|
local C_Timer = _G.C_Timer
|
||||||
local addonName, Details222 = ...
|
local addonName, Details222 = ...
|
||||||
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
|
|
||||||
--get the sectionInfo and try to extract the spellID from it
|
--get the sectionInfo and try to extract the spellID from it
|
||||||
--sectionInfo is always a valid table
|
--sectionInfo is always a valid table
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ do
|
|||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
local unpack = table.unpack or _G.unpack
|
local unpack = table.unpack or _G.unpack
|
||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
local UnitClass = UnitClass
|
local UnitClass = UnitClass
|
||||||
local UnitGUID = UnitGUID
|
local UnitGUID = UnitGUID
|
||||||
|
|
||||||
@@ -632,4 +632,4 @@ do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ local UIParent = UIParent
|
|||||||
local UnitGUID = UnitGUID
|
local UnitGUID = UnitGUID
|
||||||
local tonumber= tonumber
|
local tonumber= tonumber
|
||||||
local LoggingCombat = LoggingCombat
|
local LoggingCombat = LoggingCombat
|
||||||
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
|
|
||||||
SLASH_PLAYEDCLASS1 = "/playedclass"
|
SLASH_PLAYEDCLASS1 = "/playedclass"
|
||||||
function SlashCmdList.PLAYEDCLASS(msg, editbox)
|
function SlashCmdList.PLAYEDCLASS(msg, editbox)
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ do
|
|||||||
local _detalhes = _G.Details
|
local _detalhes = _G.Details
|
||||||
local addonName, Details222 = ...
|
local addonName, Details222 = ...
|
||||||
|
|
||||||
|
local GetSpellInfo = Details222.GetSpellInfo
|
||||||
|
|
||||||
--import potion list from the framework
|
--import potion list from the framework
|
||||||
_detalhes.PotionList = {}
|
_detalhes.PotionList = {}
|
||||||
for spellID, _ in pairs(DetailsFramework.PotionIDs) do
|
for spellID, _ in pairs(DetailsFramework.PotionIDs) do
|
||||||
|
|||||||
@@ -458,7 +458,7 @@ do
|
|||||||
|
|
||||||
--amount of casts
|
--amount of casts
|
||||||
local combatObject = Details:GetCombatFromBreakdownWindow()
|
local combatObject = Details:GetCombatFromBreakdownWindow()
|
||||||
local castAmount = combatObject:GetSpellCastAmount(playerName, GetSpellInfo(spellId))
|
local castAmount = combatObject:GetSpellCastAmount(playerName, Details.GetSpellInfo(spellId))
|
||||||
local playerMiscObject = combatObject:GetActor(DETAILS_ATTRIBUTE_MISC, playerName)
|
local playerMiscObject = combatObject:GetActor(DETAILS_ATTRIBUTE_MISC, playerName)
|
||||||
|
|
||||||
if (castAmount > 0) then
|
if (castAmount > 0) then
|
||||||
@@ -579,7 +579,7 @@ do
|
|||||||
local combatObject = Details:GetCombatFromBreakdownWindow()
|
local combatObject = Details:GetCombatFromBreakdownWindow()
|
||||||
local playerMiscObject = combatObject:GetActor(DETAILS_ATTRIBUTE_MISC, playerName)
|
local playerMiscObject = combatObject:GetActor(DETAILS_ATTRIBUTE_MISC, playerName)
|
||||||
|
|
||||||
local castAmount = combatObject:GetSpellCastAmount(playerName, GetSpellInfo(spellId))
|
local castAmount = combatObject:GetSpellCastAmount(playerName, Details.GetSpellInfo(spellId))
|
||||||
if (castAmount > 0) then
|
if (castAmount > 0) then
|
||||||
tooltip.casts_label2:SetText(getPercentComparison(mainCastAmount, castAmount))
|
tooltip.casts_label2:SetText(getPercentComparison(mainCastAmount, castAmount))
|
||||||
tooltip.casts_label3:SetText(castAmount)
|
tooltip.casts_label3:SetText(castAmount)
|
||||||
@@ -2057,4 +2057,4 @@ do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ local DETAILS_ATTRIBUTE_DAMAGE = DETAILS_ATTRIBUTE_DAMAGE
|
|||||||
local CONST_DETAILS_MODE_GROUP = DETAILS_MODE_GROUP
|
local CONST_DETAILS_MODE_GROUP = DETAILS_MODE_GROUP
|
||||||
local DETAILS_SEGMENTTYPE_MYTHICDUNGEON = DETAILS_SEGMENTTYPE_MYTHICDUNGEON
|
local DETAILS_SEGMENTTYPE_MYTHICDUNGEON = DETAILS_SEGMENTTYPE_MYTHICDUNGEON
|
||||||
local DETAILS_ATTRIBUTE_MISC = DETAILS_ATTRIBUTE_MISC
|
local DETAILS_ATTRIBUTE_MISC = DETAILS_ATTRIBUTE_MISC
|
||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = Details.GetSpellInfo
|
||||||
local GameTooltip = GameTooltip
|
local GameTooltip = GameTooltip
|
||||||
|
|
||||||
local encounterDetails = _G.EncounterDetailsGlobal
|
local encounterDetails = _G.EncounterDetailsGlobal
|
||||||
@@ -1264,4 +1264,4 @@ function encounterDetails.RefreshSummaryPage(combatObject)
|
|||||||
encounterDetails.RefreshInterruptsScoll(combatObject)
|
encounterDetails.RefreshInterruptsScoll(combatObject)
|
||||||
encounterDetails.RefreshDispelsScoll(combatObject)
|
encounterDetails.RefreshDispelsScoll(combatObject)
|
||||||
encounterDetails.RefreshDeathsScoll(combatObject)
|
encounterDetails.RefreshDeathsScoll(combatObject)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ if (DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow() or DetailsFrame
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local Details = _G.Details
|
||||||
|
local GetSpellInfo = Details.GetSpellInfo
|
||||||
local UnitAura = UnitAura
|
local UnitAura = UnitAura
|
||||||
local UnitBuff = UnitBuff
|
local UnitBuff = UnitBuff
|
||||||
local GetSpellInfo = GetSpellInfo
|
|
||||||
local UnitClass = UnitClass
|
local UnitClass = UnitClass
|
||||||
local UnitName = UnitName
|
local UnitName = UnitName
|
||||||
local CLASS_ICON_TCOORDS = CLASS_ICON_TCOORDS
|
local CLASS_ICON_TCOORDS = CLASS_ICON_TCOORDS
|
||||||
@@ -1078,4 +1079,4 @@ function DetailsRaidCheck:OnEvent(_, event, ...)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ local SharedMedia = LibStub:GetLibrary ("LibSharedMedia-3.0")
|
|||||||
local LDB = LibStub ("LibDataBroker-1.1", true)
|
local LDB = LibStub ("LibDataBroker-1.1", true)
|
||||||
local LDBIcon = LDB and LibStub ("LibDBIcon-1.0", true)
|
local LDBIcon = LDB and LibStub ("LibDBIcon-1.0", true)
|
||||||
local LibWindow = LibStub ("LibWindow-1.1")
|
local LibWindow = LibStub ("LibWindow-1.1")
|
||||||
|
local Details = _G.Details
|
||||||
|
local GetSpellInfo = Details.GetSpellInfo
|
||||||
local _
|
local _
|
||||||
|
|
||||||
---need cleanup Loc ["STRING_MEMORY_ALERT_BUTTON"],
|
---need cleanup Loc ["STRING_MEMORY_ALERT_BUTTON"],
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ local _IsInRaid = IsInRaid --> wow api
|
|||||||
local _IsInGroup = IsInGroup --> wow api
|
local _IsInGroup = IsInGroup --> wow api
|
||||||
local _UnitGroupRolesAssigned = DetailsFramework.UnitGroupRolesAssigned --> wow api
|
local _UnitGroupRolesAssigned = DetailsFramework.UnitGroupRolesAssigned --> wow api
|
||||||
local GetUnitName = GetUnitName
|
local GetUnitName = GetUnitName
|
||||||
|
local Details = _G.Details
|
||||||
|
local GetSpellInfo = Details.GetSpellInfo
|
||||||
|
|
||||||
local _ipairs = ipairs --> lua api
|
local _ipairs = ipairs --> lua api
|
||||||
local _table_sort = table.sort --> lua api
|
local _table_sort = table.sort --> lua api
|
||||||
|
|||||||
Reference in New Issue
Block a user