fix broken stuff

This commit is contained in:
andrew6180
2024-07-10 16:09:32 -07:00
parent b14c20153a
commit 959262cff6
3 changed files with 1 additions and 25 deletions
-14
View File
@@ -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
+1 -5
View File
@@ -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
-6
View File
@@ -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