DialogKey

Addons
145,762 Downloads Last Updated: Nov 22, 2020 Game Version: 8.2.0

UIParent:EnableMouseWheel() LUA Error in Dragon Soul 25H

#15 By  justsjak

Created May 2, 2020 Updated Aug 6, 2020

Open
Defect

Getting the following LUA error in Dragon Soul:

 

Message: ADDON_ACTION_BLOCKED: DialogKey tried to call the protected function 'UIParent:EnableMouseWheel()'.
Time: Sun May 3 04:48:38 2020
Count: 2
Stack: ADDON_ACTION_BLOCKED: DialogKey tried to call the protected function 'UIParent:EnableMouseWheel()'.
[string "@Interface\AddOns\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua"]:29: in function <...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:25>
[string "@Interface\AddOns\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua"]:64: in function `Fire'
[string "@Interface\AddOns\Ace3\AceEvent-3.0\AceEvent-3.0.lua"]:120: in function <Interface\AddOns\Ace3\AceEvent-3.0\AceEvent-3.0.lua:119>
[string "=[C]"]: in function `EnableMouseWheel'
[string "@Interface\AddOns\DialogKey\main.lua"]:522: in function `func'
[string "@Interface\AddOns\Ace3\AceTimer-3.0\AceTimer-3.0.lua"]:57: in function <Interface\AddOns\Ace3\AceTimer-3.0\AceTimer-3.0.lua:50>

Locals: <none>

 

Thank you for an awesome addon!

justsjak   added a tag
Defect
  May 2, 2020
Aug 6, 2020
function DialogKey:DisableQuestScrolling()		-- Frees up mouse wheel input again when a scroll frame is hidden, or when leaving combat
	local found = false
	
	for i,frame in pairs(DialogKey.scrollFrames) do
		if frame:IsVisible() and frame:GetVerticalScrollRange() > 0 then
			found = true
		end
	end
	
	--if not found then--
	if not found and not UnitAffectingCombat("player") then
		UIParent:EnableMouseWheel(false)
	end
end

 

Edited Aug 6, 2020


To post a comment, please login or register a new account.