X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/f89d735c824d0cd5bf5b247933e32c7ed803df26..c809e5da99427a93b5ad5eb010a1cb1cba507ec2:/OmaAB/ActionBars.lua diff --git a/OmaAB/ActionBars.lua b/OmaAB/ActionBars.lua index e6637e9..10cd415 100644 --- a/OmaAB/ActionBars.lua +++ b/OmaAB/ActionBars.lua @@ -6,6 +6,7 @@ local ssub = string.sub; local GetActionInfo, GetActionTexture = GetActionInfo, GetActionTexture; local GetActionLossOfControlCooldown = GetActionLossOfControlCooldown; local GetActionCooldown, GetActionCharges = GetActionCooldown, GetActionCharges; +local GetActionText, GetBindingKey = GetActionText, GetBindingKey; local IsConsumableAction, IsStackableAction = IsConsumableAction, IsStackableAction; local IsItemAction, GetActionCount = IsItemAction, GetActionCount; local IsSpellOverlayed, GetMacroSpell = IsSpellOverlayed, GetMacroSpell; @@ -15,7 +16,6 @@ local IsCurrentAction, IsAutoRepeatAction = IsCurrentAction, IsAutoRepeatAction; local CreateFrame = CreateFrame; local RegisterStateDriver = RegisterStateDriver; local CooldownFrame_Set, CooldownFrame_Clear = CooldownFrame_Set, CooldownFrame_Clear; -local CTimerAfter = C_Timer.After; local GameTooltip = GameTooltip; local GameTooltip_SetDefaultAnchor = GameTooltip_SetDefaultAnchor; local COOLDOWN_TYPE_LOSS_OF_CONTROL = COOLDOWN_TYPE_LOSS_OF_CONTROL; @@ -122,6 +122,8 @@ local chars = { ["Vildan"] = {1, 2, 3, 4,}, ["Gedren"] = {1, 2, 3, 4,}, ["Gazden"] = {1, 2, 3, 4,}, + ["Gedran"] = {1, 2, 3, 4,}, + ["Iled"] = {1, 2, 3, 4,}, }, }; @@ -523,7 +525,10 @@ local function createActionBar(parent, config) secure:SetAttribute("flyoutDirection", config.flyout); end function secure:ActionChanged(oldslot) - if oldslot then activeButtons[oldslot] = nil end + if oldslot then + activeButtons[oldslot] = nil; + self.prev = nil; -- invalidate previous CD when slot changes + end self.slot = self:GetAttribute("action"); return updateButton(self, self.slot); end @@ -552,7 +557,7 @@ local function initialize() end local function setupBindings() - BINDING_HEADER_OmaAB = "Oma Action Bar"; + _G["BINDING_HEADER_OmaAB"] = "Oma Action Bar"; for i = 1,10 do _G["BINDING_HEADER_OMAABBLANK"..i] = "Bar "..i; for j = 1,12 do