Add stylua toml

This commit is contained in:
2025-05-04 14:27:32 +02:00
parent 21b6ecccd0
commit cbe7741954
6 changed files with 191 additions and 546 deletions

View File

@@ -15,9 +15,7 @@ function shared.CameraSettings.Init()
end
local function SetCameraSpeed(speed)
if not speed then
return
end
if not speed then return end
print("Camera speed set to " .. tostring(speed))
SetCVar("cameraYawMoveSpeed", speed)
SetCVar("cameraPitchMoveSpeed", speed)
@@ -117,14 +115,10 @@ function shared.CameraSettings.Init()
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event, ...)
SetCameraSpeed(shared.config.camera.speed)
end)
frame:SetScript("OnEvent", function(self, event, ...) SetCameraSpeed(shared.config.camera.speed) end)
SlashCmdList["CAMERASETTINGS"] = function(speed)
if speed then
shared.config.camera.speed = speed
end
if speed then shared.config.camera.speed = speed end
SetCameraSpeed(shared.config.camera.speed)
end
SLASH_CAMERASETTINGS1 = "/cs"