/branches/border/Aloft/AloftHealthBar
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', |
}, |
} |
}, |
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 |
}, |
}, |
} |
--[[ 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" |
--[[ 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() |
----------------------------------------------------------------------------- |
--[[ 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"] = "í ë리 ì¤íì¼" |
--[[ 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 |
----------------------------------------------------------------------------- |
--[[ 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"] = "СÑÐ¸Ð»Ñ Ñамки" |
--[[ 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 |
----------------------------------------------------------------------------- |
--[[ 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"] = "è¾¹æ¡æ ·å¼" |
--[[ 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 |
----------------------------------------------------------------------------- |
--[[ 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"] = "éæ¡æ¨£å¼" |
--[[ 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 |
----------------------------------------------------------------------------- |
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) |