Unwanted mass rename of tinsert to table.insert

This commit is contained in:
Tercio Jose
2023-10-11 20:32:32 -03:00
parent 115ccf7d49
commit 0cca378d2b
32 changed files with 180 additions and 180 deletions
+32 -32
View File
@@ -98,7 +98,7 @@ Details.API_Description = {
--[=[
Details.SegmentInfo (segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "SegmentInfo",
desc = "Return a table containing information about the segment.",
parameters = {
@@ -139,7 +139,7 @@ end
--[=[
Details.SegmentElapsedTime (segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "SegmentElapsedTime",
desc = "Return the total elapsed time of a segment.",
parameters = {
@@ -174,7 +174,7 @@ end
--[=[
Details.SegmentDamagingUnits (segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "SegmentDamagingUnits",
desc = "Return a numeric (ipairs) table with name of units that inflicted damage on the segment.",
parameters = {
@@ -253,7 +253,7 @@ end
--[=[
Details.SegmentHealingUnits (segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "SegmentHealingUnits",
desc = "Return a numeric (ipairs) table with name of units that inflicted healing on the segment.",
parameters = {
@@ -332,7 +332,7 @@ end
Details.SegmentTotalDamage (segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "SegmentTotalDamage",
desc = "Query the total damage done in the segment and only by players in the group.",
parameters = {
@@ -369,7 +369,7 @@ end
Details.SegmentTotalHealing (segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "SegmentTotalHealing",
desc = "Query the total healing done in the segment and only by players in the group.",
parameters = {
@@ -405,7 +405,7 @@ end
Details.SegmentPhases (segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "SegmentPhases",
desc = "Return a numeric (ipairs) table with phase numbers available on the segment.",
parameters = {
@@ -452,7 +452,7 @@ end
Details.UnitInfo (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitInfo",
desc = "Query basic information about the unit, like class and spec.",
parameters = {
@@ -537,7 +537,7 @@ end
Details.UnitTexture (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitTexture",
desc = "Query the icon and texcoords for the class and spec icon.",
parameters = {
@@ -616,7 +616,7 @@ end
--[=[
Details.UnitDamage (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamage",
desc = "Query the damage of a unit.",
parameters = {
@@ -665,7 +665,7 @@ end
--[=[
Details.UnitDamageByPhase (unitId, phaseNumber, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamageByPhase",
desc = "Query the damage of a unit but only for a specific phase of a boss encounter.",
parameters = {
@@ -724,7 +724,7 @@ end
--[=[
Details.UnitDamageInfo (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamageInfo",
desc = "Return a table with damage information.",
parameters = {
@@ -791,7 +791,7 @@ end
--[=[
Details.UnitDamageBySpell (unitId, spellId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamageBySpell",
desc = "Query the total damage done of a spell casted by the unit.",
parameters = {
@@ -861,7 +861,7 @@ end
--[=[
Details.UnitDamageSpellInfo (unitId, spellId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamageSpellInfo",
desc = "Return a table with the spell damage information.",
parameters = {
@@ -964,7 +964,7 @@ end
--[=[
Details.UnitDamageSpellOnUnit (unitId, spellId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamageSpellOnUnit",
desc = "Query the damage done of a spell into a specific target.",
parameters = {
@@ -1039,7 +1039,7 @@ end
--[=[
Details.UnitDamageTaken (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamageTaken",
desc = "Query the unit damage taken.",
parameters = {
@@ -1087,7 +1087,7 @@ end
--[=[
Details.UnitDamageOnUnit (unitId, targetUnitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamageOnUnit",
desc = "Query the unit damage done on another unit.",
parameters = {
@@ -1142,7 +1142,7 @@ end
--[=[
Details.UnitDamageTakenFromSpell (unitId, spellId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamageTakenFromSpell",
desc = "Query the unit damage taken from a spell.",
parameters = {
@@ -1218,7 +1218,7 @@ end
--[=[
Details.UnitDamagingSpells (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamagingSpells",
desc = "Return a numeric (ipairs) table with spells IDs used by the unit to apply damage.",
parameters = {
@@ -1272,7 +1272,7 @@ end
--[=[
Details.UnitDamagingTargets (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamagingTargets",
desc = "Return a numeric (ipairs) table with names of targets the unit inflicted damage. You may query the amount of damage with Details.UnitDamageOnUnit( unitId, targetName ).",
parameters = {
@@ -1326,7 +1326,7 @@ end
--[=[
Details.UnitDamagingPets (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitDamagingPets",
desc = "Return a numeric (ipairs) table with all pet names the unit used to apply damage. Individual pet information can be queried with Details.UnitDamage( petName ).",
parameters = {
@@ -1384,7 +1384,7 @@ end
--[=[
Details.UnitHealing (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealing",
desc = "Query the healing done of a unit.",
parameters = {
@@ -1433,7 +1433,7 @@ end
--[=[
Details.UnitHealingInfo (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingInfo",
desc = "Return a table with healing information.",
parameters = {
@@ -1505,7 +1505,7 @@ end
--[=[
Details.UnitHealingBySpell (unitId, spellId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingBySpell",
desc = "Query the total healing done of a spell casted by the unit.",
parameters = {
@@ -1577,7 +1577,7 @@ end
--[=[
Details.UnitHealingSpellInfo (unitId, spellId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingSpellInfo",
desc = "Return a table with the spell healing information.",
parameters = {
@@ -1681,7 +1681,7 @@ end
--[=[
Details.UnitHealingSpellOnUnit (unitId, spellId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingSpellOnUnit",
desc = "Query the healing done of a spell into a specific target.",
parameters = {
@@ -1758,7 +1758,7 @@ end
--[=[
Details.UnitHealingTaken (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingTaken",
desc = "Query the unit healing taken.",
parameters = {
@@ -1808,7 +1808,7 @@ end
--[=[
Details.UnitHealingOnUnit (unitId, targetUnitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingOnUnit",
desc = "Query the unit healing done on another unit.",
parameters = {
@@ -1866,7 +1866,7 @@ end
--[=[
Details.UnitHealingTakenFromSpell (unitId, spellId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingTakenFromSpell",
desc = "Query the unit healing taken from a spell.",
parameters = {
@@ -1943,7 +1943,7 @@ end
--[=[
Details.UnitHealingSpells (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingSpells",
desc = "Return a numeric (ipairs) table with spells IDs used by the unit to apply healing.",
parameters = {
@@ -1998,7 +1998,7 @@ end
--[=[
Details.UnitHealingTargets (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingTargets",
desc = "Return a numeric (ipairs) table with names of targets the unit applied heal. You may query the amount of damage with Details.UnitHealingOnUnit( unitId, targetName ).",
parameters = {
@@ -2053,7 +2053,7 @@ end
--[=[
Details.UnitHealingPets (unitId, segment)
--=]=]
tinsert(Details.API_Description.namespaces[1].api, {
table.insert(Details.API_Description.namespaces[1].api, {
name = "UnitHealingPets",
desc = "Return a numeric (ipairs) table with all pet names the unit used to apply healing. Individual pet information can be queried with Details.UnitHealing( petName ).",
parameters = {
+2 -2
View File
@@ -49,7 +49,7 @@ function Details:BossModsLink()
local currentCombat = Details:GetCurrentCombat()
local combatTime = currentCombat:GetCombatTime()
if (combatTime > 5) then
tinsert(currentCombat.PhaseData, {phase, combatTime})
table.insert(currentCombat.PhaseData, {phase, combatTime})
end
Details:SendEvent("COMBAT_ENCOUNTER_PHASE_CHANGED", nil, phase)
end
@@ -79,7 +79,7 @@ function Details:BossModsLink()
local currentCombat = Details:GetCurrentCombat()
local combatTime = currentCombat:GetCombatTime()
if (combatTime > 5) then
tinsert(currentCombat.PhaseData, {phase, combatTime})
table.insert(currentCombat.PhaseData, {phase, combatTime})
end
Details:SendEvent("COMBAT_ENCOUNTER_PHASE_CHANGED", nil, phase)
+1 -1
View File
@@ -435,7 +435,7 @@ function Details.Coach.Server.AddPlayerDeath(playerName, data)
local utilityActorObject = utilityContainer:GetOrCreateActor(playerGUID, playerName, playerFlag, true)
if (utilityActorObject) then
tinsert(currentCombat.last_events_tables, deathLog)
table.insert(currentCombat.last_events_tables, deathLog)
--tag the misc container as need refresh
currentCombat[DETAILS_ATTRIBUTE_MISC].need_refresh = true
end
+5 -5
View File
@@ -201,7 +201,7 @@ function Details.BuildDeathTableFromRecap (recapID)
not spellId and {spellId, spellName, texture},
}
tinsert(ArtificialDeathLog[1], ev)
table.insert(ArtificialDeathLog[1], ev)
ArtificialDeathLog.n = ArtificialDeathLog.n + 1
end
@@ -284,7 +284,7 @@ function Details.OpenDetailsDeathRecap (segment, RecapID, fromChat)
segmentButton:SetScript("OnClick", function()
OpenDetailsDeathRecapAtSegment (i)
end)
tinsert(Details.DeathRecap.Segments, i, segmentButton)
table.insert(Details.DeathRecap.Segments, i, segmentButton)
end
end
@@ -393,7 +393,7 @@ function Details.OpenDetailsDeathRecap (segment, RecapID, fromChat)
local BiggestDamageHits = {}
for i = #events, 1, -1 do
tinsert(BiggestDamageHits, events [i])
table.insert(BiggestDamageHits, events [i])
end
table.sort (BiggestDamageHits, function(t1, t2)
return t1[3] > t2[3]
@@ -423,7 +423,7 @@ function Details.OpenDetailsDeathRecap (segment, RecapID, fromChat)
end
end
if (not haveHitKill) then
tinsert(BiggestDamageHits, 1, hitKill)
table.insert(BiggestDamageHits, 1, hitKill)
end
end
@@ -441,7 +441,7 @@ function Details.OpenDetailsDeathRecap (segment, RecapID, fromChat)
end
end
if (not alreadyHave) then
tinsert(BiggestDamageHits, event)
table.insert(BiggestDamageHits, event)
if (#BiggestDamageHits == 10) then
break
end
+11 -11
View File
@@ -107,7 +107,7 @@ local addPlayerDamage = function(unitName, unitRealm)
local eDps = damageDone / currentCombat:GetCombatTime()
--add the damage to the chart table
tinsert(playerData.ChartData, eDps)
table.insert(playerData.ChartData, eDps)
--mythicDungeonCharts:Debug("Added dps for " , CLName, ":", eDps)
if (eDps > playerData.ChartData.max_value) then
@@ -119,7 +119,7 @@ local addPlayerDamage = function(unitName, unitRealm)
playerData.LastDamage = damageDone
--add the damage to the chart table
tinsert(playerData.ChartData, damageDiff)
table.insert(playerData.ChartData, damageDiff)
--mythicDungeonCharts:Debug("Added damage for " , CLName, ":", damageDiff)
if (damageDiff > playerData.ChartData.max_value) then
@@ -128,7 +128,7 @@ local addPlayerDamage = function(unitName, unitRealm)
end
else
--player still didn't made anything on this combat, so just add zero
tinsert(playerData.ChartData, 0)
table.insert(playerData.ChartData, 0)
end
end
end
@@ -170,7 +170,7 @@ function mythicDungeonCharts:OnBossDefeated()
if (mythicDungeonCharts.ChartTable and mythicDungeonCharts.ChartTable.Running and bossInfo) then
local copiedBossInfo = Details:GetFramework().table.copy({}, bossInfo)
tinsert(mythicDungeonCharts.ChartTable.BossDefeated, {time() - mythicDungeonCharts.ChartTable.StartTime, copiedBossInfo, currentCombat:GetCombatTime()})
table.insert(mythicDungeonCharts.ChartTable.BossDefeated, {time() - mythicDungeonCharts.ChartTable.StartTime, copiedBossInfo, currentCombat:GetCombatTime()})
mythicDungeonCharts:Debug("Boss defeated, time saved", currentCombat:GetCombatTime())
else
if (mythicDungeonCharts.ChartTable and mythicDungeonCharts.ChartTable.EndTime ~= -1) then
@@ -180,7 +180,7 @@ function mythicDungeonCharts:OnBossDefeated()
if (bossInfo) then
local copiedBossInfo = Details:GetFramework().table.copy({}, bossInfo)
tinsert(mythicDungeonCharts.ChartTable.BossDefeated, {time() - mythicDungeonCharts.ChartTable.StartTime, copiedBossInfo, currentCombat:GetCombatTime()})
table.insert(mythicDungeonCharts.ChartTable.BossDefeated, {time() - mythicDungeonCharts.ChartTable.StartTime, copiedBossInfo, currentCombat:GetCombatTime()})
mythicDungeonCharts:Debug("Boss defeated, time saved, but used time aproximation:", mythicDungeonCharts.ChartTable.EndTime + 2, now, currentCombat:GetCombatTime())
end
end
@@ -382,7 +382,7 @@ function mythicDungeonCharts.ShowChart()
--titleLabelMinimized:SetPoint("top", titlebarMinimized , "top", 0, -5)
dungeonChartFrame.TitleTextMinimized = titleLabelMinimized
tinsert(UISpecialFrames, "DetailsMythicDungeonChartFrame")
table.insert(UISpecialFrames, "DetailsMythicDungeonChartFrame")
--register to libwindow
local LibWindow = LibStub("LibWindow-1.1")
@@ -651,7 +651,7 @@ function mythicDungeonCharts.ShowChart()
chartData.max_value = maxValue
mythicDungeonCharts.Frame.ChartFrame:AddLine(chartData, lineColor, lineName, combatTime, texture, "SMA")
tinsert(mythicDungeonCharts.PlayerGraphIndex, playerName)
table.insert(mythicDungeonCharts.PlayerGraphIndex, playerName)
end
mythicDungeonCharts.Frame.ChartFrame:RefreshBossTimeline(mythicDungeonCharts.ChartTable.BossDefeated, mythicDungeonCharts.ChartTable.ElapsedTime)
@@ -661,8 +661,8 @@ function mythicDungeonCharts.ShowChart()
for i, bossTable in ipairs(mythicDungeonCharts.ChartTable.BossDefeated) do
local combatTime = bossTable [3] or math.random(10, 30)
tinsert(bossTimeTable, bossTable[1])
tinsert(bossTimeTable, bossTable[1] - combatTime)
table.insert(bossTimeTable, bossTable[1])
table.insert(bossTimeTable, bossTable[1] - combatTime)
end
mythicDungeonCharts.Frame.ChartFrame:AddOverlay(bossTimeTable, {1, 1, 1, 0.05}, "Show Boss", "")
@@ -757,7 +757,7 @@ function mythicDungeonCharts:CustomDrawLine (C, sx, sy, ex, ey, w, color, layer,
T:SetTexture(TextureDirectory.."line")
end
tinsert(C.GraphLib_Lines_Used, T)
table.insert(C.GraphLib_Lines_Used, T)
T:SetDrawLayer(layer or "ARTWORK")
@@ -832,7 +832,7 @@ function mythicDungeonCharts:CustomDrawLine (C, sx, sy, ex, ey, w, color, layer,
pixelFrame:SetPoint("BOTTOMLEFT", C, relPoint, cx - Bwid, cy - Bhgt)
pixelFrame:SetPoint("TOPRIGHT", C, relPoint, cx + Bwid, cy + Bhgt)
tinsert(mythicDungeonCharts.Frame.ChartFrame.FrameInUse, pixelFrame)
table.insert(mythicDungeonCharts.Frame.ChartFrame.FrameInUse, pixelFrame)
pixelFrame.PlayerName = playerName
pixelFrame.Height = ey
+3 -3
View File
@@ -29,7 +29,7 @@ end
function Details222.MythicPlus.LogStep(log)
local today = date("%d/%m/%y %H:%M:%S")
tinsert(Details.mythic_plus_log, 1, today .. "|" .. log)
table.insert(Details.mythic_plus_log, 1, today .. "|" .. log)
tremove(Details.mythic_plus_log, 50)
end
@@ -439,7 +439,7 @@ function DetailsMythicPlusFrame.BossDefeated(this_is_end_end, encounterID, encou
local mythicDungeonInfo = pastCombat:GetMythicDungeonInfo() -- .is_mythic_dungeon only boss, trash overall and run overall have it
if (not mythicDungeonInfo or not mythicDungeonInfo.TrashOverallSegment) then
--trash segment found, schedule to merge
tinsert(segmentsToMerge, pastCombat)
table.insert(segmentsToMerge, pastCombat)
end
end
end
@@ -545,7 +545,7 @@ function DetailsMythicPlusFrame.MythicDungeonFinished (fromZoneLeft)
end
--merge this segment
tinsert(segmentsToMerge, pastCombat)
table.insert(segmentsToMerge, pastCombat)
if (DetailsMythicPlusFrame.DevelopmentDebug) then
print("MythicDungeonFinished() > found after last boss combat")
+1 -1
View File
@@ -13,7 +13,7 @@ local strsplit = _G.strsplit
local floor = _G.floor
local tremove = _G.tremove
local UnitName = _G.UnitName
local tinsert = _G.tinsert
local tinsert = tinsert
local IsInRaid = _G.IsInRaid
local GetNumGroupMembers = _G.GetNumGroupMembers
local GetRaidRosterInfo = _G.GetRaidRosterInfo
+2 -2
View File
@@ -39,8 +39,8 @@ plater_integration_frame.OnTickFrameFunc = function(self, deltaTime)
damageTable.CurrentDamageFromPlayer = damageTable.CurrentDamageFromPlayer + damageOnThisUpdateFromPlayer
--add to the buffer the damage added
tinsert(damageTable.RealTimeBuffer, 1, damageOnThisUpdate)
tinsert(damageTable.RealTimeBufferFromPlayer, 1, damageOnThisUpdateFromPlayer)
table.insert(damageTable.RealTimeBuffer, 1, damageOnThisUpdate)
table.insert(damageTable.RealTimeBufferFromPlayer, 1, damageOnThisUpdateFromPlayer)
--remove the damage from the buffer
local damageRemoved = tremove(damageTable.RealTimeBuffer, CONST_BUFFER_SIZE + 1)
+1 -1
View File
@@ -3,7 +3,7 @@
local C_Timer = _G.C_Timer
local DetailsFramework = _G.DetailsFramework
local tinsert = _G.tinsert
local tinsert = tinsert
local addonName, Details222 = ...
function Details.InstallRaidInfo()
+2 -2
View File
@@ -30,7 +30,7 @@
desc = ""
end
tinsert(_detalhes.row_animation_pool, {name = name, desc = desc, func = func, options = options})
table.insert(_detalhes.row_animation_pool, {name = name, desc = desc, func = func, options = options})
return true
end
@@ -48,7 +48,7 @@
function _detalhes:GetRowAnimationList()
local t = {}
for key, value in ipairs(_detalhes.row_animation_pool) do
tinsert(t, value.name)
table.insert(t, value.name)
end
return t
end
+1 -1
View File
@@ -11,7 +11,7 @@ function Details:WipeConfig()
wipeButton:SetScript("OnClick", function() Details.wipe_full_config = true; ReloadUI(); end)
wipeButton:SetPoint("center", UIParent, "center", 0, 0)
tinsert(UISpecialFrames, "DetailsResetConfigButton")
table.insert(UISpecialFrames, "DetailsResetConfigButton")
DetailsFramework:ApplyStandardBackdrop(wipeButton)
+12 -12
View File
@@ -697,7 +697,7 @@ function SlashCmdList.DETAILS (msg, editbox)
Details.id_frame:SetPoint("center", UIParent, "center")
Details.id_frame:SetBackdrop(backdrop)
tinsert(UISpecialFrames, "DetailsID")
table.insert(UISpecialFrames, "DetailsID")
Details.id_frame.texto = CreateFrame("editbox", nil, Details.id_frame, "BackdropTemplate")
Details.id_frame.texto:SetPoint("topleft", Details.id_frame, "topleft")
@@ -753,7 +753,7 @@ function SlashCmdList.DETAILS (msg, editbox)
Details.id_frame:SetPoint("center", UIParent, "center")
Details.id_frame:SetBackdrop(backdrop)
tinsert(UISpecialFrames, "DetailsID")
table.insert(UISpecialFrames, "DetailsID")
Details.id_frame.texto = CreateFrame("editbox", nil, Details.id_frame, "BackdropTemplate")
Details.id_frame.texto:SetPoint("topleft", Details.id_frame, "topleft")
@@ -1077,7 +1077,7 @@ function SlashCmdList.DETAILS (msg, editbox)
for o = 1, DetailsFramework.EncounterJournal.EJ_GetNumLoot() do
local name, icon, slot, armorType, itemID, link, encounterID = DetailsFramework.EncounterJournal.EJ_GetLootInfoByIndex (o)
r[slot] = r[slot] or {}
tinsert(r[slot], {itemID, encounterID})
table.insert(r[slot], {itemID, encounterID})
total = total + 1
end
end
@@ -1183,7 +1183,7 @@ function SlashCmdList.DETAILS (msg, editbox)
local allspecs = {}
for a, b in pairs(Details.class_specs_coords) do
tinsert(allspecs, a)
table.insert(allspecs, a)
end
for i = 1, 10 do
@@ -1284,7 +1284,7 @@ function SlashCmdList.DETAILS (msg, editbox)
for o = 1, 3 do
local talentID, name, texture, selected, available = GetTalentInfo (i, o, 1)
if (selected) then
tinsert(talents, talentID)
table.insert(talents, talentID)
break
end
end
@@ -1401,18 +1401,18 @@ function SlashCmdList.DETAILS (msg, editbox)
local sectionInfo = C_EncounterJournal.GetSectionInfo (ID)
if (sectionInfo) then
tinsert(result, sectionInfo)
table.insert(result, sectionInfo)
if (sectionInfo.spellID and type(sectionInfo.spellID) == "number" and sectionInfo.spellID ~= 0) then
tinsert(spellIDs, sectionInfo.spellID)
table.insert(spellIDs, sectionInfo.spellID)
end
local nextChild, nextSibling = sectionInfo.firstChildSectionID, sectionInfo.siblingSectionID
if (nextSibling) then
tinsert(nextID, nextSibling)
table.insert(nextID, nextSibling)
end
if (nextChild) then
tinsert(nextID, nextChild)
table.insert(nextID, nextChild)
end
else
break
@@ -1677,7 +1677,7 @@ function Details.RefreshUserList (ignoreIfHidden)
end
if (not foundPlayer) then
tinsert(newList, {playerName, "--", "--"})
table.insert(newList, {playerName, "--", "--"})
end
end
end
@@ -1831,7 +1831,7 @@ function Details:CreateListPanel()
Details.ListPanel:SetPoint("center", UIParent, "center", 300, 0)
Details.ListPanel.barras = {}
tinsert(UISpecialFrames, "DetailsActorsFrame")
table.insert(UISpecialFrames, "DetailsActorsFrame")
Details.ListPanel.close_with_right = true
local container_barras_window = CreateFrame("ScrollFrame", "Details_ActorsBarrasScroll", Details.ListPanel.widget)
@@ -2345,7 +2345,7 @@ if (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE) then
table.sort(playersInTheParty, function(t1, t2) return t1[11] > t2[11] end)
for i = 1, #playersInTheParty do
local keystoneTable = playersInTheParty[i]
tinsert(newData, 1, keystoneTable)
table.insert(newData, 1, keystoneTable)
end
end
end
+1 -1
View File
@@ -9,7 +9,7 @@ do
local setmetatable = setmetatable
local GetSpellInfo = GetSpellInfo
local unpack = unpack
local tinsert = tinsert
local tinsert = table.insert
local tremove = tremove
local C_Timer = C_Timer