/branches/4.2/AloftOptions/AloftClassIcon
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 = { |
}, |
}, |
}, |
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 |
}, |
}, |
} |
--[[ 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" |
--[[ 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"] = "ì°ì¸¡ ìë¨" |
--[[ 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"] = "ÐÐÐРХУ-СÐÐ ÐÐÐ" |
--[[ 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"] = "å³ä¸" |
--[[ 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"] = "å³ä¸" |