/branches/border/Aloft/AloftCastBar
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 AloftCastBar.db.profile.borderEdgeSize end, |
set = function(i, v) AloftCastBar.db.profile.borderEdgeSize = v AloftCastBar: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 AloftCastBar.db.profile.borderInset end, |
set = function(i, v) AloftCastBar.db.profile.borderInset = v AloftCastBar:UpdateAll() end |
}, |
borderColor = |
{ |
type = 'color', |
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 AloftCastBar.db.profile.nointerBorderEdgeSize end, |
set = function(i, v) AloftCastBar.db.profile.nointerBorderEdgeSize = v AloftCastBar: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 AloftCastBar.db.profile.nointerBorderInset end, |
set = function(i, v) AloftCastBar.db.profile.nointerBorderInset = v AloftCastBar:UpdateAll() end |
}, |
borderColor = |
{ |
type = 'color', |
height = 10, |
border = "None", |
borderEdgeSize = 16, |
borderInset = 4, |
borderColor = { 1, 1, 1, 1 }, |
backdropColor = { 0.25, 0.25, 0.25, 0.5 }, |
color = { 1.0, 0.7, 0.0, 1.0 }, |
texture = "Blizzard", |
nointerBorder = "None", |
nointerBorderEdgeSize = 16, |
nointerBorderInset = 4, |
nointerBorderColor = { 1, 1, 1, 1 }, |
nointerBackdropColor = { 0.25, 0.25, 0.25, 0.5 }, |
nointerTexture = "Blizzard", |
function AloftCastBar:GetBorder(aloftData, noInterrupt) |
if noInterrupt then |
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.nointerBorderInset) or 0, SML:Fetch("border", self.db.profile.nointerBorder) |
-- return 0, SML:Fetch("border", "None") |
else |
return ((self.db.profile.nointerBorder ~= "None") and 4) or 0, SML:Fetch("border", self.db.profile.nointerBorder) |
return ((self.db.profile.nointerBorder ~= "None") and self.db.profile.borderInset) or 0, SML:Fetch("border", self.db.profile.border) |
-- return 0, SML:Fetch("border", "None") |
end |
end |
backdropTable.insets.top = inset |
backdropTable.insets.bottom = inset |
backdropTable.edgeFile = edgeFile |
backdropTable.edgeSize = (castFrame.noInterrupt and self.db.profile.nointerBorderEdgeSize) or self.db.profile.borderEdgeSize |
backdropTable.bgFile = texture |
castFrame:SetBackdrop(backdropTable) |
--[[ enUS ]] bL["Sets the color of the cast bar"] = "Sets the color of the cast bar" |
--[[ enUS ]] bL["Backdrop Color"] = "Backdrop Color" |
--[[ enUS ]] bL["Sets the backdrop color of the cast bar"] = "Sets the backdrop color of the cast bar" |
--[[ 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 cast bar"] = "Sets the border color of the cast bar" |
--[[ enUS ]] bL["Border Style"] = "Border Style" |
--[[ koKR ]] bL["Sets the color of the cast bar"] = "Sets the color of the cast bar" |
--[[ koKR ]] bL["Backdrop Color"] = "ë°°ê²½ ìì" |
--[[ koKR ]] bL["Sets the backdrop color of the cast bar"] = "ìì ë°ì ë°°ê²½ ììì ì¤ì í©ëë¤." |
--[[ 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 cast bar"] = "Sets the border color of the cast bar" |
--[[ koKR ]] bL["Border Style"] = "í ë리 ì¤íì¼" |
--[[ ruRU ]] bL["Sets the color of the cast bar"] = "ÐÐ°Ð´Ð°ÐµÑ ÑÐ²ÐµÑ Ð¿Ð¾Ð»Ð¾Ñки заклинаниÑ" |
--[[ ruRU ]] bL["Backdrop Color"] = "Ð¦Ð²ÐµÑ Ñени" |
--[[ ruRU ]] bL["Sets the backdrop color of the cast bar"] = "ÐÐ°Ð´Ð°ÐµÑ ÑÐ²ÐµÑ Ñени полоÑки заклинаниÑ" |
--[[ 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 cast bar"] = "УÑÑановка ÑвеÑа кÑаев полоÑÑ Ð¿ÑименениÑ" |
--[[ ruRU ]] bL["Border Style"] = "СÑÐ¸Ð»Ñ Ñамки" |
--[[ zhCN ]] bL["Sets the color of the cast bar"] = "设置æ½æ³æ¡é¢è²" |
--[[ zhCN ]] bL["Backdrop Color"] = "èæ¯é¢è²" |
--[[ zhCN ]] bL["Sets the backdrop color of the cast bar"] = "设å®æ½æ³æ¡çèæ¯é¢è²" |
--[[ 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 cast bar"] = "设置æ½æ³æ¡è¾¹æ¡é¢è²" |
--[[ zhCN ]] bL["Border Style"] = "è¾¹æ¡æ ·å¼" |
--[[ zhTW ]] bL["Sets the color of the cast bar"] = "è¨ç½®æ½æ³æ¢é¡è²" |
--[[ zhTW ]] bL["Backdrop Color"] = "èæ¯é¡è²" |
--[[ zhTW ]] bL["Sets the backdrop color of the cast bar"] = "æ½æ³æ¢èæ¯é¡è²" |
--[[ 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 cast bar"] = "è¨ç½®æ½æ³æ¢éæ¡é¡è²" |
--[[ zhTW ]] bL["Border Style"] = "éæ¡æ¨£å¼" |