fix broken stuff
This commit is contained in:
@@ -1273,17 +1273,6 @@ do
|
||||
end
|
||||
end
|
||||
|
||||
local bIsDump = false
|
||||
local waitForSpellLoad = CreateFrame("frame")
|
||||
if (C_EventUtils.IsEventValid("SPELL_TEXT_UPDATE")) then
|
||||
waitForSpellLoad:RegisterEvent("SPELL_TEXT_UPDATE")
|
||||
waitForSpellLoad:SetScript("OnEvent", function(self, event, spellId)
|
||||
if (bIsDump) then
|
||||
dumpt(spellId)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
function dumpt(value) --[[GLOBAL]]
|
||||
--check if this is a spellId
|
||||
local spellId = tonumber(value)
|
||||
@@ -1292,7 +1281,6 @@ do
|
||||
if (type(spellInfo[1]) == "string") then
|
||||
local desc = C_Spell.GetSpellDescription and C_Spell.GetSpellDescription(spellId) or GetSpellDescription(spellId)
|
||||
if (not desc or desc == "") then
|
||||
bIsDump = true
|
||||
return
|
||||
end
|
||||
|
||||
@@ -1302,8 +1290,6 @@ do
|
||||
else
|
||||
return Details:Dump({desc, spellInfo})
|
||||
end
|
||||
|
||||
bIsDump = false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -3569,11 +3569,7 @@ function gump:CriaJanelaPrincipal(ID, instancia, criando)
|
||||
Details222.PrivateInstanceText:SetTextColor(1, 1, 1, 0.5)
|
||||
Details222.PrivateInstanceText:SetText(authorInfo.Support..("/"..authorInfo.Name..""):gsub("^%s$", ""))
|
||||
Details222.PrivateInstanceText:SetPoint("bottomleft", baseframe, "bottomleft", 2, 2)
|
||||
Details222.PrivateInstanceText:Hide()hooksecurefunc(commentador, "FollowUnit", function()
|
||||
C_Timer.After(180, function()Details222.PrivateInstanceText:Show()end)
|
||||
end)hooksecurefunc(commentador, "FollowPlayer", function()
|
||||
C_Timer.After(180, function()Details222.PrivateInstanceText:Show()end)
|
||||
end)
|
||||
Details222.PrivateInstanceText:Hide()
|
||||
end
|
||||
|
||||
--wallpaper
|
||||
|
||||
@@ -65,12 +65,6 @@ function Details:StartMeUp()
|
||||
--@deathTable: a table containing all the information about the player's death
|
||||
Details.ShowDeathTooltipFunction = Details.ShowDeathTooltip
|
||||
|
||||
if (C_CVar) then
|
||||
if (not InCombatLockdown()) then --disable for releases
|
||||
C_CVar.SetCVar("cameraDistanceMaxZoomFactor", 2.6)
|
||||
end
|
||||
end
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--initialize
|
||||
|
||||
|
||||
Reference in New Issue
Block a user