/branches/border/Aloft/AloftMana
--[[ enUS ]] bL["Border options"] = "Border options" |
--[[ enUS ]] bL["Target Only"] = "Target Only" |
--[[ enUS ]] bL["Enables the border on the current target only"] = "Enables the border on the current target only" |
--[[ 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 mana bar"] = "Sets the border color of the mana bar" |
--[[ enUS ]] bL["Border Style"] = "Border Style" |
--[[ 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 mana bar"] = "Sets the border color of the mana 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 mana 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 mana bar"] = "Sets the border color of the mana 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 mana bar"] = "Sets the border color of the mana bar" |
--[[ zhTW ]] bL["Border Style"] = "éæ¡æ¨£å¼" |
desc = L["Enables the border on the current target only"], |
order = 1, |
get = function(i) return AloftManaBar.db.profile.targetOnly end, |
set = function(i, v) AloftManaBar.db.profile.targetOnly = v AloftManaBar:UpdateAll() end, |
set = function(i, v) AloftManaBar.db.profile.targetOnly = v Aloft:DetermineDataSources() AloftManaBar:UpdateAll() end, |
disabled = function(i) return AloftManaBar.db.profile.border == "None" end, |
}, |
style = |
end, |
set = function(i, v) |
AloftManaBar.db.profile.border = Aloft.Options.args.manaBar.args.border.args.style.values[v] |
Aloft:DetermineDataSources() |
AloftManaBar:UpdateAll() |
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 AloftManaBar.db.profile.borderEdgeSize end, |
set = function(i, v) AloftManaBar.db.profile.borderEdgeSize = v AloftManaBar: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 AloftManaBar.db.profile.borderInset end, |
set = function(i, v) AloftManaBar.db.profile.borderInset = v AloftManaBar:UpdateAll() end |
}, |
color = |
{ |
type = 'color', |
height = 4, |
targetOnly = true, |
border = "None", |
borderEdgeSize = 16, |
borderInset = 4, |
borderColor = { 1, 1, 1, 1 }, |
backdropColor = { 0.25, 0.25, 0.25, 0.5 }, |
offsets = |
function AloftManaBar: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("AloftManaBar:SetupBar(): set backdrop " .. tostring(backdropTable.edgeFile)) |