ElvUI WindTools

ElvUI WindTools

3M Downloads

关于 Modules/Interface/EasyShadow.lua

someblu opened this issue · 4 comments

commented
  • 版本: 1.2.0
  • Bugsack 反馈:
    easyshadow_bugsack
  • 复现步骤: 未知手动从任务列表添加任务追踪之后,Bugsack 就会统计到这处lua error
commented

仅从对称性来看的话,我猜测这处代码

local function shadowQuestIcon(_, block)
	local itemButton = block.itemButton
	if itemButton and not itemButton.styled then
		CreateMyShadow(itemButton, 3)
		itemButton.styled = true
	end
	local rightButton = block.rightButton
	if rightButton and not rightButton.styled then
		CreateMyShadow(itemButton, 3)
		rightButton.styled = true
	end
end

应改为

local function shadowQuestIcon(_, block)
	local itemButton = block.itemButton
	if itemButton and not itemButton.styled then
		CreateMyShadow(itemButton, 3)
		itemButton.styled = true
	end
	local rightButton = block.rightButton
	if rightButton and not rightButton.styled then
		CreateMyShadow(rightButton, 3)
		rightButton.styled = true
	end
end
commented

我没有上面这个报错,等下删了我这个配置再试一下

commented

递交了一个commit ( d134b66 ),目测已经修复了。

commented

嗯 复制的时候弄错了