Division by zero fix
This commit is contained in:
@@ -587,7 +587,7 @@ talentsTable = Details:GetTalents (guid)
|
||||
if available, returns a table with 7 indexes with the talentId selected for each tree {talentId, talentId, talentId, talentId, talentId, talentId, talentId}.
|
||||
use with GetTalentInfoByID()
|
||||
|
||||
spec = Details:GetSpec (guid)
|
||||
spec = Details:GetSpec(guid)
|
||||
if available, return the spec id of the actor, use with GetSpecializationInfoByID()
|
||||
|
||||
Details:SetDeathLogLimit (limit)
|
||||
|
||||
@@ -593,7 +593,7 @@ talentsTable = Details:GetTalents (guid)
|
||||
if available, returns a table with 7 indexes with the talentId selected for each tree {talentId, talentId, talentId, talentId, talentId, talentId, talentId}.
|
||||
use with GetTalentInfoByID()
|
||||
|
||||
spec = Details:GetSpec (guid)
|
||||
spec = Details:GetSpec(guid)
|
||||
if available, return the spec id of the actor, use with GetSpecializationInfoByID()
|
||||
|
||||
Details:SetDeathLogLimit (limit)
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 382
|
||||
local dversion = 383
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary(major, minor)
|
||||
|
||||
@@ -3392,11 +3392,11 @@ function DF:CreateGlowOverlay (parent, antsColor, glowColor)
|
||||
parent.overlay:SetPoint("TOPLEFT", parent, "TOPLEFT", -frameWidth * 0.32, frameHeight * 0.36)
|
||||
parent.overlay:SetPoint("BOTTOMRIGHT", parent, "BOTTOMRIGHT", frameWidth * 0.32, -frameHeight * 0.36)
|
||||
|
||||
local r, g, b, a = DF:ParseColors(antsColor or defaultColor)
|
||||
local r, g, b, a = DF:ParseColors(antsColor)
|
||||
glowFrame.ants:SetVertexColor(r, g, b, a)
|
||||
glowFrame.AntsColor = {r, g, b, a}
|
||||
|
||||
local r, g, b, a = DF:ParseColors(glowColor or defaultColor)
|
||||
local r, g, b, a = DF:ParseColors(glowColor)
|
||||
glowFrame.outerGlow:SetVertexColor(r, g, b, a)
|
||||
glowFrame.GlowColor = {r, g, b, a}
|
||||
|
||||
|
||||
+54
-3
@@ -924,8 +924,8 @@ function DF:NewSpecialLuaEditorEntry(parent, width, height, member, name, nointe
|
||||
scrollframeNumberLines.editbox:SetJustifyH("left")
|
||||
scrollframeNumberLines.editbox:SetJustifyV ("top")
|
||||
scrollframeNumberLines.editbox:SetTextColor(.3, .3, .3, .5)
|
||||
scrollframeNumberLines.editbox:SetPoint("topleft", borderframe, "topleft", 10, -10)
|
||||
scrollframeNumberLines.editbox:SetPoint("bottomright", borderframe, "bottomright", -30, 10)
|
||||
scrollframeNumberLines.editbox:SetPoint("topleft", borderframe, "topleft", 0, -10)
|
||||
scrollframeNumberLines.editbox:SetPoint("bottomleft", borderframe, "bottomleft", 0, 10)
|
||||
|
||||
scrollframeNumberLines:SetScrollChild(scrollframeNumberLines.editbox)
|
||||
scrollframeNumberLines:EnableMouseWheel(false)
|
||||
@@ -945,7 +945,7 @@ function DF:NewSpecialLuaEditorEntry(parent, width, height, member, name, nointe
|
||||
end)
|
||||
|
||||
--place the number lines scroll in the begining of the editing code space
|
||||
scrollframeNumberLines:SetPoint("topleft", borderframe, "topleft", 10, -10)
|
||||
scrollframeNumberLines:SetPoint("topleft", borderframe, "topleft", 2, -10)
|
||||
scrollframeNumberLines:SetPoint("bottomright", borderframe, "bottomright", -10, 10)
|
||||
|
||||
scrollframeNumberLines.editbox:SetJustifyH("left")
|
||||
@@ -968,6 +968,57 @@ function DF:NewSpecialLuaEditorEntry(parent, width, height, member, name, nointe
|
||||
scrollframeNumberLines:SetBackdrop(nil)
|
||||
scrollframeNumberLines.editbox:SetBackdrop(nil)
|
||||
|
||||
local stringLengthFontString = scrollframeNumberLines:CreateFontString(nil, "overlay", "GameFontNormal")
|
||||
|
||||
local currentUpdateLineCounterTimer = nil
|
||||
|
||||
local updateLineCounter = function()
|
||||
scrollframeNumberLines.editbox:SetSize(scrollframe.editbox:GetSize())
|
||||
|
||||
local text = scrollframe.editbox:GetText()
|
||||
local textInArray = DF:SplitTextInLines(text)
|
||||
|
||||
local maxStringWidth = scrollframe.editbox:GetWidth()
|
||||
scrollframeNumberLines.editbox:SetWidth(maxStringWidth)
|
||||
|
||||
local font, size, flags = scrollframe.editbox:GetFont()
|
||||
scrollframeNumberLines.editbox:SetFont(font, size, flags)
|
||||
stringLengthFontString:SetFont(font, size, flags)
|
||||
|
||||
local resultText = ""
|
||||
|
||||
--this approuch has many problems but it is better than nothing
|
||||
for i = 1, #textInArray do
|
||||
--set the line text into a fontstring to get its width
|
||||
local thisText = textInArray[i]
|
||||
stringLengthFontString:SetText(thisText)
|
||||
local lineTextLength = ceil(stringLengthFontString:GetStringWidth())
|
||||
|
||||
if (lineTextLength < maxStringWidth) then
|
||||
resultText = resultText .. i .. "\n"
|
||||
else
|
||||
--if the text width is bigger than the editbox width, add a blank line into the line counter
|
||||
local linesToOccupy = floor(lineTextLength / maxStringWidth)
|
||||
local fillingText = i .. ""
|
||||
for o = 1, linesToOccupy do
|
||||
fillingText = fillingText .. "\n"
|
||||
end
|
||||
resultText = resultText .. fillingText .. "\n"
|
||||
end
|
||||
end
|
||||
|
||||
scrollframeNumberLines.editbox:SetText(resultText)
|
||||
|
||||
currentUpdateLineCounterTimer = nil
|
||||
end
|
||||
|
||||
scrollframe.editbox:HookScript("OnTextChanged", function()
|
||||
if (currentUpdateLineCounterTimer) then
|
||||
return
|
||||
end
|
||||
currentUpdateLineCounterTimer = C_Timer.NewTimer(0.25, updateLineCounter)
|
||||
end)
|
||||
|
||||
else
|
||||
scrollframe:SetPoint("topleft", borderframe, "topleft", 10, -10)
|
||||
scrollframe:SetPoint("bottomright", borderframe, "bottomright", -10, 10)
|
||||
|
||||
@@ -138,7 +138,7 @@ function openRaidLib.GetUnitID(playerName)
|
||||
end
|
||||
|
||||
|
||||
local filterStringToCooldownType = {
|
||||
local filterStringToCooldownType = { --report: "filterStringToCooldownType doesn't include the new filters."
|
||||
["defensive-raid"] = CONST_COOLDOWN_TYPE_DEFENSIVE_RAID,
|
||||
["defensive-target"] = CONST_COOLDOWN_TYPE_DEFENSIVE_TARGET,
|
||||
["defensive-personal"] = CONST_COOLDOWN_TYPE_DEFENSIVE_PERSONAL,
|
||||
|
||||
@@ -68,7 +68,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
|
||||
end
|
||||
|
||||
local major = "LibOpenRaid-1.0"
|
||||
local CONST_LIB_VERSION = 63
|
||||
local CONST_LIB_VERSION = 64
|
||||
LIB_OPEN_RAID_CAN_LOAD = false
|
||||
|
||||
local unpack = table.unpack or _G.unpack
|
||||
@@ -766,6 +766,7 @@ end
|
||||
|
||||
if (IsInGroup()) then
|
||||
openRaidLib.RequestAllData()
|
||||
openRaidLib.UpdateUnitIDCache()
|
||||
end
|
||||
|
||||
--this part is under development
|
||||
@@ -1155,6 +1156,14 @@ end
|
||||
local specId, specName, specDescription, specIcon, role = GetSpecializationInfoByID(specId or 0)
|
||||
local className, classString, classId = UnitClass(unitName)
|
||||
|
||||
--cold login bug where the player class info cannot be retrived by the player name, after a /reload it's all good
|
||||
if (not className) then
|
||||
local playerName = UnitName("player")
|
||||
if (playerName == unitName) then
|
||||
className, classString, classId = UnitClass("player")
|
||||
end
|
||||
end
|
||||
|
||||
unitInfo.specId = specId or unitInfo.specId
|
||||
unitInfo.specName = specName or unitInfo.specName
|
||||
unitInfo.role = role or "DAMAGER"
|
||||
|
||||
@@ -360,9 +360,7 @@ do
|
||||
|
||||
--current instances of the exp (need to maintain)
|
||||
_detalhes.InstancesToStoreData = { --mapId
|
||||
[2296] = true, --castle narnia
|
||||
[2450] = true, --sanctum of domination
|
||||
[2481] = true, --sepulcher of the first ones
|
||||
[2522] = true, --sepulcher of the first ones
|
||||
}
|
||||
|
||||
--armazena os escudos - Shields information for absorbs
|
||||
@@ -901,18 +899,14 @@ do
|
||||
|
||||
------------------------------------------------------------------------------------------
|
||||
-- welcome panel
|
||||
function _detalhes:CreateWelcomePanel (name, parent, width, height, make_movable)
|
||||
local f = CreateFrame("frame", name, parent or UIParent, "BackdropTemplate")
|
||||
function _detalhes:CreateWelcomePanel(name, parent, width, height, makeMovable)
|
||||
local newWelcomePanel = CreateFrame("frame", name, parent or UIParent, "BackdropTemplate")
|
||||
|
||||
--f:SetBackdrop({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 128, insets = {left=3, right=3, top=3, bottom=3}, edgeFile = [[Interface\AddOns\Details\images\border_welcome]], edgeSize = 16})
|
||||
f:SetBackdrop({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 128, insets = {left=0, right=0, top=0, bottom=0}, edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1})
|
||||
f:SetBackdropColor(1, 1, 1, 0.75)
|
||||
f:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
DetailsFramework:ApplyStandardBackdrop(newWelcomePanel)
|
||||
newWelcomePanel:SetSize(width or 1, height or 1)
|
||||
|
||||
f:SetSize(width or 1, height or 1)
|
||||
|
||||
if (make_movable) then
|
||||
f:SetScript("OnMouseDown", function(self, button)
|
||||
if (makeMovable) then
|
||||
newWelcomePanel:SetScript("OnMouseDown", function(self, button)
|
||||
if (self.isMoving) then
|
||||
return
|
||||
end
|
||||
@@ -923,17 +917,18 @@ do
|
||||
self.isMoving = true
|
||||
end
|
||||
end)
|
||||
f:SetScript("OnMouseUp", function(self, button)
|
||||
|
||||
newWelcomePanel:SetScript("OnMouseUp", function(self, button)
|
||||
if (self.isMoving and button == "LeftButton") then
|
||||
self:StopMovingOrSizing()
|
||||
self.isMoving = nil
|
||||
end
|
||||
end)
|
||||
f:SetToplevel(true)
|
||||
f:SetMovable(true)
|
||||
newWelcomePanel:SetToplevel(true)
|
||||
newWelcomePanel:SetMovable(true)
|
||||
end
|
||||
|
||||
return f
|
||||
return newWelcomePanel
|
||||
end
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -1012,7 +1007,7 @@ do
|
||||
copy = {}
|
||||
for orig_key, orig_value in next, orig, nil do
|
||||
--print(orig_key, orig_value)
|
||||
copy [Details.CopyTable(orig_key)] = Details.CopyTable(orig_value)
|
||||
copy[Details.CopyTable(orig_key)] = Details.CopyTable(orig_value)
|
||||
end
|
||||
else
|
||||
copy = orig
|
||||
@@ -1021,9 +1016,9 @@ do
|
||||
end
|
||||
|
||||
--delay messages
|
||||
function _detalhes:DelayMsg (msg)
|
||||
function _detalhes:DelayMsg(msg)
|
||||
_detalhes.delaymsgs = _detalhes.delaymsgs or {}
|
||||
_detalhes.delaymsgs [#_detalhes.delaymsgs+1] = msg
|
||||
_detalhes.delaymsgs[#_detalhes.delaymsgs+1] = msg
|
||||
end
|
||||
function _detalhes:ShowDelayMsg()
|
||||
if (_detalhes.delaymsgs and #_detalhes.delaymsgs > 0) then
|
||||
@@ -1035,12 +1030,11 @@ do
|
||||
end
|
||||
|
||||
--print messages
|
||||
function _detalhes:Msg(_string, arg1, arg2, arg3, arg4)
|
||||
function _detalhes:Msg(str, arg1, arg2, arg3, arg4)
|
||||
if (self.__name) then
|
||||
--yes, we have a name!
|
||||
print("|cffffaeae" .. self.__name .. "|r |cffcc7c7c(plugin)|r: " .. (_string or ""), arg1 or "", arg2 or "", arg3 or "", arg4 or "")
|
||||
print("|cffffaeae" .. self.__name .. "|r |cffcc7c7c(plugin)|r: " .. (str or ""), arg1 or "", arg2 or "", arg3 or "", arg4 or "")
|
||||
else
|
||||
print(Loc ["STRING_DETAILS1"] .. (_string or ""), arg1 or "", arg2 or "", arg3 or "", arg4 or "")
|
||||
print(Loc ["STRING_DETAILS1"] .. (str or ""), arg1 or "", arg2 or "", arg3 or "", arg4 or "")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1588,7 +1588,7 @@
|
||||
|
||||
local class, _, _, _, _, r, g, b = _detalhes:GetClass(target [1])
|
||||
if (class and class ~= "UNKNOW") then
|
||||
local texture, l, r, t, b = _detalhes:GetClassIcon (class)
|
||||
local texture, l, r, t, b = _detalhes:GetClassIcon(class)
|
||||
GameCooltip:AddIcon ("Interface\\AddOns\\Details\\images\\classes_small_alpha", 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height, l, r, t, b)
|
||||
else
|
||||
GameCooltip:AddIcon ("Interface\\GossipFrame\\IncompleteQuestIcon", 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height)
|
||||
@@ -1722,7 +1722,7 @@
|
||||
|
||||
local class, _, _, _, _, r, g, b = _detalhes:GetClass(t [1])
|
||||
if (class and class ~= "UNKNOW") then
|
||||
local texture, l, r, t, b = _detalhes:GetClassIcon (class)
|
||||
local texture, l, r, t, b = _detalhes:GetClassIcon(class)
|
||||
GameCooltip:AddIcon ("Interface\\AddOns\\Details\\images\\classes_small_alpha", 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height, l, r, t, b)
|
||||
else
|
||||
GameCooltip:AddIcon ("Interface\\GossipFrame\\IncompleteQuestIcon", 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height)
|
||||
|
||||
@@ -667,12 +667,12 @@ end
|
||||
GameCooltip:AddStatusBar (t[2]/top*100, 1, r, g, b, 0.8, false, byspell_tooltip_background)
|
||||
|
||||
if (class) then
|
||||
local specID = Details:GetSpec (t[1])
|
||||
local specID = Details:GetSpec(t[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
else
|
||||
local texture, l, r, t, b = Details:GetClassIcon (class)
|
||||
local texture, l, r, t, b = Details:GetClassIcon(class)
|
||||
GameCooltip:AddIcon ("Interface\\AddOns\\Details\\images\\classes_small_alpha", 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
end
|
||||
|
||||
@@ -1093,7 +1093,7 @@ end
|
||||
GameCooltip:AddIcon ("Interface\\LFGFRAME\\LFGROLE_BW", nil, nil, lineHeight, lineHeight, .25, .5, 0, 1)
|
||||
else
|
||||
|
||||
local specID = Details:GetSpec (t[1])
|
||||
local specID = Details:GetSpec(t[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
@@ -1499,7 +1499,7 @@ end
|
||||
|
||||
local classe = Details:GetClass(t[1])
|
||||
if (classe) then
|
||||
local specID = Details:GetSpec (t[1])
|
||||
local specID = Details:GetSpec(t[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
@@ -3910,7 +3910,7 @@ function atributo_damage:ToolTip_FriendlyFire (instancia, numero, barra, keydown
|
||||
if (classe == "UNKNOW") then
|
||||
GameCooltip:AddIcon ("Interface\\AddOns\\Details\\images\\classes_small", nil, nil, lineHeight, lineHeight, unpack(Details.class_coords ["UNKNOW"]))
|
||||
else
|
||||
local specID = Details:GetSpec (DamagedPlayers[i][1])
|
||||
local specID = Details:GetSpec(DamagedPlayers[i][1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
|
||||
+482
-483
File diff suppressed because it is too large
Load Diff
@@ -1820,7 +1820,7 @@ function atributo_misc:ToolTipDefensiveCooldowns (instancia, numero, barra)
|
||||
if (classe == "UNKNOW") then
|
||||
GameCooltip:AddIcon ("Interface\\LFGFRAME\\LFGROLE_BW", nil, nil, 14, 14, .25, .5, 0, 1)
|
||||
else
|
||||
local specID = _detalhes:GetSpec (alvos[i][1])
|
||||
local specID = _detalhes:GetSpec(alvos[i][1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = _detalhes:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
@@ -1900,7 +1900,7 @@ function atributo_misc:ToolTipRess (instancia, numero, barra)
|
||||
if (classe == "UNKNOW") then
|
||||
GameCooltip:AddIcon ("Interface\\LFGFRAME\\LFGROLE_BW", nil, nil, lineHeight, lineHeight, .25, .5, 0, 1)
|
||||
else
|
||||
local specID = _detalhes:GetSpec (alvos[i][1])
|
||||
local specID = _detalhes:GetSpec(alvos[i][1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = _detalhes:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
local _, engClass = _UnitClass (nome or "")
|
||||
local _, engClass = _UnitClass(nome or "")
|
||||
|
||||
if (engClass) then
|
||||
novo_objeto.classe = engClass
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
else
|
||||
local minute, second = _detalhes:GetCombat():GetFormatedCombatTime()
|
||||
|
||||
local _, class = _UnitClass (who_name)
|
||||
local _, class = _UnitClass(who_name)
|
||||
local class_color = "|cFFFF3333"
|
||||
|
||||
if (class) then
|
||||
@@ -457,10 +457,10 @@
|
||||
local msg
|
||||
local minute, second = _detalhes:GetCombat():GetFormatedCombatTime()
|
||||
|
||||
local _, class = _UnitClass (who_name)
|
||||
local _, class = _UnitClass(who_name)
|
||||
local class_color = "|cFFFFFFFF"
|
||||
|
||||
local _, class2 = _UnitClass (alvo_name)
|
||||
local _, class2 = _UnitClass(alvo_name)
|
||||
local class_color2 = "|cFFFFFFFF"
|
||||
|
||||
if (class) then
|
||||
@@ -556,7 +556,7 @@
|
||||
|
||||
local msg
|
||||
if (where == 4) then --observer
|
||||
local _, class = _UnitClass (alvo_name)
|
||||
local _, class = _UnitClass(alvo_name)
|
||||
local class_color = "|cFFFFFFFF"
|
||||
|
||||
if (class) then
|
||||
|
||||
@@ -173,6 +173,7 @@ end
|
||||
local spellIcon = GetSpellTexture(cooldownFrame.spellId)
|
||||
if (spellIcon) then
|
||||
cooldownFrame:SetIcon(spellIcon, .1, .9, .1, .9)
|
||||
|
||||
local classColor = C_ClassColor.GetClassColor(cooldownFrame.class)
|
||||
cooldownFrame:SetStatusBarColor(classColor.r, classColor.g, classColor.b)
|
||||
cooldownFrame:SetLeftText(DF:RemoveRealmName(cooldownFrame.unitName))
|
||||
|
||||
@@ -53,14 +53,13 @@ function Details:Dump (...)
|
||||
return
|
||||
else
|
||||
if (type(t) == "table") then
|
||||
local s = Details.table.dump(t)
|
||||
local s = DetailsFramework.table.dump(t)
|
||||
DetailsDumpFrame.Editbox:SetText(s)
|
||||
else
|
||||
t = {...}
|
||||
local s = DetailsFramework.table.dump(t)
|
||||
DetailsDumpFrame.Editbox:SetText(s)
|
||||
end
|
||||
|
||||
local s = Details.table.dump(t)
|
||||
DetailsDumpFrame.Editbox:SetText(s)
|
||||
end
|
||||
|
||||
DetailsDumpFrame:Show()
|
||||
|
||||
@@ -495,7 +495,7 @@ function Details.OpenDetailsDeathRecap (segment, RecapID, fromChat)
|
||||
|
||||
--parse source and cut the length of the string after setting the spellname and source
|
||||
local sourceClass = Details:GetClass(source)
|
||||
local sourceSpec = Details:GetSpec (source)
|
||||
local sourceSpec = Details:GetSpec(source)
|
||||
|
||||
if (not sourceClass) then
|
||||
local combat = Details:GetCurrentCombat()
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
|
||||
|
||||
--local pointer to details object
|
||||
local Details = _G._detalhes
|
||||
local debugmode = true --print debug lines
|
||||
local debugmode = false --print debug lines
|
||||
local verbosemode = false --auto open the chart panel
|
||||
local _
|
||||
|
||||
@@ -708,7 +707,7 @@ local PixelFrameOnEnter = function(self)
|
||||
local onlyName = _detalhes:GetOnlyName(playerName)
|
||||
GameCooltip2:AddLine(onlyName)
|
||||
|
||||
local classIcon, L, R, B, T = _detalhes:GetClassIcon (mythicDungeonCharts.ChartTable.Players [playerName] and mythicDungeonCharts.ChartTable.Players [playerName].Class)
|
||||
local classIcon, L, R, B, T = _detalhes:GetClassIcon(mythicDungeonCharts.ChartTable.Players [playerName] and mythicDungeonCharts.ChartTable.Players [playerName].Class)
|
||||
GameCooltip2:AddIcon (classIcon, 1, 1, 16, 16, L, R, B, T)
|
||||
|
||||
GameCooltip2:AddLine(Details:GetCurrentToKFunction()(nil, floor(dps)))
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@@ -673,7 +673,7 @@ end
|
||||
else
|
||||
--heal
|
||||
local class = Details:GetClass(source)
|
||||
local spec = Details:GetSpec (source)
|
||||
local spec = Details:GetSpec(source)
|
||||
|
||||
GameCooltip:AddLine("" .. _cstr ("%.1f", timeInSeconds - hora_da_morte) .. "s " .. spellname .. " (" .. Details:GetOnlyName(Details:AddClassOrSpecIcon (source, class, spec, 16, true)) .. ")", "+" .. _detalhes:ToK (amount) .. " (" .. hp .. "%)", 1, "white", "white")
|
||||
GameCooltip:AddIcon (spellicon, 1, 1, 16, 16, .1, .9, .1, .9)
|
||||
@@ -766,7 +766,7 @@ local function DispellInfo (dispell, barra)
|
||||
else
|
||||
GameCooltip:AddLine(EncounterDetails:GetOnlyName(tabela[1]), tabela[2], 1, "white", "orange")
|
||||
|
||||
local specID = Details:GetSpec (tabela[1])
|
||||
local specID = Details:GetSpec(tabela[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, EncounterDetails.CooltipLineHeight, EncounterDetails.CooltipLineHeight, l, r, t, b)
|
||||
@@ -808,7 +808,7 @@ local function KickBy (magia, barra)
|
||||
local coords = EncounterDetails.class_coords [tabela[3]]
|
||||
GameCooltip:AddLine(EncounterDetails:GetOnlyName(tabela[1]), tabela[2], 1, "white")
|
||||
|
||||
local specID = Details:GetSpec (tabela[1])
|
||||
local specID = Details:GetSpec(tabela[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, EncounterDetails.CooltipLineHeight, EncounterDetails.CooltipLineHeight, l, r, t, b)
|
||||
@@ -861,13 +861,13 @@ local function EnemySkills (habilidade, barra)
|
||||
|
||||
local actorClass = Details:GetClass(tabela[1])
|
||||
if (actorClass) then
|
||||
local r, g, b = Details:GetClassColor (actorClass)
|
||||
local r, g, b = Details:GetClassColor(actorClass)
|
||||
GameCooltip:AddStatusBar (tabela[2] / topValue * 100, 1, r, g, b, EncounterDetailsFrame.CooltipStatusbarAlpha, false, {value = 100, color = {.21, .21, .21, 0.5}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
else
|
||||
GameCooltip:AddStatusBar (tabela[2] / topValue * 100, 1, r, g, b, a, false, {value = 100, color = {.21, .21, .21, 0.8}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
end
|
||||
|
||||
local specID = Details:GetSpec (tabela[1])
|
||||
local specID = Details:GetSpec(tabela[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, EncounterDetails.CooltipLineHeight - 0, EncounterDetails.CooltipLineHeight - 0, l, r, t, b)
|
||||
@@ -1327,7 +1327,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
barra.textura:SetValue(jogador.damage_taken/dano_do_primeiro *100)
|
||||
end
|
||||
|
||||
local specID = Details:GetSpec (jogador.nome)
|
||||
local specID = Details:GetSpec(jogador.nome)
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
barra.icone:SetTexture(texture)
|
||||
@@ -1665,7 +1665,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
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")
|
||||
|
||||
local specID = Details:GetSpec (esta_tabela[1])
|
||||
local specID = Details:GetSpec(esta_tabela[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, EncounterDetails.CooltipLineHeight, EncounterDetails.CooltipLineHeight, l, r, t, b)
|
||||
@@ -1675,7 +1675,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
local actorClass = Details:GetClass(esta_tabela[1])
|
||||
if (actorClass) then
|
||||
local r, g, b = Details:GetClassColor (actorClass)
|
||||
local r, g, b = Details:GetClassColor(actorClass)
|
||||
GameCooltip:AddStatusBar (esta_tabela[2] / topDamage * 100, 1, r, g, b, EncounterDetailsFrame.CooltipStatusbarAlpha, false, {value = 100, color = {.21, .21, .21, 0.5}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
else
|
||||
GameCooltip:AddStatusBar (esta_tabela[2] / topDamage * 100, 1, .3, .3, .3, .3, false, {value = 100, color = {.21, .21, .21, 0.8}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
@@ -1714,7 +1714,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
if (coords) then
|
||||
GameCooltip:AddLine(EncounterDetails:GetOnlyName(esta_tabela[1]), _detalhes:ToK (esta_tabela[2]).." (".. _cstr ("%.1f", esta_tabela[2]/damage_from_total*100) .."%)", 1, "white", "orange", nil, nil, "MONOCHRONE")
|
||||
|
||||
local specID = Details:GetSpec (esta_tabela[1])
|
||||
local specID = Details:GetSpec(esta_tabela[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, EncounterDetails.CooltipLineHeight, EncounterDetails.CooltipLineHeight, l, r, t, b)
|
||||
@@ -1724,7 +1724,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
local actorClass = Details:GetClass(esta_tabela[1])
|
||||
if (actorClass) then
|
||||
local r, g, b = Details:GetClassColor (actorClass)
|
||||
local r, g, b = Details:GetClassColor(actorClass)
|
||||
GameCooltip:AddStatusBar (esta_tabela[2] / topDamage * 100, 1, r, g, b, EncounterDetailsFrame.CooltipStatusbarAlpha, false, {value = 100, color = {.21, .21, .21, 0.5}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
else
|
||||
GameCooltip:AddStatusBar (esta_tabela[2] / topDamage * 100, 1, .3, .3, .3, .3, false, {value = 100, color = {.21, .21, .21, 0.8}, texture = [[Interface\AddOns\Details\images\bar_serenity]]})
|
||||
|
||||
@@ -763,7 +763,7 @@ _detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
dlabel.righttext.text = _detalhes:ToK (_math_floor(player [2]))
|
||||
|
||||
local class = EncounterDetails:GetClass(player [1])
|
||||
local spec = EncounterDetails:GetSpec (player [1])
|
||||
local spec = EncounterDetails:GetSpec(player [1])
|
||||
|
||||
if (spec) then
|
||||
dlabel.icon.texture = [[Interface\AddOns\Details\images\spec_icons_normal]]
|
||||
@@ -2336,7 +2336,7 @@ local ScrollRefresh = function(self, data, offset, total_lines)
|
||||
local player = data [index]
|
||||
if (player) then
|
||||
local line = self:GetLine (i)
|
||||
local texture, L, R, T, B = _detalhes:GetPlayerIcon (player[1], PhaseFrame.CurrentSegment)
|
||||
local texture, L, R, T, B = _detalhes:GetPlayerIcon(player[1], PhaseFrame.CurrentSegment)
|
||||
|
||||
line.icon:SetTexture(texture)
|
||||
line.icon:SetTexCoord(L, R, T, B)
|
||||
|
||||
@@ -1492,7 +1492,7 @@ function StreamOverlay.OnDeath (_, token, time, who_serial, who_name, who_flags,
|
||||
local sourceObject = Details:GetActor("current", 1, source)
|
||||
local classIcon, l, r, t, b
|
||||
if (sourceObject) then
|
||||
classIcon, l, r, t, b = StreamOverlay:GetClassIcon (sourceObject.classe)
|
||||
classIcon, l, r, t, b = StreamOverlay:GetClassIcon(sourceObject.classe)
|
||||
else
|
||||
classIcon, l, r, t, b = defaultAttackIcon, 0, 1, 0, 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user