Commit 70fb7376 authored by Azilroka's avatar Azilroka
Browse files

AB: Loss of Control

parent b72de8eb
......@@ -25,6 +25,7 @@ local UnregisterStateDriver = UnregisterStateDriver
local SPELLS_PER_PAGE = SPELLS_PER_PAGE
local TOOLTIP_UPDATE_TIME = TOOLTIP_UPDATE_TIME
local COOLDOWN_TYPE_LOSS_OF_CONTROL = COOLDOWN_TYPE_LOSS_OF_CONTROL
local NUM_ACTIONBAR_BUTTONS = NUM_ACTIONBAR_BUTTONS
local LAB = E.Libs.LAB
......@@ -691,7 +692,7 @@ end
function AB:ColorSwipeTexture(cooldown)
if not cooldown then return end
local color = AB.db.colorSwipeNormal
local color = (cooldown.currentCooldownType == COOLDOWN_TYPE_LOSS_OF_CONTROL and AB.db.colorSwipeLOC) or AB.db.colorSwipeNormal
cooldown:SetSwipeColor(color.r, color.g, color.b, color.a)
end
......
......@@ -145,6 +145,7 @@ ActionBar.args.general.args.colorGroup.args.noPowerColor = ACH:Color(L["Out of P
ActionBar.args.general.args.colorGroup.args.usableColor = ACH:Color(L["Usable"], L["Color of the actionbutton when usable."], 3)
ActionBar.args.general.args.colorGroup.args.notUsableColor = ACH:Color(L["Not Usable"], L["Color of the actionbutton when not usable."], 4)
ActionBar.args.general.args.colorGroup.args.colorSwipeNormal = ACH:Color(L["Swipe: Normal"], nil, 5, true)
ActionBar.args.general.args.colorGroup.args.colorSwipeLOC = ACH:Color(L["Swipe: Loss of Control"], nil, 6, true)
ActionBar.args.general.args.colorGroup.args.equippedItemColor = ACH:Color(L["Equipped Item Color"], nil, 7)
ActionBar.args.general.args.masqueGroup = ACH:Group(L["Masque Support"], nil, -1, nil, function(info) return E.private.actionbar.masque[info[#info]] end, function(info, value) E.private.actionbar.masque[info[#info]] = value; E:StaticPopup_Show('PRIVATE_RL') end, function() return not E.Masque end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment