/branches/border/Aloft/AloftCrowdControl
desc = L["Enables the border on the current target only"], |
order = 1, |
get = function(i) return AloftCrowdControl.db.profile.targetOnly end, |
set = function(i, v) AloftCrowdControl.db.profile.targetOnly = v AloftCrowdControl:UpdateAll() end, |
set = function(i, v) AloftCrowdControl.db.profile.targetOnly = v Aloft:DetermineDataSources() AloftCrowdControl:UpdateAll() end, |
disabled = function(i) return AloftCrowdControl.db.profile.border == "None" end, |
}, |
style = |
end, |
values = SML:List("border"), |
}, |
edgeSize = |
{ |
type = 'range', |
width = "full", |
name = L["Border Edge Size"], |
desc = L["Sets the thickness of the border"], |
min = 1, |
max = 32, |
step = 1, |
get = function(i) return AloftCrowdControl.db.profile.borderEdgeSize end, |
set = function(i, v) AloftCrowdControl.db.profile.borderEdgeSize = v AloftCrowdControl:UpdateAll() end |
}, |
inset = |
{ |
type = 'range', |
width = "full", |
name = L["Border Inset"], |
desc = L["Sets the padding aroundthe border"], |
min = 0, |
max = 32, |
step = 1, |
get = function(i) return AloftCrowdControl.db.profile.borderInset end, |
set = function(i, v) AloftCrowdControl.db.profile.borderInset = v AloftCrowdControl:UpdateAll() end |
}, |
color = |
{ |
type = 'color', |
texture = "Blizzard", |
targetOnly = true, |
border = "None", |
borderEdgeSize = 16, |
borderInset = 4, |
borderColor = { 1, 1, 1, 1 }, |
offsets = |
{ |
function AloftCrowdControl:GetBorder(aloftData) |
if not self.db.profile.targetOnly or (aloftData and (aloftData.isTarget or aloftData:IsTarget())) then |
-- ChatFrame7:AddMessage("AloftHealthBar:GetBorder(): border " .. tostring(self.db.profile.border)) |
return ((self.db.profile.border ~= "None") and 4) or 0, SML:Fetch("border", self.db.profile.border) |
return ((self.db.profile.border ~= "None") and self.db.profile.borderInset) or 0, SML:Fetch("border", self.db.profile.border) |
-- return 0, SML:Fetch("border", "None") |
else |
return 0, SML:Fetch("border", "None") |
backdropTable.insets.top = inset |
backdropTable.insets.bottom = inset |
backdropTable.edgeFile = edgeFile |
backdropTable.edgeSize = self.db.profile.borderEdgeSize |
backdropTable.bgFile = texture |
-- ChatFrame7:AddMessage("AloftCrowdControl:SetupBar(): set backdrop " .. tostring(backdropTable.edgeFile)) |
--[[ enUS ]] bL["Enables the border on the current target only"] = "Enables the border on the current target only" |
--[[ enUS ]] bL["Border Style"] = "Border Style" |
--[[ enUS ]] bL["Sets the style of the crowd control bar border"] = "Sets the style of the crowd control bar border" |
--[[ enUS ]] bL["Border Edge Size"] = "Border Edge Size" |
--[[ enUS ]] bL["Sets the thickness of the border"] = "Sets the thickness of the border" |
--[[ enUS ]] bL["Border Inset"] = "Border Inset" |
--[[ enUS ]] bL["Sets the padding aroundthe border"] = "Sets the padding around the border" |
--[[ enUS ]] bL["Border Color"] = "Border Color" |
--[[ enUS ]] bL["Sets the border color of the crowd control bar"] = "Sets the border color of the crowd control bar" |
--[[ koKR ]] bL["Border options"] = "Border options" |
--[[ koKR ]] bL["Target Only"] = "Target Only" |
--[[ koKR ]] bL["Enables the border on the current target only"] = "Enables the border on the current target only" |
--[[ koKR ]] bL["Border Edge Size"] = "Border Edge Size" |
--[[ koKR ]] bL["Sets the thickness of the border"] = "Sets the thickness of the border" |
--[[ koKR ]] bL["Border Inset"] = "Border Inset" |
--[[ koKR ]] bL["Sets the padding aroundthe border"] = "Sets the padding around the border" |
--[[ koKR ]] bL["Border Color"] = "í ë리 ìì" |
--[[ koKR ]] bL["Sets the border color of the crowd control bar"] = "Sets the border color of the crowd control bar" |
--[[ koKR ]] bL["Border Style"] = "í ë리 ì¤íì¼" |
--[[ ruRU ]] bL["Border options"] = "ÐаÑÑÑойки кÑаев" |
--[[ ruRU ]] bL["Target Only"] = "ТолÑко ÑелÑ" |
--[[ ruRU ]] bL["Enables the border on the current target only"] = "ÐклÑÑиÑÑ ÐºÑÐ°Ñ ÑолÑко Ð´Ð»Ñ ÑекÑÑей Ñели" |
--[[ ruRU ]] bL["Border Edge Size"] = "Border Edge Size" |
--[[ ruRU ]] bL["Sets the thickness of the border"] = "Sets the thickness of the border" |
--[[ ruRU ]] bL["Border Inset"] = "Border Inset" |
--[[ ruRU ]] bL["Sets the padding aroundthe border"] = "Sets the padding around the border" |
--[[ ruRU ]] bL["Border Color"] = "Ð¦Ð²ÐµÑ Ñамки" |
--[[ ruRU ]] bL["Sets the border color of the crowd control bar"] = "ÐÐ°Ð´Ð°ÐµÑ ÑÐ²ÐµÑ Ñамки полоÑÑ ÐºÐ¾Ð½ÑÑолÑ" |
--[[ ruRU ]] bL["Border Style"] = "СÑÐ¸Ð»Ñ Ñамки" |
--[[ zhCN ]] bL["Border options"] = "Border options" |
--[[ zhCN ]] bL["Target Only"] = "Target Only" |
--[[ zhCN ]] bL["Enables the border on the current target only"] = "Enables the border on the current target only" |
--[[ zhCN ]] bL["Border Edge Size"] = "Border Edge Size" |
--[[ zhCN ]] bL["Sets the thickness of the border"] = "Sets the thickness of the border" |
--[[ zhCN ]] bL["Border Inset"] = "Border Inset" |
--[[ zhCN ]] bL["Sets the padding aroundthe border"] = "Sets the padding around the border" |
--[[ zhCN ]] bL["Border Color"] = "è¾¹æ¡é¢è²" |
--[[ zhCN ]] bL["Sets the border color of the crowd control bar"] = "Sets the border color of the crowd control bar" |
--[[ zhCN ]] bL["Border Style"] = "è¾¹æ¡æ ·å¼" |
--[[ zhTW ]] bL["Border options"] = "Border options" |
--[[ zhTW ]] bL["Target Only"] = "Target Only" |
--[[ zhTW ]] bL["Enables the border on the current target only"] = "Enables the border on the current target only" |
--[[ zhTW ]] bL["Border Edge Size"] = "Border Edge Size" |
--[[ zhTW ]] bL["Sets the thickness of the border"] = "Sets the thickness of the border" |
--[[ zhTW ]] bL["Border Inset"] = "Border Inset" |
--[[ zhTW ]] bL["Sets the padding aroundthe border"] = "Sets the padding around the border" |
--[[ zhTW ]] bL["Border Color"] = "éæ¡é¡è²" |
--[[ zhTW ]] bL["Sets the border color of the crowd control bar"] = "Sets the border color of the crowd control bar" |
--[[ zhTW ]] bL["Border Style"] = "éæ¡æ¨£å¼" |