WoWInterface SVN Aloft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/border/Aloft/AloftMana
    from Rev 1848 to Rev 1856
    Reverse comparison

Rev 1848 → Rev 1856

AloftManaLocale.lua
70,6 → 70,10
--[[ 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"
229,6 → 233,10
--[[ 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"] = "테두리 스타일"
380,6 → 388,10
--[[ 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"] = "Стиль рамки"
531,6 → 543,10
--[[ 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"] = "边框样式"
682,6 → 698,10
--[[ 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"] = "邊框樣式"
AloftManaBarOptions.lua
136,7 → 136,7
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 =
155,11 → 155,34
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',
AloftManaBar.lua
28,6 → 28,8
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 =
153,7 → 155,7
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")
188,6 → 190,7
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))