/branches/4.1/AloftOptions/AloftCastBar
width = 'full', |
name = L["Enable"], |
desc = L["Show spell name on cast bar"], |
disabled = function(i) return not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
get = function(i) return AloftSpellNameText.db.profile.enable end, |
set = function(i, v) AloftSpellNameText.db.profile.enable = v AloftSpellNameText:Update() end, |
order = 1 |
width = 'full', |
name = L["Alignment"], |
desc = L["Sets the alignment of the spell name"], |
disabled = function(i) return Aloft:GetNameplateCVar("ShowVKeyCastbar") or not AloftSpellNameText.db.profile.enable end, |
disabled = function(i) return not AloftSpellNameText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
get = function(i) return AloftSpellNameText.db.profile.alignment end, |
set = function(i, value) AloftSpellNameText.db.profile.alignment = value AloftSpellNameText:Update() end, |
values = {["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] }, |
width = 'full', |
name = L["Color"], |
desc = L["Sets the spell name color"], |
disabled = function(i) return Aloft:GetNameplateCVar("ShowVKeyCastbar") or not AloftSpellNameText.db.profile.enable end, |
disabled = function(i) return not AloftSpellNameText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
get = function(i) return unpack(AloftSpellNameText.db.profile.color) end, |
set = function(i, r, g, b, a) AloftSpellNameText.db.profile.color = { r, g, b, a } AloftSpellNameText:Update() end, |
hasAlpha = true |
type = 'group', |
name = L["Spell Icon"], |
desc = L["Spell icon placement options"], |
disabled = function(i) return not Aloft:IsEnabled() or not AloftSpellIcon:IsEnabled() or not AloftSpellIcon.db or not AloftSpellIcon.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
disabled = function(i) |
-- ChatFrame7:AddMessage("Aloft.Options.args.castBar.args.spellIcon.disabled(): " .. tostring(AloftSpellIcon:IsEnabled()) .. "/" .. tostring(AloftSpellIcon:IsEnabled()) .. "/" .. tostring(AloftSpellIcon.db and AloftSpellIcon.db.profile) .. "/" .. tostring(Aloft:GetNameplateCVar("ShowVKeyCastbar"))) |
return not Aloft:IsEnabled() or not AloftSpellIcon:IsEnabled() or not AloftSpellIcon.db or not AloftSpellIcon.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar") |
end, |
order = -1, |
args = |
{ |
width = 'full', |
name = L["Enable"], |
desc = L["Enable spell icon display on the nameplate"], |
disabled = function(i) return not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
get = function(i) return AloftSpellIcon.db.profile.enable end, |
set = function(i, v) AloftSpellIcon.db.profile.enable = v AloftSpellIcon:UpdateAll() end, |
order = 1 |
min = 4, |
max = 32, |
step = 1, |
disabled = function(i) return Aloft:GetNameplateCVar("ShowVKeyCastbar") or not AloftSpellIcon.db.profile.enable end, |
disabled = function(i) return not AloftSpellIcon.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
get = function(i) return AloftSpellIcon.db.profile.size end, |
set = function(i, v) AloftSpellIcon.db.profile.size = v AloftSpellIcon:UpdateAll() end |
}, |
width = 'full', |
name = L["Enable"], |
desc = L["Show cast bar time text"], |
disabled = function(i) return not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
get = function(i) return AloftCastBarTimeText.db.profile.enable end, |
set = function(i, v) AloftCastBarTimeText.db.profile.enable = v AloftCastBarTimeText:Update() end, |
order = 1 |
width = 'full', |
name = L["Alignment"], |
desc = L["Sets the alignment of the cast bar time text"], |
disabled = function(i) return Aloft:GetNameplateCVar("ShowVKeyCastbar") or not AloftCastBarTimeText.db.profile.enable end, |
disabled = function(i) return not AloftCastBarTimeText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
get = function(i) return AloftCastBarTimeText.db.profile.alignment end, |
set = function(i, value) AloftCastBarTimeText.db.profile.alignment = value AloftCastBarTimeText:Update() end, |
values = {["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] }, |
width = 'full', |
name = L["Color"], |
desc = L["Sets the cast bar time text color"], |
disabled = function(i) return Aloft:GetNameplateCVar("ShowVKeyCastbar") or not AloftCastBarTimeText.db.profile.enable end, |
disabled = function(i) return not AloftCastBarTimeText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end, |
get = function(i) return unpack(AloftCastBarTimeText.db.profile.color) end, |
set = function(i, r, g, b, a) AloftCastBarTimeText.db.profile.color = { r, g, b, a } AloftCastBarTimeText:Update() end, |
hasAlpha = true |