Open Raid Library update
This commit is contained in:
+3
-3
@@ -281,7 +281,7 @@ do
|
||||
end
|
||||
|
||||
--return the boss portrit
|
||||
function _detalhes:GetBossPortrait (mapid, bossindex, encounterName, ejID)
|
||||
function _detalhes:GetBossPortrait(mapid, bossindex, encounterName, ejID)
|
||||
if (mapid and bossindex) then
|
||||
local haveIcon = _detalhes.EncounterInformation [mapid] and _detalhes.EncounterInformation [mapid].encounters [bossindex] and _detalhes.EncounterInformation [mapid].encounters [bossindex].portrait
|
||||
if (haveIcon) then
|
||||
@@ -317,8 +317,8 @@ do
|
||||
if (displayInfo ~= 0 and abilityIcon == "") then
|
||||
actors [title] = {model = displayInfo, info = description}
|
||||
end
|
||||
table.insert (stack, siblingID)
|
||||
table.insert (stack, nextSectionID)
|
||||
table.insert(stack, siblingID)
|
||||
table.insert(stack, nextSectionID)
|
||||
curSectionID = table.remove (stack)
|
||||
until not curSectionID
|
||||
|
||||
|
||||
+1
-1
@@ -445,7 +445,7 @@ function Details.Coach.WelcomePanel()
|
||||
if (not welcomePanel) then
|
||||
welcomePanel = DetailsFramework:CreateSimplePanel(UIParent)
|
||||
welcomePanel:SetSize(400, 280)
|
||||
welcomePanel:SetTitle ("Details! Coach")
|
||||
welcomePanel:SetTitle("Details! Coach")
|
||||
welcomePanel:ClearAllPoints()
|
||||
welcomePanel:SetPoint("left", UIParent, "left", 10, 0)
|
||||
welcomePanel:Hide()
|
||||
|
||||
@@ -283,7 +283,7 @@ function detailsOnDeathMenu.ShowPanel()
|
||||
detailsOnDeathMenu.disableLabel.alpha = 0.5
|
||||
detailsOnDeathMenu:SetHeight(detailsOnDeathMenu:GetHeight() + 10)
|
||||
|
||||
if (math.random (1, 3) == 3) then
|
||||
if (math.random(1, 3) == 3) then
|
||||
Details:SetTutorialCVar ("DISABLE_ONDEATH_PANEL", true)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -76,7 +76,7 @@ local create_deathrecap_line = function(parent, n)
|
||||
Details.gump:SetFontColor(timeAt, "gray")
|
||||
Details.gump:SetFontColor(sourceName, "yellow")
|
||||
|
||||
Details.gump:SetFontSize (sourceName, 10)
|
||||
Details.gump:SetFontSize(sourceName, 10)
|
||||
|
||||
--text alpha
|
||||
timeAt:SetAlpha(textAlpha)
|
||||
@@ -120,8 +120,8 @@ local create_deathrecap_line = function(parent, n)
|
||||
backgroundTexture2:SetPoint("topright", backgroundTexture, "bottomright", 0, 0)
|
||||
backgroundTexture2:SetHeight(32)
|
||||
|
||||
Details.gump:SetFontSize (amount, 14)
|
||||
Details.gump:SetFontSize (lifePercent, 14)
|
||||
Details.gump:SetFontSize(amount, 14)
|
||||
Details.gump:SetFontSize(lifePercent, 14)
|
||||
backgroundTexture:SetVertexColor(.2, .1, .1, .3)
|
||||
end
|
||||
|
||||
|
||||
+21
-16
@@ -2,7 +2,7 @@
|
||||
|
||||
--local pointer to details object
|
||||
local Details = _G._detalhes
|
||||
local debugmode = false --print debug lines
|
||||
local debugmode = true --print debug lines
|
||||
local verbosemode = false --auto open the chart panel
|
||||
local _
|
||||
|
||||
@@ -22,6 +22,8 @@ Should the chart data be volatile?
|
||||
local mythicDungeonCharts = Details:CreateEventListener()
|
||||
_G.DetailsMythicDungeonChartHandler = mythicDungeonCharts
|
||||
|
||||
--DetailsMythicDungeonChartHandler.ChartTable.Players["playername"].ChartData = {max_value = 0}
|
||||
|
||||
function mythicDungeonCharts:Debug(...)
|
||||
if (debugmode or verbosemode) then
|
||||
print("Details! DungeonCharts: ", ...)
|
||||
@@ -38,7 +40,7 @@ local addPlayerDamage = function(unitName, unitRealm)
|
||||
end
|
||||
|
||||
--get the player data
|
||||
local playerData = mythicDungeonCharts.ChartTable.Players [CLName]
|
||||
local playerData = mythicDungeonCharts.ChartTable.Players[CLName]
|
||||
|
||||
--if this is the first tick for the player, ignore the damage done on this tick
|
||||
--this is done to prevent a tick tick with all the damage the player did on the previous segment
|
||||
@@ -61,7 +63,7 @@ local addPlayerDamage = function(unitName, unitRealm)
|
||||
LastCombatID = -1,
|
||||
}
|
||||
|
||||
mythicDungeonCharts.ChartTable.Players [CLName] = playerData
|
||||
mythicDungeonCharts.ChartTable.Players[CLName] = playerData
|
||||
bIsFirstTick = true
|
||||
end
|
||||
|
||||
@@ -569,12 +571,12 @@ function mythicDungeonCharts.ShowChart()
|
||||
|
||||
bossWidget:SetPoint("bottomright", dungeonChartFrame.ChartFrame.Graphic, "bottomleft", xPosition, 0)
|
||||
|
||||
bossWidget.TimeText:SetText(Details:GetFramework():IntegerToTimer (bossTable[1]))
|
||||
bossWidget.TimeText:SetText(Details:GetFramework():IntegerToTimer(bossTable[1]))
|
||||
|
||||
if (bossTable[2].bossimage) then
|
||||
bossWidget.AvatarTexture:SetTexture(bossTable[2].bossimage)
|
||||
else
|
||||
local bossAvatar = Details:GetBossPortrait (nil, nil, bossTable[2].name, bossTable[2].ej_instance_id)
|
||||
local bossAvatar = Details:GetBossPortrait(nil, nil, bossTable[2].name, bossTable[2].ej_instance_id)
|
||||
bossWidget.AvatarTexture:SetTexture(bossAvatar)
|
||||
end
|
||||
end
|
||||
@@ -616,15 +618,14 @@ function mythicDungeonCharts.ShowChart()
|
||||
mythicDungeonCharts.PlayerGraphIndex = {}
|
||||
|
||||
for playerName, playerTable in pairs(charts) do
|
||||
|
||||
local chartData = playerTable.ChartData
|
||||
local lineName = playerTable.Name
|
||||
|
||||
classDuplicated [playerTable.Class] = (classDuplicated [playerTable.Class] or 0) + 1
|
||||
classDuplicated[playerTable.Class] = (classDuplicated[playerTable.Class] or 0) + 1
|
||||
|
||||
local lineColor
|
||||
if (playerTable.Class) then
|
||||
local classColor = mythicDungeonCharts.ClassColors [playerTable.Class .. classDuplicated [playerTable.Class]]
|
||||
local classColor = mythicDungeonCharts.ClassColors[playerTable.Class .. classDuplicated[playerTable.Class]]
|
||||
if (classColor) then
|
||||
lineColor = {classColor.r, classColor.g, classColor.b}
|
||||
else
|
||||
@@ -639,12 +640,12 @@ function mythicDungeonCharts.ShowChart()
|
||||
|
||||
--lowess smooth
|
||||
--chartData = mythicDungeonCharts.LowessSmoothing (chartData, 75)
|
||||
chartData = mythicDungeonCharts.Frame.ChartFrame:CalcLowessSmoothing (chartData, 75)
|
||||
chartData = mythicDungeonCharts.Frame.ChartFrame:CalcLowessSmoothing(chartData, 75)
|
||||
|
||||
local maxValue = 0
|
||||
for i = 1, #chartData do
|
||||
if (chartData [i] > maxValue) then
|
||||
maxValue = chartData [i]
|
||||
maxValue = chartData[i]
|
||||
end
|
||||
end
|
||||
chartData.max_value = maxValue
|
||||
@@ -653,24 +654,24 @@ function mythicDungeonCharts.ShowChart()
|
||||
tinsert(mythicDungeonCharts.PlayerGraphIndex, playerName)
|
||||
end
|
||||
|
||||
mythicDungeonCharts.Frame.ChartFrame:RefreshBossTimeline (mythicDungeonCharts.ChartTable.BossDefeated, mythicDungeonCharts.ChartTable.ElapsedTime)
|
||||
mythicDungeonCharts.Frame.ChartFrame:RefreshBossTimeline(mythicDungeonCharts.ChartTable.BossDefeated, mythicDungeonCharts.ChartTable.ElapsedTime)
|
||||
|
||||
--generate boss time table
|
||||
local bossTimeTable = {}
|
||||
for i, bossTable in ipairs(mythicDungeonCharts.ChartTable.BossDefeated) do
|
||||
local combatTime = bossTable [3] or math.random (10, 30)
|
||||
local combatTime = bossTable [3] or math.random(10, 30)
|
||||
|
||||
tinsert(bossTimeTable, bossTable[1])
|
||||
tinsert(bossTimeTable, bossTable[1] - combatTime)
|
||||
end
|
||||
|
||||
mythicDungeonCharts.Frame.ChartFrame:AddOverlay (bossTimeTable, {1, 1, 1, 0.05}, "Show Boss", "")
|
||||
mythicDungeonCharts.Frame.ChartFrame:AddOverlay(bossTimeTable, {1, 1, 1, 0.05}, "Show Boss", "")
|
||||
|
||||
--local phrase = " Average Dps (under development)\npress Escape to hide, Details! Alpha Build." .. _detalhes.build_counter .. "." .. _detalhes.realversion
|
||||
local phrase = "Details!: Average Dps for "
|
||||
|
||||
mythicDungeonCharts.Frame.ChartFrame:SetTitle ("")
|
||||
Details:GetFramework():SetFontSize (mythicDungeonCharts.Frame.ChartFrame.chart_title, 14)
|
||||
mythicDungeonCharts.Frame.ChartFrame:SetTitle("")
|
||||
Details:GetFramework():SetFontSize(mythicDungeonCharts.Frame.ChartFrame.chart_title, 14)
|
||||
|
||||
mythicDungeonCharts.Frame.TitleText:SetText(mythicDungeonCharts.ChartTable.DungeonName and phrase .. mythicDungeonCharts.ChartTable.DungeonName or phrase)
|
||||
|
||||
@@ -890,8 +891,12 @@ mythicDungeonCharts.ClassColors = {
|
||||
["DEMONHUNTER1"] = { r = 0.64, g = 0.19, b = 0.79, colorStr = "ffa330c9" },
|
||||
["DEMONHUNTER2"] = { r = 0.44, g = 0.09, b = 0.59, colorStr = "ffa330c9" },
|
||||
["DEMONHUNTER3"] = { r = 0.24, g = 0.09, b = 0.39, colorStr = "ffa330c9" },
|
||||
|
||||
["EVOKER1"] = { r = 0.0, g = 1.00 , b = 0.59, colorStr = "FF205F45" },
|
||||
["EVOKER2"] = { r = 0.0, g = 0.8 , b = 0.39, colorStr = "FF126442" },
|
||||
["EVOKER3"] = { r = 0.0, g = 0.6 , b = 0.19, colorStr = "FF274B3C" },
|
||||
};
|
||||
|
||||
if (debugmode) then
|
||||
C_Timer.After(1, mythicDungeonCharts.ShowChart)
|
||||
--C_Timer.After(1, mythicDungeonCharts.ShowChart)
|
||||
end
|
||||
+5
-5
@@ -515,7 +515,7 @@ function SlashCmdList.DETAILS (msg, editbox)
|
||||
elseif (msg == "garbage") then
|
||||
local a = {}
|
||||
for i = 1, 10000 do
|
||||
a [i] = {math.random (50000)}
|
||||
a [i] = {math.random(50000)}
|
||||
end
|
||||
table.wipe(a)
|
||||
|
||||
@@ -1303,8 +1303,8 @@ function SlashCmdList.DETAILS (msg, editbox)
|
||||
a:SetScript("OnUpdate", function(self, deltaTime)
|
||||
elapsedTime = elapsedTime + deltaTime
|
||||
|
||||
--texture:SetSize(math.random (50, 300), math.random (50, 300))
|
||||
--local spec = allspecs [math.random (#allspecs)]
|
||||
--texture:SetSize(math.random(50, 300), math.random(50, 300))
|
||||
--local spec = allspecs [math.random(#allspecs)]
|
||||
texture:SetTexture([[Interface\AddOns\Details\images\options_window]])
|
||||
--texture:SetTexture([[Interface\Store\Store-Splash]])
|
||||
--texture:SetTexture([[Interface\AddOns\Details\images\options_window]])
|
||||
@@ -1428,7 +1428,7 @@ function SlashCmdList.DETAILS (msg, editbox)
|
||||
end
|
||||
|
||||
newCombat.is_trash = false
|
||||
_detalhes:Msg("done merging, segments: " .. segmentsAdded .. ", total time: " .. DetailsFramework:IntegerToTimer (totalTime))
|
||||
_detalhes:Msg("done merging, segments: " .. segmentsAdded .. ", total time: " .. DetailsFramework:IntegerToTimer(totalTime))
|
||||
|
||||
--[[ --mythic+ debug
|
||||
--tag the segment as mythic overall segment
|
||||
@@ -1760,7 +1760,7 @@ function Details:UpdateUserPanel (usersTable)
|
||||
if (not Details.UserPanel) then
|
||||
DetailsUserPanel = DetailsFramework:CreateSimplePanel(UIParent)
|
||||
DetailsUserPanel:SetSize(707, 505)
|
||||
DetailsUserPanel:SetTitle ("Details! Version Check")
|
||||
DetailsUserPanel:SetTitle("Details! Version Check")
|
||||
DetailsUserPanel.Data = {}
|
||||
DetailsUserPanel:ClearAllPoints()
|
||||
DetailsUserPanel:SetPoint("left", UIParent, "left", 10, 0)
|
||||
|
||||
+36
-36
@@ -5,12 +5,12 @@ local Details = _G.Details
|
||||
function Details:TestBarsUpdate()
|
||||
local current_combat = Details:GetCombat("current")
|
||||
for index, actor in current_combat[1]:ListActors() do
|
||||
actor.total = actor.total + (actor.total / 100 * math.random (1, 10))
|
||||
actor.total = actor.total - (actor.total / 100 * math.random (1, 10))
|
||||
actor.total = actor.total + (actor.total / 100 * math.random(1, 10))
|
||||
actor.total = actor.total - (actor.total / 100 * math.random(1, 10))
|
||||
end
|
||||
for index, actor in current_combat[2]:ListActors() do
|
||||
actor.total = actor.total + (actor.total / 100 * math.random (1, 10))
|
||||
actor.total = actor.total - (actor.total / 100 * math.random (1, 10))
|
||||
actor.total = actor.total + (actor.total / 100 * math.random(1, 10))
|
||||
actor.total = actor.total - (actor.total / 100 * math.random(1, 10))
|
||||
end
|
||||
current_combat[1].need_refresh = true
|
||||
current_combat[2].need_refresh = true
|
||||
@@ -181,7 +181,7 @@ function Details:CreateTestBars (alphabet, isArena)
|
||||
|
||||
for i = 1, 10 do
|
||||
|
||||
local who = actors_name [math.random (1, #actors_name)]
|
||||
local who = actors_name [math.random(1, #actors_name)]
|
||||
|
||||
local robot = current_combat[1]:PegarCombatente ("0x0000-0000-0000", who[1], 0x114, true)
|
||||
robot.grupo = true
|
||||
@@ -204,42 +204,42 @@ function Details:CreateTestBars (alphabet, isArena)
|
||||
robot:SetSpecId(who[3])
|
||||
elseif (robot.classe == "DEATHKNIGHT") then
|
||||
local specs = {250, 251, 252}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "DRUID") then
|
||||
local specs = {102, 103, 104, 105}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "HUNTER") then
|
||||
local specs = {253, 254, 255}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "MAGE") then
|
||||
local specs = {62, 63, 64}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "MONK") then
|
||||
local specs = {268, 269, 270}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "PALADIN") then
|
||||
local specs = {65, 66, 70}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "PRIEST") then
|
||||
local specs = {256, 257, 258}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "ROGUE") then
|
||||
local specs = {259, 260, 261}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "SHAMAN") then
|
||||
local specs = {262, 263, 264}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "WARLOCK") then
|
||||
local specs = {265, 266, 267}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "WARRIOR") then
|
||||
local specs = {71, 72, 73}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
end
|
||||
|
||||
robot.total = math.random (10000000, 60000000)
|
||||
robot.damage_taken = math.random (10000000, 60000000)
|
||||
robot.friendlyfire_total = math.random (10000000, 60000000)
|
||||
robot.total = math.random(10000000, 60000000)
|
||||
robot.damage_taken = math.random(10000000, 60000000)
|
||||
robot.friendlyfire_total = math.random(10000000, 60000000)
|
||||
|
||||
total_damage = total_damage + robot.total
|
||||
|
||||
@@ -249,7 +249,7 @@ function Details:CreateTestBars (alphabet, isArena)
|
||||
robot_death.classe = robot.classe
|
||||
local esta_morte = {{true, 96648, 100000, time(), 0, "Lady Holenna"}, {true, 96648, 100000, time()-52, 100000, "Lady Holenna"}, {true, 96648, 100000, time()-86, 200000, "Lady Holenna"}, {true, 96648, 100000, time()-101, 300000, "Lady Holenna"}, {false, 55296, 400000, time()-54, 400000, "King Djoffrey"}, {true, 14185, 0, time()-59, 400000, "Lady Holenna"}, {false, 87351, 400000, time()-154, 400000, "King Djoffrey"}, {false, 56236, 400000, time()-158, 400000, "King Djoffrey"} }
|
||||
local t = {esta_morte, time(), robot.nome, robot.classe, 400000, "52m 12s", ["dead"] = true}
|
||||
table.insert (current_combat.last_events_tables, #current_combat.last_events_tables+1, t)
|
||||
table.insert(current_combat.last_events_tables, #current_combat.last_events_tables+1, t)
|
||||
|
||||
elseif (robot.nome == "Mr. President") then
|
||||
rawset (Details.spellcache, 56488, {"Nuke", 56488, [[Interface\ICONS\inv_gizmo_supersappercharge]]})
|
||||
@@ -257,7 +257,7 @@ function Details:CreateTestBars (alphabet, isArena)
|
||||
robot.spells._ActorTable [56488].total = robot.total
|
||||
end
|
||||
|
||||
local who = actors_name [math.random (1, #actors_name)]
|
||||
local who = actors_name [math.random(1, #actors_name)]
|
||||
local robot = current_combat[2]:PegarCombatente ("0x0000-0000-0000", who[1], 0x114, true)
|
||||
robot.grupo = true
|
||||
robot.classe = who[2]
|
||||
@@ -266,43 +266,43 @@ function Details:CreateTestBars (alphabet, isArena)
|
||||
robot:SetSpecId(who[3])
|
||||
elseif (robot.classe == "DEATHKNIGHT") then
|
||||
local specs = {250, 251, 252}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "DRUID") then
|
||||
local specs = {102, 103, 104, 105}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "HUNTER") then
|
||||
local specs = {253, 254, 255}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "MAGE") then
|
||||
local specs = {62, 63, 64}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "MONK") then
|
||||
local specs = {268, 269, 270}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "PALADIN") then
|
||||
local specs = {65, 66, 70}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "PRIEST") then
|
||||
local specs = {256, 257, 258}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "ROGUE") then
|
||||
local specs = {259, 260, 261}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "SHAMAN") then
|
||||
local specs = {262, 263, 264}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "WARLOCK") then
|
||||
local specs = {265, 266, 267}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
elseif (robot.classe == "WARRIOR") then
|
||||
local specs = {71, 72, 73}
|
||||
robot:SetSpecId(specs [math.random (1, #specs)])
|
||||
robot:SetSpecId(specs [math.random(1, #specs)])
|
||||
end
|
||||
|
||||
robot.total = math.random (10000000, 60000000)
|
||||
robot.totalover = math.random (10000000, 60000000)
|
||||
robot.totalabsorb = math.random (10000000, 60000000)
|
||||
robot.healing_taken = math.random (10000000, 60000000)
|
||||
robot.total = math.random(10000000, 60000000)
|
||||
robot.totalover = math.random(10000000, 60000000)
|
||||
robot.totalabsorb = math.random(10000000, 60000000)
|
||||
robot.healing_taken = math.random(10000000, 60000000)
|
||||
|
||||
total_heal = total_heal + robot.total
|
||||
|
||||
|
||||
Reference in New Issue
Block a user