Skip to content

Commit

Permalink
wow11 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldpaw committed Aug 20, 2024
1 parent 10a404e commit 1fc194f
Show file tree
Hide file tree
Showing 21 changed files with 512 additions and 8 deletions.
2 changes: 1 addition & 1 deletion AzeriteUI/Core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ns.Hider = CreateFrame("Frame"); ns.Hider:Hide()
ns.Noop = function() end

-- Increasing this number forces a full settings reset.
ns.SETTINGS_VERSION = ns.WoW11 and 24 or 22 -- use client dependant settings version to avoid resets in unaffected builds.
ns.SETTINGS_VERSION = ns.WoW11 and 25 or 22 -- use client dependant settings version to avoid resets in unaffected builds.

-- Tinkerers rejoyce!
_G[Addon] = ns
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions AzeriteUI/WoW11/Misc/Auras.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

-- Do not automatically load this,
-- let the primary actionbar module do it.
local Auras = ns:GetModule("Auras")
Auras:SetEnabledState(false)

Auras.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

Auras.DelayedEnable = function(self)
ns.MovableModulePrototype.OnInitialize(self)

self:Enable()
end
File renamed without changes.
File renamed without changes.
40 changes: 40 additions & 0 deletions AzeriteUI/WoW11/UnitFrames/ArenaFrames.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

local ArenaFrameMod = ns:GetModule("ArenaFrames")
ArenaFrameMod:SetEnabledState(false)

ArenaFrameMod.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

ArenaFrameMod.DelayedEnable = function(self)
ns.UnitFrameModule.OnInitialize(self)
self:Enable()
end
40 changes: 40 additions & 0 deletions AzeriteUI/WoW11/UnitFrames/BossFrames.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

local BossFrameMod = ns:GetModule("BossFrames")
BossFrameMod:SetEnabledState(false)

BossFrameMod.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

BossFrameMod.DelayedEnable = function(self)
ns.UnitFrameModule.OnInitialize(self)
self:Update()
end
41 changes: 41 additions & 0 deletions AzeriteUI/WoW11/UnitFrames/FocusFrame.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

local FocusFrameMod = ns:GetModule("FocusFrame")
FocusFrameMod:SetEnabledState(false)

FocusFrameMod.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

FocusFrameMod.DelayedEnable = function(self)
ns.UnitFrameModule.OnInitialize(self)
self:Enable()
self.frame:UpdateAllElements("DelayedEnable")
end
41 changes: 41 additions & 0 deletions AzeriteUI/WoW11/UnitFrames/PartyFrames.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

local PartyFrameMod = ns:GetModule("PartyFrames")
PartyFrameMod:SetEnabledState(false)

PartyFrameMod.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

PartyFrameMod.DelayedEnable = function(self)
ns.UnitFrameModule.OnInitialize(self)
self:Enable()
self:Update()
end
41 changes: 41 additions & 0 deletions AzeriteUI/WoW11/UnitFrames/PetFrame.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

local PetFrameMod = ns:GetModule("PetFrame")
PetFrameMod:SetEnabledState(false)

PetFrameMod.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

PetFrameMod.DelayedEnable = function(self)
ns.UnitFrameModule.OnInitialize(self)
self:Enable()
self.frame:UpdateAllElements("DelayedEnable")
end
41 changes: 41 additions & 0 deletions AzeriteUI/WoW11/UnitFrames/PlayerCastBarFrame.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

local CastBarMod = ns:GetModule("PlayerCastBarFrame")
CastBarMod:SetEnabledState(false)

CastBarMod.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

CastBarMod.DelayedEnable = function(self)
ns.UnitFrameModule.OnInitialize(self)
self:Enable()
self.frame:UpdateAllElements("DelayedEnable")
end
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions AzeriteUI/WoW11/UnitFrames/Raid25Frames.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

local RaidFrame25Mod = ns:GetModule("RaidFrame25")
RaidFrame25Mod:SetEnabledState(false)

RaidFrame25Mod.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

RaidFrame25Mod.DelayedEnable = function(self)
ns.UnitFrameModule.OnInitialize(self)
self:Enable()
self:Update()
end
41 changes: 41 additions & 0 deletions AzeriteUI/WoW11/UnitFrames/Raid40Frames.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--[[
The MIT License (MIT)
Copyright (c) 2024 Lars Norberg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
local _, ns = ...

if (not ns.WoW11) then return end

local RaidFrame40Mod = ns:GetModule("RaidFrame40")
RaidFrame40Mod:SetEnabledState(false)

RaidFrame40Mod.OnInitialize = function(self)
self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable")
end

RaidFrame40Mod.DelayedEnable = function(self)
ns.UnitFrameModule.OnInitialize(self)
self:Enable()
self:Update()
end
Loading

0 comments on commit 1fc194f

Please sign in to comment.