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

@@ -13,9 +13,7 @@ function shared.SpellQSettings.Init()
end
local function SetSpellQueue(window)
if not window then
return
end
if not window then return end
print("Spell queue window set to " .. tostring(window))
SetCVar("SpellQueueWindow", window)
end
@@ -23,14 +21,10 @@ function shared.SpellQSettings.Init()
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event, ...)
SetSpellQueue(shared.config.spellQueue.queue)
end)
frame:SetScript("OnEvent", function(self, event, ...) SetSpellQueue(shared.config.spellQueue.queue) end)
SlashCmdList["SPELLQSETTINGS"] = function(window)
if window then
shared.config.spellQueue.queue = window
end
if window then shared.config.spellQueue.queue = window end
SetSpellQueue(shared.config.spellQueue.queue)
end
SLASH_SPELLQSETTINGS1 = "/sq"