Disabled Bindings.xml to avoid taints in 10.0

This commit is contained in:
Tercio Jose
2022-10-20 09:47:48 -03:00
parent 33e6a45f8d
commit a9e858d864
76 changed files with 1200 additions and 1411 deletions
+3 -3
View File
@@ -137,9 +137,9 @@ function Details:CreateCallbackListeners()
wipe (current_table_bigwigs)
end
end)
event_frame:RegisterEvent ("ENCOUNTER_START")
event_frame:RegisterEvent ("ENCOUNTER_END")
event_frame:RegisterEvent ("PLAYER_REGEN_ENABLED")
event_frame:RegisterEvent("ENCOUNTER_START")
event_frame:RegisterEvent("ENCOUNTER_END")
event_frame:RegisterEvent("PLAYER_REGEN_ENABLED")
if (_G.DBM) then
local dbm_timer_callback = function(bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
+2 -2
View File
@@ -10,8 +10,8 @@ local detailsOnDeathMenu = CreateFrame("frame", "DetailsOnDeathMenu", UIParent,
detailsOnDeathMenu:SetHeight(30)
detailsOnDeathMenu.Debug = false
detailsOnDeathMenu:RegisterEvent ("PLAYER_REGEN_ENABLED")
detailsOnDeathMenu:RegisterEvent ("ENCOUNTER_END")
detailsOnDeathMenu:RegisterEvent("PLAYER_REGEN_ENABLED")
detailsOnDeathMenu:RegisterEvent("ENCOUNTER_END")
DetailsFramework:ApplyStandardBackdrop(detailsOnDeathMenu)
detailsOnDeathMenu:SetAlpha(0.75)
+3 -3
View File
@@ -265,9 +265,9 @@ function mythicDungeonCharts:OnEndMythicDungeon()
end
end
mythicDungeonCharts:RegisterEvent ("COMBAT_MYTHICDUNGEON_START", "OnStartMythicDungeon")
mythicDungeonCharts:RegisterEvent ("COMBAT_MYTHICDUNGEON_END", "OnEndMythicDungeon")
mythicDungeonCharts:RegisterEvent ("COMBAT_BOSS_DEFEATED", "OnBossDefeated")
mythicDungeonCharts:RegisterEvent("COMBAT_MYTHICDUNGEON_START", "OnStartMythicDungeon")
mythicDungeonCharts:RegisterEvent("COMBAT_MYTHICDUNGEON_END", "OnEndMythicDungeon")
mythicDungeonCharts:RegisterEvent("COMBAT_BOSS_DEFEATED", "OnBossDefeated")
-- /run _G.DetailsMythicDungeonChartHandler.ShowChart(); DetailsMythicDungeonChartFrame.ShowChartFrame()
-- /run _G.DetailsMythicDungeonChartHandler.ShowReadyPanel()
+3 -3
View File
@@ -126,7 +126,7 @@ local common_events = {
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--register a event
function _detalhes:RegisterEvent (object, event, func)
function _detalhes:RegisterEvent(object, event, func)
if (not _detalhes.RegistredEvents [event]) then
if (object.Msg) then
@@ -391,8 +391,8 @@ local common_events = {
local listener_meta = setmetatable({}, _detalhes)
listener_meta.__index = listener_meta
function listener_meta:RegisterEvent (event, func)
return _detalhes:RegisterEvent (self, event, func)
function listener_meta:RegisterEvent(event, func)
return _detalhes:RegisterEvent(self, event, func)
end
function listener_meta:UnregisterEvent (event)
return _detalhes:UnregisterEvent (self, event)
+11 -11
View File
@@ -19,11 +19,11 @@ DetailsMythicPlusFrame.DevelopmentDebug = false
--disabling the mythic+ feature if the user is playing in wow classic
if (not DF.IsTimewalkWoW()) then
DetailsMythicPlusFrame:RegisterEvent ("CHALLENGE_MODE_START")
DetailsMythicPlusFrame:RegisterEvent ("CHALLENGE_MODE_COMPLETED")
DetailsMythicPlusFrame:RegisterEvent ("ZONE_CHANGED_NEW_AREA")
DetailsMythicPlusFrame:RegisterEvent ("ENCOUNTER_END")
DetailsMythicPlusFrame:RegisterEvent ("START_TIMER")
DetailsMythicPlusFrame:RegisterEvent("CHALLENGE_MODE_START")
DetailsMythicPlusFrame:RegisterEvent("CHALLENGE_MODE_COMPLETED")
DetailsMythicPlusFrame:RegisterEvent("ZONE_CHANGED_NEW_AREA")
DetailsMythicPlusFrame:RegisterEvent("ENCOUNTER_END")
DetailsMythicPlusFrame:RegisterEvent("START_TIMER")
end
--[[
@@ -713,12 +713,12 @@ end
--make an event listener to sync combat data
DetailsMythicPlusFrame.EventListener = Details:CreateEventListener()
DetailsMythicPlusFrame.EventListener:RegisterEvent ("COMBAT_ENCOUNTER_START")
DetailsMythicPlusFrame.EventListener:RegisterEvent ("COMBAT_ENCOUNTER_END")
DetailsMythicPlusFrame.EventListener:RegisterEvent ("COMBAT_PLAYER_ENTER")
DetailsMythicPlusFrame.EventListener:RegisterEvent ("COMBAT_PLAYER_LEAVE")
DetailsMythicPlusFrame.EventListener:RegisterEvent ("COMBAT_MYTHICDUNGEON_START")
DetailsMythicPlusFrame.EventListener:RegisterEvent ("COMBAT_MYTHICDUNGEON_END")
DetailsMythicPlusFrame.EventListener:RegisterEvent("COMBAT_ENCOUNTER_START")
DetailsMythicPlusFrame.EventListener:RegisterEvent("COMBAT_ENCOUNTER_END")
DetailsMythicPlusFrame.EventListener:RegisterEvent("COMBAT_PLAYER_ENTER")
DetailsMythicPlusFrame.EventListener:RegisterEvent("COMBAT_PLAYER_LEAVE")
DetailsMythicPlusFrame.EventListener:RegisterEvent("COMBAT_MYTHICDUNGEON_START")
DetailsMythicPlusFrame.EventListener:RegisterEvent("COMBAT_MYTHICDUNGEON_END")
function DetailsMythicPlusFrame.EventListener.OnDetailsEvent(contextObject, event, ...)
--these events triggers within Details control functions, they run exactly after details! creates or close a segment
+1 -1
View File
@@ -117,7 +117,7 @@ function Details:RefreshPlaterIntegration()
wipe (plater_integration_frame.DamageTaken)
--read cleu events
plater_integration_frame:RegisterEvent ("COMBAT_LOG_EVENT_UNFILTERED")
plater_integration_frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
--start the real time dps updater
plater_integration_frame.OnTickFrame.NextUpdate = CONST_REALTIME_UPDATE_TIME
+2 -2
View File
@@ -126,9 +126,9 @@ function _detalhes:SetProfileCProp (name, cprop, value)
if (profile) then
if (type(value) == "table") then
rawset (profile, cprop, Details.CopyTable(value))
rawset(profile, cprop, Details.CopyTable(value))
else
rawset (profile, cprop, value)
rawset(profile, cprop, value)
end
else
return
+2 -2
View File
@@ -473,7 +473,7 @@ local _
["textL_custom_text"] = "{data1}. {data3}{data2}",
["font_size"] = 16,
["height"] = 21,
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_skyline",
["texture_file"] = "Interface\\AddOns\\Details\\images\\bar_hyanda",
["icon_file"] = "Interface\\AddOns\\Details\\images\\classes_small",
["textR_bracket"] = "(",
["textR_enable_custom_text"] = false,
@@ -484,7 +484,7 @@ local _
},
["textL_show_number"] = true,
["textR_custom_text"] = "{data1} ({data2}, {data3}%)",
["texture"] = "Skyline",
["texture"] = "Details Hyanda",
["use_spec_icons"] = true,
["textR_class_colors"] = false,
["textL_class_colors"] = false,
+3 -3
View File
@@ -233,7 +233,7 @@ function SlashCmdList.DETAILS (msg, editbox)
}
for i = 1, window1.baseframe:GetNumPoints() do
state ["Point" .. i] = {window1.baseframe:GetPoint (i)}
state ["Point" .. i] = {window1.baseframe:GetPoint(i)}
end
local parent = window1.baseframe:GetParent()
@@ -733,7 +733,7 @@ function SlashCmdList.DETAILS (msg, editbox)
local barra = instancia.barras [whichRowLine]
for i = 1, barra:GetNumPoints() do
local point, relativeTo, relativePoint, xOfs, yOfs = barra:GetPoint (i)
local point, relativeTo, relativePoint, xOfs, yOfs = barra:GetPoint(i)
print(point, relativeTo, relativePoint, xOfs, yOfs)
end
@@ -1928,7 +1928,7 @@ function _detalhes:CreateListPanel()
container_barras_window:SetWidth(460)
container_barras_window:SetHeight(550)
container_barras_window:SetScrollChild (container_barras)
container_barras_window:SetScrollChild(container_barras)
container_barras_window:SetPoint("TOPLEFT", _detalhes.ListPanel.widget, "TOPLEFT", 21, -10)
_detalhes.gump:NewScrollBar (container_barras_window, container_barras, -10, -17)
+15 -15
View File
@@ -8,9 +8,9 @@ do
local _detalhes = _G._detalhes
local Loc = LibStub("AceLocale-3.0"):GetLocale ( "Details" )
local _
local _rawget = rawget
local _rawset = rawset
local _setmetatable = setmetatable
local rawget = rawget
local rawset = rawset
local setmetatable = setmetatable
local _GetSpellInfo = GetSpellInfo
local _unpack = unpack
@@ -61,9 +61,9 @@ do
--reset spell cache
function _detalhes:ClearSpellCache()
_detalhes.spellcache = _setmetatable({},
_detalhes.spellcache = setmetatable({},
{__index = function(tabela, valor)
local esta_magia = _rawget (tabela, valor)
local esta_magia = rawget (tabela, valor)
if (esta_magia) then
return esta_magia
end
@@ -85,19 +85,19 @@ do
end})
--default overwrites
--_rawset (_detalhes.spellcache, 1, {Loc ["STRING_MELEE"], 1, "Interface\\AddOns\\Details\\images\\melee.tga"})
--_rawset (_detalhes.spellcache, 2, {Loc ["STRING_AUTOSHOT"], 1, "Interface\\AddOns\\Details\\images\\autoshot.tga"})
--rawset (_detalhes.spellcache, 1, {Loc ["STRING_MELEE"], 1, "Interface\\AddOns\\Details\\images\\melee.tga"})
--rawset (_detalhes.spellcache, 2, {Loc ["STRING_AUTOSHOT"], 1, "Interface\\AddOns\\Details\\images\\autoshot.tga"})
--built-in overwrites
for spellId, spellTable in pairs(_detalhes.SpellOverwrite) do
local name, _, icon = _GetSpellInfo(spellId)
_rawset (_detalhes.spellcache, spellId, {spellTable.name or name, 1, spellTable.icon or icon})
rawset (_detalhes.spellcache, spellId, {spellTable.name or name, 1, spellTable.icon or icon})
end
--user overwrites
-- [1] spellid [2] spellname [3] spellicon
for index, spellTable in ipairs(_detalhes.savedCustomSpells) do
_rawset (_detalhes.spellcache, spellTable [1], {spellTable [2], 1, spellTable [3]})
rawset (_detalhes.spellcache, spellTable [1], {spellTable [2], 1, spellTable [3]})
end
end
@@ -194,7 +194,7 @@ do
local t = _detalhes.savedCustomSpells[index]
if (t) then
t [2], t [3] = name or t [2], icon or t [3]
return _rawset (_detalhes.spellcache, t [1], {t [2], 1, t [3]})
return rawset (_detalhes.spellcache, t [1], {t [2], 1, t [3]})
else
return false
end
@@ -218,7 +218,7 @@ do
icon = [[Interface\InventoryItems\WoWUnknownItem01]]
end
_rawset (_detalhes.spellcache, spellid, {name, 1, icon})
rawset (_detalhes.spellcache, spellid, {name, 1, icon})
t[2] = name
t[3] = icon
@@ -267,7 +267,7 @@ do
if (not is_overwrite) then
tinsert(_detalhes.savedCustomSpells, {spellid, name, icon})
end
return _rawset (_detalhes.spellcache, spellid, {name, 1, icon})
return rawset (_detalhes.spellcache, spellid, {name, 1, icon})
end
function _detalhes:UserCustomSpellRemove (index)
@@ -276,7 +276,7 @@ do
local spellid = t [1]
local name, _, icon = _GetSpellInfo(spellid)
if (name) then
_rawset (_detalhes.spellcache, spellid, {name, 1, icon})
rawset (_detalhes.spellcache, spellid, {name, 1, icon})
end
return tremove(_detalhes.savedCustomSpells, index)
end
@@ -294,9 +294,9 @@ do
local spellName, rank, spellIcon = _GetSpellInfo(spellid)
if (spellName) then
_rawset (_detalhes.spellcache, spellid, {spellName .. Loc ["STRING_DOT"], rank, spellIcon})
rawset (_detalhes.spellcache, spellid, {spellName .. Loc ["STRING_DOT"], rank, spellIcon})
else
_rawset (_detalhes.spellcache, spellid, {"Unknown DoT Spell? " .. Loc ["STRING_DOT"], rank, [[Interface\InventoryItems\WoWUnknownItem01]]})
rawset (_detalhes.spellcache, spellid, {"Unknown DoT Spell? " .. Loc ["STRING_DOT"], rank, [[Interface\InventoryItems\WoWUnknownItem01]]})
end
end
+1 -1
View File
@@ -252,7 +252,7 @@ function Details:CreateTestBars (alphabet, isArena)
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]]})
rawset(Details.spellcache, 56488, {"Nuke", 56488, [[Interface\ICONS\inv_gizmo_supersappercharge]]})
robot.spells:PegaHabilidade (56488, true, "SPELL_DAMAGE")
robot.spells._ActorTable [56488].total = robot.total
end