From 959262cff62bb99748a935672a54f336835efe78 Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:09:32 -0700 Subject: [PATCH] fix broken stuff --- boot.lua | 14 -------------- frames/window_main.lua | 6 +----- startup.lua | 6 ------ 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/boot.lua b/boot.lua index d9f4fd70..0e839786 100644 --- a/boot.lua +++ b/boot.lua @@ -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 diff --git a/frames/window_main.lua b/frames/window_main.lua index 974d2de9..4e6bf46a 100644 --- a/frames/window_main.lua +++ b/frames/window_main.lua @@ -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 diff --git a/startup.lua b/startup.lua index d227f4af..3b3148bc 100644 --- a/startup.lua +++ b/startup.lua @@ -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