WoWInterface SVN Aloft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/castbar/AloftOptions/AloftClassIcon
    from Rev 2223 to Rev 2341
    Reverse comparison

Rev 2223 → Rev 2341

AloftClassIconOptions.lua
35,14 → 35,68
desc = L["Enable class icon display on the nameplate"],
get = function(i) return AloftClassIcon.db.profile.enable end,
set = function(i, v) AloftClassIcon.db.profile.enable = v AloftClassIcon:UpdateAll() end,
order = 1
order = 1,
},
totemEnable =
{
type = 'toggle',
width = 'full',
name = L["Totem Enable"],
desc = L["Enable totem icon display on the nameplate"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftClassIcon:IsEnabled() or not AloftClassIcon.db or not AloftClassIcon.db.profile or not AloftClassIcon.db.profile.enable end,
get = function(i) return AloftClassIcon.db.profile.totemEnable end,
set = function(i, v) AloftClassIcon.db.profile.totemEnable = v AloftClassIcon:UpdateAll() end,
order = 2,
},
totemCrop =
{
type = 'range',
width = 'full',
name = L["Totem Crop"],
desc = L["Percentage to crop off the outside of the totem icon"],
min = 0,
max = 1,
step = 0.01,
disabled = function(i) return not Aloft:IsEnabled() or not AloftClassIcon:IsEnabled() or not AloftClassIcon.db or not AloftClassIcon.db.profile or not AloftClassIcon.db.profile.enable or not AloftClassIcon.db.profile.totemEnable end,
get = function(i) return AloftClassIcon.db.profile.totemCrop end,
set = function(i, v) AloftClassIcon.db.profile.totemCrop = v AloftClassIcon:UpdateAll() end,
order = 3,
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the class icon alpha"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftClassIcon.db.profile.enable end,
get = function(i) return AloftClassIcon.db.profile.alpha end,
set = function(i, v) AloftClassIcon.db.profile.alpha = v AloftClassIcon:UpdateAll() end,
order = 4,
},
size =
{
type = 'range',
width = 'full',
name = L["Size"],
desc = L["Size in pixels of the class icon"],
min = 4,
max = 64,
step = 1,
disabled = function(i) return not AloftClassIcon.db.profile.enable end,
get = function(i) return AloftClassIcon.db.profile.size end,
set = function(i, v) AloftClassIcon.db.profile.size = v AloftClassIcon:UpdateAll() end,
order = 5,
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust class icon position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftClassIcon:IsEnabled() or not AloftClassIcon.db or not AloftClassIcon.db.profile or not AloftClassIcon.db.profile.enable end,
order = 6,
args =
{
anchor = {
89,32 → 143,6
},
},
},
size =
{
type = 'range',
width = 'full',
name = L["Size"],
desc = L["Size in pixels of the class icon"],
min = 4,
max = 64,
step = 1,
disabled = function(i) return not AloftClassIcon.db.profile.enable end,
get = function(i) return AloftClassIcon.db.profile.size end,
set = function(i, v) AloftClassIcon.db.profile.size = v AloftClassIcon:UpdateAll() end
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the class icon alpha"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftClassIcon.db.profile.enable end,
get = function(i) return AloftClassIcon.db.profile.alpha end,
set = function(i, v) AloftClassIcon.db.profile.alpha = v AloftClassIcon:UpdateAll() end
},
},
}
 
AloftClassIconLocale.lua
40,6 → 40,11
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Sets the class icon alpha"] = "Sets the class icon alpha"
 
--[[ enUS ]] L["Totem Enable"] = "Totem Enable"
--[[ enUS ]] L["Enable totem icon display on the nameplate"] = "Enable totem icon display on the nameplate"
--[[ enUS ]] L["Totem Crop"] = "Totem Crop"
--[[ enUS ]] L["Percentage to crop off the outside of the totem icon"] = "Percentage to crop off the outside of the totem icon"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
90,6 → 95,11
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Sets the class icon alpha"] = "Sets the class icon alpha"
 
--[[ koKR ]] L["Totem Enable"] = "Totem Enable"
--[[ koKR ]] L["Enable totem icon display on the nameplate"] = "Enable totem icon display on the nameplate"
--[[ koKR ]] L["Totem Crop"] = "Totem Crop"
--[[ koKR ]] L["Percentage to crop off the outside of the totem icon"] = "Percentage to crop off the outside of the totem icon"
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
136,6 → 146,11
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Sets the class icon alpha"] = "Задает прозрачность значка класса"
 
--[[ ruRU ]] L["Totem Enable"] = "Totem Enable"
--[[ ruRU ]] L["Enable totem icon display on the nameplate"] = "Enable totem icon display on the nameplate"
--[[ ruRU ]] L["Totem Crop"] = "Totem Crop"
--[[ ruRU ]] L["Percentage to crop off the outside of the totem icon"] = "Percentage to crop off the outside of the totem icon"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
182,6 → 197,11
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Sets the class icon alpha"] = "设置职业图标透明度"
 
--[[ zhCN ]] L["Totem Enable"] = "Totem Enable"
--[[ zhCN ]] L["Enable totem icon display on the nameplate"] = "Enable totem icon display on the nameplate"
--[[ zhCN ]] L["Totem Crop"] = "Totem Crop"
--[[ zhCN ]] L["Percentage to crop off the outside of the totem icon"] = "Percentage to crop off the outside of the totem icon"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
210,39 → 230,44
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Class Icon"] = "職業圖示"
--[[ zhTW ]] L["Class icon placement options"] = "職業圖示位置選項"
--[[ zhTW ]] L["Class icon placement options"] = "職業圖示位置設定"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Enable class icon display on the nameplate"] = "在姓名板上顯示職業圖示"
--[[ zhTW ]] L["Size"] = "尺寸"
--[[ zhTW ]] L["Size in pixels of the class icon"] = "職業圖示的大小(單位為圖元)"
--[[ zhTW ]] L["Enable class icon display on the nameplate"] = "啟用在名牌上顯示職業圖示"
--[[ zhTW ]] L["Size"] = "大小"
--[[ zhTW ]] L["Size in pixels of the class icon"] = "職業圖示的像素大小"
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust class icon position"] = "職業圖示位置"
--[[ zhTW ]] L["X Offset"] = "X軸偏移"
--[[ zhTW ]] L["X offset of the class icon"] = "職業圖示橫軸偏移"
--[[ zhTW ]] L["Y Offset"] = "Y軸偏移"
--[[ zhTW ]] L["Y offset of the class icon"] = "職業圖示縱軸偏移"
--[[ zhTW ]] L["Adjust class icon position"] = "調整職業圖示位置"
--[[ zhTW ]] L["X Offset"] = "X偏移"
--[[ zhTW ]] L["X offset of the class icon"] = "職業圖示的X偏移"
--[[ zhTW ]] L["Y Offset"] = "Y偏移"
--[[ zhTW ]] L["Y offset of the class icon"] = "職業圖示的Y偏移"
--[[ zhTW ]] L["Anchor"] = "錨點"
--[[ zhTW ]] L["Sets the anchor for the class icon"] = "職業圖示錨點"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the class icon"] = "設置職業圖示要依附到生命條的哪個位置"
--[[ zhTW ]] L["Sets the anchor for the class icon"] = "設定職業圖示的錨點"
--[[ zhTW ]] L["Anchor To"] = "錨點到"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the class icon"] = "設定在生命條上錨到職業圖示的相關點"
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the class icon alpha"] = "設置職業圖示透明度"
--[[ zhTW ]] L["Sets the class icon alpha"] = "設定職業圖示透明度"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["Totem Enable"] = "圖騰啟用"
--[[ zhTW ]] L["Enable totem icon display on the nameplate"] = "啟用在名牌上的圖騰圖示顯示"
--[[ zhTW ]] L["Totem Crop"] = "圖騰裁切"
--[[ zhTW ]] L["Percentage to crop off the outside of the totem icon"] = "以百分比來關閉裁切圖騰圖示的外觀"
 
--[[ zhTW ]] L["TOPLEFT"] = "上左"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["TOPRIGHT"] = "上右"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOMLEFT"] = "下左"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "下右"
 
-----------------------------------------------------------------------------
 
end)
 
--[[ zhTW ]] mL["AloftClassIcon"] = "職業圖示"
--[[ zhTW ]] mL["AloftClassIcon"] = "Aloft職業圖示"
--[[ zhTW ]] mL["Display class icons on nameplates"] = "在名牌上顯示職業圖示"
 
-----------------------------------------------------------------------------