WoWInterface SVN Aloft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/border/Aloft/AloftHealthBar
    from Rev 1862 to Rev 1863
    Reverse comparison

Rev 1862 → Rev 1863

AloftHealthBarOptions.lua
138,11 → 138,34
end,
set = function(i, v)
AloftHealthBar.db.profile.border = Aloft.Options.args.healthBar.args.border.args.style.values[v]
Aloft:DetermineDataSources()
AloftHealthBar: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 AloftHealthBar.db.profile.borderEdgeSize end,
set = function(i, v) AloftHealthBar.db.profile.borderEdgeSize = v AloftHealthBar: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 AloftHealthBar.db.profile.borderInset end,
set = function(i, v) AloftHealthBar.db.profile.borderInset = v AloftHealthBar:UpdateAll() end
},
color =
{
type = 'color',
373,6 → 396,19
},
}
},
deficit =
{
type = 'toggle',
name = L["Deficit Health Bar"],
desc = L["Display health bar as a deficit (grows from right as health is lost)"],
disabled = function(i)
-- ChatFrame7:AddMessage("Aloft.Options.args.healthBar.args.deficit.disabled(): " .. tostring(Aloft:IsEnabled()) .. "/" .. tostring(AloftHealthBar:IsEnabled()) .. "/" .. tostring(AloftHealthBar.db) .. "/" .. tostring(AloftHealthBar.db.profile))
return not Aloft:IsEnabled() or not AloftHealthBar:IsEnabled() or not AloftHealthBar.db or not AloftHealthBar.db.profile
end,
get = function(i) return AloftHealthBar.db.profile.deficit end,
set = function(i, v) AloftHealthBar.db.profile.deficit = v Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end,
order = 99
},
},
}
 
AloftHealthBarLocale.lua
80,6 → 80,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 health bar"] = "Sets the border color of the health bar"
--[[ enUS ]] bL["Border Style"] = "Border Style"
91,26 → 95,11
--[[ enUS ]] bL["Color tag"] = "Color tag"
--[[ enUS ]] bL["<Any tag string>"] = "<Any tag string>"
 
-----------------------------------------------------------------------------
--[[ enUS ]] bL["Deficit Health Bar"] = "Deficit Health Bar"
--[[ enUS ]] bL["Display health bar as a deficit (grows from right as health is lost)"] = "Display health bar as a deficit (grows from right as health is lost)"
 
-- AloftModules:AddInitializer("AloftHealthBarDeficit", function()
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] fL["Deficit Health Bar"] = "Deficit Health Bar"
--[[ enUS ]] fL["Display health bar as a deficit (grows from right as health is lost)"] = "Display health bar as a deficit (grows from right as health is lost)"
 
-----------------------------------------------------------------------------
 
-- end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftHealthBarDeficit"] = "AloftHealthBarDeficit"
--[[ enUS ]] mL["Modifiy Aloft nameplate health bars to deficit form"] = "Modifiy Aloft nameplate health bars to deficit form"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
182,6 → 171,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 health bar"] = "Sets the border color of the health bar"
--[[ koKR ]] bL["Border Style"] = "테두리 스타일"
193,26 → 186,15
--[[ koKR ]] bL["Color tag"] = "색상 태그"
--[[ koKR ]] bL["<Any tag string>"] = "<태그 문자열>"
 
-----------------------------------------------------------------------------
--[[ koKR ]] bL["Deficit Health Bar"] = "Deficit Health Bar"
--[[ koKR ]] bL["Display health bar as a deficit (grows from right as health is lost)"] = "Display health bar as a deficit (grows from right as health is lost)"
 
-- AloftModules:AddInitializer("AloftHealthBarDeficit", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] fL["Deficit Health Bar"] = "Deficit Health Bar"
--[[ koKR ]] fL["Display health bar as a deficit (grows from right as health is lost)"] = "Display health bar as a deficit (grows from right as health is lost)"
 
-----------------------------------------------------------------------------
 
-- end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftHealthBarDeficit"] = "AloftHealthBarDeficit"
--[[ koKR ]] mL["Modifiy Aloft nameplate health bars to deficit form"] = "Modifiy Aloft nameplate health bars to deficit form"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
280,6 → 262,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 health bar"] = "Sets the border color of the health bar"
--[[ ruRU ]] bL["Border Style"] = "Стиль рамки"
291,26 → 277,11
--[[ ruRU ]] bL["Color tag"] = "Формат цвета"
--[[ ruRU ]] bL["<Any tag string>"] = "<Любая строка формата>"
 
-----------------------------------------------------------------------------
--[[ ruRU ]] bL["Deficit Health Bar"] = "Полоска дефицита здоровья"
--[[ ruRU ]] bL["Display health bar as a deficit (grows from right as health is lost)"] = "Отображать на полоске здоровья дефицит здоровья (растет справа с уменьшением здоровья)"
 
-- AloftModules:AddInitializer("AloftHealthBarDeficit", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] fL["Deficit Health Bar"] = "Полоска дефицита здоровья"
--[[ ruRU ]] fL["Display health bar as a deficit (grows from right as health is lost)"] = "Отображать на полоске здоровья дефицит здоровья (растет справа с уменьшением здоровья)"
 
-----------------------------------------------------------------------------
 
-- end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftHealthBarDeficit"] = "AloftHealthBarDeficit"
--[[ ruRU ]] mL["Modifiy Aloft nameplate health bars to deficit form"] = "Изменяет полосу таблички здоровья на значение недостатка"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
378,6 → 349,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 health bar"] = "Sets the border color of the health bar"
--[[ zhCN ]] bL["Border Style"] = "边框样式"
389,26 → 364,11
--[[ zhCN ]] bL["Color tag"] = "颜色标签"
--[[ zhCN ]] bL["<Any tag string>"] = "<任意标签文字>"
 
-----------------------------------------------------------------------------
--[[ zhCN ]] bL["Deficit Health Bar"] = "亏减生命条"
--[[ zhCN ]] bL["Display health bar as a deficit (grows from right as health is lost)"] = "将生命条显示为亏减模式(随着生命值丧失从右侧增长)"
 
-- AloftModules:AddInitializer("AloftHealthBarDeficit", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] fL["Deficit Health Bar"] = "亏减生命条"
--[[ zhCN ]] fL["Display health bar as a deficit (grows from right as health is lost)"] = "将生命条显示为亏减模式(随着生命值丧失从右侧增长)"
 
-----------------------------------------------------------------------------
 
-- end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftHealthBarDeficit"] = "生命条亏减"
--[[ zhCN ]] mL["Modifiy Aloft nameplate health bars to deficit form"] = "将Aloft的生命值条显示为亏减模式"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
476,6 → 436,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 health bar"] = "Sets the border color of the health bar"
--[[ zhTW ]] bL["Border Style"] = "邊框樣式"
487,26 → 451,11
--[[ zhTW ]] bL["Color tag"] = "顏色標籤"
--[[ zhTW ]] bL["<Any tag string>"] = "<任何標籤文字>"
 
-----------------------------------------------------------------------------
--[[ zhTW ]] bL["Deficit Health Bar"] = "虧減生命條"
--[[ zhTW ]] bL["Display health bar as a deficit (grows from right as health is lost)"] = "將生命條顯示為虧減模式(隨著生命值喪失從右側增長)"
 
-- AloftModules:AddInitializer("AloftHealthBarDeficit", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] fL["Deficit Health Bar"] = "虧減生命條"
--[[ zhTW ]] fL["Display health bar as a deficit (grows from right as health is lost)"] = "將生命條顯示為虧減模式(隨著生命值喪失從右側增長)"
 
-----------------------------------------------------------------------------
 
-- end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftHealthBarDeficit"] = "生命條虧減"
--[[ zhTW ]] mL["Modifiy Aloft nameplate health bars to deficit form"] = "將Aloft的生命值條顯示為虧減模式"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
515,14 → 464,3
bL = nil
 
-----------------------------------------------------------------------------
 
-- AloftModules:AddInitializer("AloftHealthBarDeficit", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftHealthBarDeficit = setmetatable(fL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
fL = nil
 
-----------------------------------------------------------------------------
 
-- end)