ascension: 4.4.2 → vendored 4.4.2-2-g3b02ee4 (in-game AddOns dir)

Imported from /srv/add01/wow-ascension/Interface/AddOns/Bartender4 — the
build Ascension's WotLK 3.3.5 client ships.

Single vendored drop: Ascension's build process bundles their custom
patches with the standard CurseForge packager output (embedded libs),
and the individual patches aren't published separately.

Net delta vs Nevcairiel 4.4.2, excluding bundled libs and CRLF
normalization: 21 files, 2213+/52- — the Ascension-specific
adaptations for WotLK 3.3.5 hero classes / custom action systems.

License: All rights reserved (per .toc).
This commit is contained in:
2026-05-08 03:45:58 +02:00
parent 97d989dd93
commit 57a5cdabdf
110 changed files with 23249 additions and 6220 deletions
+74 -61
View File
@@ -1,61 +1,74 @@
--[[
Copyright (c) 2009, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com >
All rights reserved.
]]
if not HasMultiCastActionBar or select(2, UnitClass("player")) ~= "SHAMAN" then return end
-- fetch upvalues
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
local Bar = Bartender4.Bar.prototype
local defaults = { profile = Bartender4:Merge({
enabled = true,
}, Bartender4.Bar.defaults) }
-- register module
local MultiCastMod = Bartender4:NewModule("MultiCast")
-- create prototype information
local MultiCastBar = setmetatable({}, {__index = Bar})
function MultiCastMod:OnInitialize()
self.db = Bartender4.db:RegisterNamespace("MultiCast", defaults)
self:SetEnabledState(self.db.profile.enabled)
end
function MultiCastMod:OnEnable()
if not self.bar then
self.bar = setmetatable(Bartender4.Bar:Create("MultiCast", self.db.profile, L["Totem Bar"]), {__index = MultiCastBar})
self.bar.content = MultiCastActionBarFrame
self.bar.content:SetScript("OnShow", nil)
self.bar.content:SetScript("OnHide", nil)
self.bar.content:SetScript("OnUpdate", nil)
self.bar.content.ignoreFramePositionManager = true
self.bar.content:SetParent(self.bar)
self.bar.content:Show()
self.bar.content:SetFrameLevel(self.bar:GetFrameLevel() + 1)
end
self.bar:Enable()
self:ToggleOptions()
self:ApplyConfig()
end
function MultiCastMod:ApplyConfig()
if not self:IsEnabled() then return end
self.bar:ApplyConfig(self.db.profile)
end
function MultiCastBar:ApplyConfig(config)
Bar.ApplyConfig(self, config)
self:PerformLayout()
end
function MultiCastBar:PerformLayout()
self:SetSize(230, 40)
local bar = self.content
bar:ClearAllPoints()
bar:SetPoint("TOPLEFT", self, "TOPLEFT", 3, 1)
end
--[[
Copyright (c) 2009, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com >
All rights reserved.
]]
if not HasMultiCastActionBar then return end
local classMask = UnitClassMask("player")
if not bit.contains(EnumUtil.CombineMasks(Enum.ClassMask.SHAMAN, Enum.ClassMask.HERO), classMask) then
return
end
-- fetch upvalues
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
local Bar = Bartender4.Bar.prototype
local defaults = { profile = Bartender4:Merge({
enabled = true,
}, Bartender4.Bar.defaults) }
-- register module
local MultiCastMod = Bartender4:NewModule("MultiCast")
-- create prototype information
local MultiCastBar = setmetatable({}, {__index = Bar})
local function OnShowMultiCastActionBar()
if MultiCastMod:IsEnabled() then
MultiCastMod:ApplyConfig()
end
end
function MultiCastMod:OnInitialize()
hooksecurefunc("ShowMultiCastActionBar", OnShowMultiCastActionBar)
self.db = Bartender4.db:RegisterNamespace("MultiCast", defaults)
self:SetEnabledState(self.db.profile.enabled)
end
function MultiCastMod:OnEnable()
if not self.bar then
self.bar = setmetatable(Bartender4.Bar:Create("MultiCast", self.db.profile, L["Totem Bar"]), {__index = MultiCastBar})
self.bar.content = MultiCastActionBarFrame
self.bar.content:SetScript("OnShow", nil)
self.bar.content:SetScript("OnHide", nil)
self.bar.content:SetScript("OnUpdate", nil)
self.bar.content.ignoreFramePositionManager = true
self.bar.content:SetParent(self.bar)
self.bar.content:Show()
self.bar.content:SetFrameLevel(self.bar:GetFrameLevel() + 1)
end
self.bar:Enable()
self:ToggleOptions()
self:ApplyConfig()
end
function MultiCastMod:ApplyConfig()
if not self:IsEnabled() then return end
self.bar:ApplyConfig(self.db.profile)
end
function MultiCastBar:ApplyConfig(config)
Bar.ApplyConfig(self, config)
self:PerformLayout()
end
function MultiCastBar:PerformLayout()
self:SetSize(230, 40)
local bar = self.content
bar:ClearAllPoints()
bar:SetPoint("TOPLEFT", self, "TOPLEFT", 3, 1)
end