Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]自动截图功能为何在大秘境模式下有效? #464

Open
xj999 opened this issue Nov 26, 2024 · 1 comment
Open

[Bug]自动截图功能为何在大秘境模式下有效? #464

xj999 opened this issue Nov 26, 2024 · 1 comment
Labels

Comments

@xj999
Copy link

xj999 commented Nov 26, 2024

描述问题

您好,我注意到您开发的插件中,自动截图的功能不仅可以在完成成就时触发,还能在大秘境(Mythic+)模式下完成副本时自动截图。根据我的理解,以下代码似乎仅监听了ACHIEVEMENT_EARNED 事件

self:RegisterEvent("ACHIEVEMENT_EARNED", "DelayScreenshot")

大秘境完成时会直接触发 ACHIEVEMENT_EARNED 事件吗, 是显示一个结算提示框。在这种情况下,为什么自动截图功能仍然能在大秘境完成时生效?是否有其他隐藏的机制或者钩子与提示框交互?

相关代码:
以下是可能涉及的部分逻辑:

hooksecurefunc(_G.AchievementAlertSystem:GetAlertContainer(), "AddAlertFrame", function(_, frame)
    alertFrame = frame
    E:Delay(3, function()
        if frame == alertFrame then
            alertFrame = nil
        end
    end)
end)

我怀疑 AddAlertFrame 的钩子可能在某些情况下捕捉到了大秘境的提示框,但不确定是否如此。希望您能帮助解释,谢谢!

截图

image

@xj999 xj999 added the bug label Nov 26, 2024
@fang2hou
Copy link
Member

有尝试关闭这个模块打一次大秘吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants