mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 13:00:50 +00:00
prevent camera from constantly resetting
This commit is contained in:
+4
-3
@@ -165,9 +165,10 @@ pfUI:RegisterModule("afkcam", function ()
|
|||||||
|
|
||||||
afkcam:SetScript("OnEvent", function()
|
afkcam:SetScript("OnEvent", function()
|
||||||
if event == "PLAYER_FLAGS_CHANGED" then
|
if event == "PLAYER_FLAGS_CHANGED" then
|
||||||
local isAFK = UnitIsAFK('player')
|
if UnitIsAFK('player') then
|
||||||
delay:SetShown(isAFK)
|
delay:Show()
|
||||||
if not isAFK then
|
elseif delay:IsVisible() then
|
||||||
|
delay:Hide()
|
||||||
this:stop()
|
this:stop()
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user