diff --git a/AzeriteUI/Core/Core.lua b/AzeriteUI/Core/Core.lua index 551ea6fa..a1497f8b 100644 --- a/AzeriteUI/Core/Core.lua +++ b/AzeriteUI/Core/Core.lua @@ -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 diff --git a/AzeriteUI/WoW11/ActionBars.lua b/AzeriteUI/WoW11/ActionBars/ActionBars.lua similarity index 100% rename from AzeriteUI/WoW11/ActionBars.lua rename to AzeriteUI/WoW11/ActionBars/ActionBars.lua diff --git a/AzeriteUI/WoW11/PetBar.lua b/AzeriteUI/WoW11/ActionBars/PetBar.lua similarity index 100% rename from AzeriteUI/WoW11/PetBar.lua rename to AzeriteUI/WoW11/ActionBars/PetBar.lua diff --git a/AzeriteUI/WoW11/StanceBar.lua b/AzeriteUI/WoW11/ActionBars/StanceBar.lua similarity index 100% rename from AzeriteUI/WoW11/StanceBar.lua rename to AzeriteUI/WoW11/ActionBars/StanceBar.lua diff --git a/AzeriteUI/WoW11/Misc/Auras.lua b/AzeriteUI/WoW11/Misc/Auras.lua new file mode 100644 index 00000000..abeb223d --- /dev/null +++ b/AzeriteUI/WoW11/Misc/Auras.lua @@ -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 diff --git a/AzeriteUI/WoW11/Minimap.lua b/AzeriteUI/WoW11/Misc/Minimap.lua similarity index 100% rename from AzeriteUI/WoW11/Minimap.lua rename to AzeriteUI/WoW11/Misc/Minimap.lua diff --git a/AzeriteUI/WoW11/Tooltips.lua b/AzeriteUI/WoW11/Misc/Tooltips.lua similarity index 100% rename from AzeriteUI/WoW11/Tooltips.lua rename to AzeriteUI/WoW11/Misc/Tooltips.lua diff --git a/AzeriteUI/WoW11/UnitFrames/ArenaFrames.lua b/AzeriteUI/WoW11/UnitFrames/ArenaFrames.lua new file mode 100644 index 00000000..c6521071 --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/ArenaFrames.lua @@ -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 diff --git a/AzeriteUI/WoW11/UnitFrames/BossFrames.lua b/AzeriteUI/WoW11/UnitFrames/BossFrames.lua new file mode 100644 index 00000000..9180460c --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/BossFrames.lua @@ -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 diff --git a/AzeriteUI/WoW11/UnitFrames/FocusFrame.lua b/AzeriteUI/WoW11/UnitFrames/FocusFrame.lua new file mode 100644 index 00000000..fa43493c --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/FocusFrame.lua @@ -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 diff --git a/AzeriteUI/WoW11/UnitFrames/PartyFrames.lua b/AzeriteUI/WoW11/UnitFrames/PartyFrames.lua new file mode 100644 index 00000000..304463b8 --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/PartyFrames.lua @@ -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 diff --git a/AzeriteUI/WoW11/UnitFrames/PetFrame.lua b/AzeriteUI/WoW11/UnitFrames/PetFrame.lua new file mode 100644 index 00000000..f929fdd0 --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/PetFrame.lua @@ -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 diff --git a/AzeriteUI/WoW11/UnitFrames/PlayerCastBarFrame.lua b/AzeriteUI/WoW11/UnitFrames/PlayerCastBarFrame.lua new file mode 100644 index 00000000..6b2b45aa --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/PlayerCastBarFrame.lua @@ -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 diff --git a/AzeriteUI/WoW11/PlayerFrame.lua b/AzeriteUI/WoW11/UnitFrames/PlayerFrame.lua similarity index 100% rename from AzeriteUI/WoW11/PlayerFrame.lua rename to AzeriteUI/WoW11/UnitFrames/PlayerFrame.lua diff --git a/AzeriteUI/WoW11/PlayerFrameAlternate.lua b/AzeriteUI/WoW11/UnitFrames/PlayerFrameAlternate.lua similarity index 100% rename from AzeriteUI/WoW11/PlayerFrameAlternate.lua rename to AzeriteUI/WoW11/UnitFrames/PlayerFrameAlternate.lua diff --git a/AzeriteUI/WoW11/UnitFrames/Raid25Frames.lua b/AzeriteUI/WoW11/UnitFrames/Raid25Frames.lua new file mode 100644 index 00000000..694ed785 --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/Raid25Frames.lua @@ -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 diff --git a/AzeriteUI/WoW11/UnitFrames/Raid40Frames.lua b/AzeriteUI/WoW11/UnitFrames/Raid40Frames.lua new file mode 100644 index 00000000..105f0b04 --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/Raid40Frames.lua @@ -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 diff --git a/AzeriteUI/WoW11/UnitFrames/Raid5Frames.lua b/AzeriteUI/WoW11/UnitFrames/Raid5Frames.lua new file mode 100644 index 00000000..a0b0cd9a --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/Raid5Frames.lua @@ -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 RaidFrame5Mod = ns:GetModule("RaidFrame5") +RaidFrame5Mod:SetEnabledState(false) + +RaidFrame5Mod.OnInitialize = function(self) + self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable") +end + +RaidFrame5Mod.DelayedEnable = function(self) + ns.UnitFrameModule.OnInitialize(self) + self:Enable() + self:Update() +end diff --git a/AzeriteUI/WoW11/UnitFrames/TargetFrame.lua b/AzeriteUI/WoW11/UnitFrames/TargetFrame.lua new file mode 100644 index 00000000..14df404a --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/TargetFrame.lua @@ -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 TargetFrameMod = ns:GetModule("TargetFrame") +TargetFrameMod:SetEnabledState(false) + +TargetFrameMod.OnInitialize = function(self) + self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable") +end + +TargetFrameMod.DelayedEnable = function(self) + ns.UnitFrameModule.OnInitialize(self) + self:Enable() + self.frame:UpdateAllElements("DelayedEnable") +end diff --git a/AzeriteUI/WoW11/UnitFrames/ToTFrame.lua b/AzeriteUI/WoW11/UnitFrames/ToTFrame.lua new file mode 100644 index 00000000..3291f746 --- /dev/null +++ b/AzeriteUI/WoW11/UnitFrames/ToTFrame.lua @@ -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 ToTFrameMod = ns:GetModule("ToTFrame") +ToTFrameMod:SetEnabledState(false) + +ToTFrameMod.OnInitialize = function(self) + self:RegisterEvent("PLAYER_ENTERING_WORLD", "DelayedEnable") +end + +ToTFrameMod.DelayedEnable = function(self) + ns.UnitFrameModule.OnInitialize(self) + self:Enable() + self.frame:UpdateAllElements("DelayedEnable") +end diff --git a/AzeriteUI/WoW11/WoW11.xml b/AzeriteUI/WoW11/WoW11.xml index 0e5b6884..ef6adbb6 100644 --- a/AzeriteUI/WoW11/WoW11.xml +++ b/AzeriteUI/WoW11/WoW11.xml @@ -1,16 +1,28 @@ -