Skip to content

Commit

Permalink
lock rotate on all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Dec 27, 2024
1 parent 0f4e667 commit 5938e8c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ElvUI/Core/General/API.lua
Original file line number Diff line number Diff line change
Expand Up @@ -801,12 +801,14 @@ function E:PLAYER_ENTERING_WORLD(_, initLogin, isReload)
if initLogin or isReload then
E:CheckIncompatible()

if E.Retail then
if E.private.general.minimap.enable then
E:SetCVar('rotateMinimap', 0) -- Impossible to turn off in ElvUI if its on
end
elseif E.db.general.lockCameraDistanceMax then
E:SetCVar('cameraDistanceMaxZoomFactor', E.db.general.cameraDistanceMax) -- Blizzard will set this value to int(60/CVar cameraDistanceMax)+1 at logout if it is manually set higher than that
-- Force this on when the minimap is enabled
if E.private.general.minimap.enable then
E:SetCVar('rotateMinimap', 0)
end

-- Blizzard will set this value to int(60/CVar cameraDistanceMax)+1 at logout if it is manually set higher than that
if not E.Retail and E.db.general.lockCameraDistanceMax then
E:SetCVar('cameraDistanceMaxZoomFactor', E.db.general.cameraDistanceMax)
end
end

Expand Down

0 comments on commit 5938e8c

Please sign in to comment.