WoWInterface SVN Aloft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/4.2/AloftOptions/AloftClassIcon
    from Rev 2233 to Rev 2250
    Reverse comparison

Rev 2233 → Rev 2250

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"] = "右上"
228,6 → 248,11
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the class icon alpha"] = "設置職業圖示透明度"
 
--[[ zhTW ]] L["Totem Enable"] = "Totem Enable"
--[[ zhTW ]] L["Enable totem icon display on the nameplate"] = "Enable totem icon display on the nameplate"
--[[ zhTW ]] L["Totem Crop"] = "Totem Crop"
--[[ zhTW ]] L["Percentage to crop off the outside of the totem icon"] = "Percentage to crop off the outside of the totem icon"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"