WoWInterface SVN Aloft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/option
    from Rev 2212 to Rev 2213
    Reverse comparison

Rev 2212 → Rev 2213

AloftOptions/AloftModules/AloftModulesLocale.lua New file
0,0 → 1,95
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Modules"] = "Modules"
--[[ enUS ]] L["Aloft optional modules (loaded dynamically when selected; de-select and reload UI to unload)"] = "Aloft optional modules (loaded dynamically when selected; de-select and reload UI to unload)"
 
--[[ enUS ]] L["Regenerate Text Tags"] = "Regenerate Text Tags"
--[[ enUS ]] L["Clear and regenerate all text tags (may help to clear !!Tag Error!! problems without a full UI reload"] = "Clear and regenerate all text tags (may help to clear !!Tag Error!! problems without a full UI reload"
 
--[[ enUS ]] L["Reload UI"] = "Reload UI"
--[[ enUS ]] L["Reload the user interface to synchronize all modules"] = "Reload the user interface to synchronize all modules"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Modules"] = "Modules"
--[[ koKR ]] L["Aloft optional modules (loaded dynamically when selected; de-select and reload UI to unload)"] = "Aloft optional modules (loaded dynamically when selected; de-select and reload UI to unload)"
 
--[[ koKR ]] L["Regenerate Text Tags"] = "Regenerate Text Tags"
--[[ koKR ]] L["Clear and regenerate all text tags (may help to clear !!Tag Error!! problems without a full UI reload"] = "Clear and regenerate all text tags (may help to clear !!Tag Error!! problems without a full UI reload"
 
--[[ koKR ]] L["Reload UI"] = "Reload UI"
--[[ koKR ]] L["Reload the user interface to synchronize all modules"] = "Reload the user interface to synchronize all modules"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Modules"] = "Модули"
--[[ ruRU ]] L["Aloft optional modules (loaded dynamically when selected; de-select and reload UI to unload)"] = "Дополнительные модули Aloft (если включены загружаются диновично; для отключения, отмените выбор и перезагрузите пользовательский интерфейс)"
 
--[[ ruRU ]] L["Regenerate Text Tags"] = "Восстанавление текстовых тегов"
--[[ ruRU ]] L["Clear and regenerate all text tags (may help to clear !!Tag Error!! problems without a full UI reload"] = "Очистка и восстанавление всех текстовых тегов (помогает избавиться от проблем !!Ошибка тега!! без перезагрузки пользовательского интерфейса"
 
--[[ ruRU ]] L["Reload UI"] = "Reload UI"
--[[ ruRU ]] L["Reload the user interface to synchronize all modules"] = "Перезагружает пользовательский интерфейс для синхронизации всех модулей"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Modules"] = "模块"
--[[ zhCN ]] L["Aloft optional modules (loaded dynamically when selected; de-select and reload UI to unload)"] = "Aloft的额外模块(选中后动态加载;取消选择后重载UI卸载)"
 
--[[ zhCN ]] L["Regenerate Text Tags"] = "重新生成文本标签"
--[[ zhCN ]] L["Clear and regenerate all text tags (may help to clear !!Tag Error!! problems without a full UI reload"] = "清除并重新生成所有的文本标签(有时可以在不进行重载的情况下解决标签错误问题)"
 
--[[ zhCN ]] L["Reload UI"] = "重载界面"
--[[ zhCN ]] L["Reload the user interface to synchronize all modules"] = "重载用户界面以进行模块同步"
 
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Modules"] = "模組"
--[[ zhTW ]] L["Aloft optional modules (loaded dynamically when selected; de-select and reload UI to unload)"] = "Aloft的額外模組(選中後動態載入;取消選擇後重載UI卸載)"
 
--[[ zhTW ]] L["Regenerate Text Tags"] = "重新生成文本標籤"
--[[ zhTW ]] L["Clear and regenerate all text tags (may help to clear !!Tag Error!! problems without a full UI reload"] = "清除並重新生成所有的文本標籤(有時可以在不進行重載的情況下解決標籤錯誤問題)"
 
--[[ zhTW ]] L["Reload UI"] = "重載介面"
--[[ zhTW ]] L["Reload the user interface to synchronize all modules"] = "重載使用者介面以進行模組同步"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftModules = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
\ No newline at end of file
AloftOptions/AloftModules/AloftModulesOptions.lua New file
0,0 → 1,45
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules =
{
type = 'group',
order = 800,
name = L["Modules"],
desc = L["Aloft optional modules (loaded dynamically when selected; de-select and reload UI to unload)"],
disabled = function(i) return not Aloft:IsEnabled() or not Aloft.db or not Aloft.db.profile end,
args =
{
regentags =
{
type = 'execute',
width = 'full',
order = -1,
name = L["Regenerate Text Tags"],
desc = L["Clear and regenerate all text tags (may help to clear !!Tag Error!! problems without a full UI reload"],
func = function(i) AloftModules:Regenerate() end -- TODO: a check for being in combat?
},
reload =
{
type = 'execute',
width = 'full',
order = -1,
name = L["Reload UI"],
desc = L["Reload the user interface to synchronize all modules"],
func = function(i) ReloadUI() end -- TODO: a check for being in combat?
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftReportStatusChanges/AloftReportStatusChangesOptions.lua New file
0,0 → 1,28
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftReportStatusChangesOptions
if not L then return end
 
local AloftReportStatusChanges = Aloft:GetModule("ReportStatus", true) -- always enabled
if not AloftReportStatusChanges then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.basic.args.reportStatusChanges =
{
type = 'toggle',
width = 'full',
name = L["Report Status Changes"],
desc = L["Prints the status of nameplates whenever they change"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftReportStatusChanges:IsEnabled() or not AloftReportStatusChanges.db or not AloftReportStatusChanges.db.profile end,
get = function(i) return AloftReportStatusChanges.db.profile.enable end,
set = function(i, v) AloftReportStatusChanges.db.profile.enable = v AloftReportStatusChanges:HookNameplates() end,
order = 3,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftReportStatusChanges/AloftReportStatusChangesLocale.lua New file
0,0 → 1,64
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Report Status Changes"] = "Report Status Changes"
--[[ enUS ]] L["Prints the status of nameplates whenever they change"] = "Prints the status of nameplates whenever they change"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Report Status Changes"] = "상태 변경 알림"
--[[ koKR ]] L["Prints the status of nameplates whenever they change"] = "이름표의 표시 상태 변경시 대화창에 표시합니다."
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Report Status Changes"] = "Сообщать об изменении статуса"
--[[ ruRU ]] L["Prints the status of nameplates whenever they change"] = "Печатает статус табличек при их изменении"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Report Status Changes"] = "报告状态变化"
--[[ zhCN ]] L["Prints the status of nameplates whenever they change"] = "报告姓名板的状态变化"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Report Status Changes"] = "報告狀態變化"
--[[ zhTW ]] L["Prints the status of nameplates whenever they change"] = "報告名牌的狀態變化"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftReportStatusChangesOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
AloftOptions/AloftFu/AloftFuModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftFu =
{
type = 'toggle',
width = "full",
name = L["AloftFu"],
desc = L["Provide a FuBar interface for Aloft"],
get = function(i) return AloftModules.db.profile.AloftFu end,
set = function(i, v) AloftModules.db.profile.AloftFu = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftFu/AloftFuLocale.lua New file
0,0 → 1,60
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] mL["AloftFu"] = "AloftFu"
--[[ enUS ]] mL["Provide a FuBar interface for Aloft"] = "Provide a FuBar interface for Aloft"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftFu"] = "AloftFu"
--[[ koKR ]] mL["Provide a FuBar interface for Aloft"] = "Provide a FuBar interface for Aloft"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftFu"] = "AloftFu"
--[[ ruRU ]] mL["Provide a FuBar interface for Aloft"] = "Обеспечивать интерфейсов Aloftа FuBar"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftFu"] = "FuBar支持"
--[[ zhCN ]] mL["Provide a FuBar interface for Aloft"] = "为Aloft提供Fubar支持"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftFu"] = "FuBar支持"
--[[ zhTW ]] mL["Provide a FuBar interface for Aloft"] = "為Aloft提供Fubar支援"
 
-----------------------------------------------------------------------------
 
end
AloftOptions/Aloft/AloftOptions.lua New file
0,0 → 1,213
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.Aloft
if not L then return end
 
local BL = LOCALIZED_CLASS_NAMES_MALE -- from FrameXML/Constants.lua; TODO: enhance to make these gender-specific?
if not BL then return end
 
local N = L["Aloft"] .. "-" .. Aloft.version
 
-----------------------------------------------------------------------------
-- merge into the existing options table
Aloft.Options.args.basic =
{
type = 'group',
-- childGroups = "tab",
order = 0,
name = L["Aloft"],
desc = L["Aloft"],
disabled = function(i) return not Aloft:IsEnabled() or not Aloft.db or not Aloft.db.profile end,
args =
{
enableConfigMode =
{
type = 'toggle',
width = "full",
name = L["Enable Configuration Mode"],
desc = L["Enable Configuration Mode"],
get = function(i) return Aloft.db.profile.configMode end,
set = function(i, v) Aloft.db.profile.configMode = v Aloft:SendMessage("Aloft:OnConfigModeChanged") end,
order = 1,
},
enableStartMessage =
{
type = 'toggle',
width = "full",
name = L["Enable Startup Message"],
desc = L["Enable Startup Message"],
get = function(i) return Aloft.db.profile.startMessageEnable end,
set = function(i, v) Aloft.db.profile.startMessageEnable = v end,
order = 2,
},
--[[ TODO: dead code, delete after testing
enableBloatTest =
{
type = 'toggle',
width = "full",
name = L["Enable \"bloattest\""],
desc = L["Perform \"/console bloattest 1\" at startup"],
get = function(i) return Aloft.db.profile.enableBloatTest end,
set = function(i, v) Aloft.db.profile.enableBloatTest = v Aloft:ApplyBloatTest() end,
order = 2,
},
]]
interval =
{
type = 'range',
width = 'full',
name = L["Nameplate Initialization Interval"],
desc = L["The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"],
order = 7,
min = 0.0,
max = 5.0,
step = 0.01,
disabled = function(i) return not Aloft:IsEnabled() or not Aloft.db or not Aloft.db.profile end,
get = function(i) return Aloft.db.profile.interval end,
set = function(i, v) Aloft.db.profile.interval = v Aloft:InitializeTimer() Aloft:DetermineDataSources() end,
},
classColors =
{
type = 'group',
name = L["Class Colors"],
desc = L["Customize class colors"],
disabled = function(i) return not Aloft:IsEnabled() or not Aloft.db or not Aloft.db.profile end,
order = 9,
args =
{
druid =
{
type = 'color',
width = "full",
name = BL["DRUID"],
desc = BL["DRUID"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["DRUID"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["DRUID"] = { r, g, b } Aloft:DetermineDataSources() end
},
hunter =
{
type = 'color',
width = "full",
name = BL["HUNTER"],
desc = BL["HUNTER"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["HUNTER"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["HUNTER"] = { r, g, b } Aloft:DetermineDataSources() end
},
mage =
{
type = 'color',
width = "full",
name = BL["MAGE"],
desc = BL["MAGE"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["MAGE"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["MAGE"] = { r, g, b } Aloft:DetermineDataSources() end
},
paladin =
{
type = 'color',
width = "full",
name = BL["PALADIN"],
desc = BL["PALADIN"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["PALADIN"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["PALADIN"] = { r, g, b } Aloft:DetermineDataSources() end
},
priest =
{
type = 'color',
width = "full",
name = BL["PRIEST"],
desc = BL["PRIEST"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["PRIEST"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["PRIEST"] = { r, g, b } Aloft:DetermineDataSources() end
},
rogue =
{
type = 'color',
width = "full",
name = BL["ROGUE"],
desc = BL["ROGUE"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["ROGUE"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["ROGUE"] = { r, g, b } Aloft:DetermineDataSources() end
},
shaman =
{
type = 'color',
width = "full",
name = BL["SHAMAN"],
desc = BL["SHAMAN"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["SHAMAN"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["SHAMAN"] = { r, g, b } Aloft:DetermineDataSources() end
},
warlock =
{
type = 'color',
width = "full",
name = BL["WARLOCK"],
desc = BL["WARLOCK"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["WARLOCK"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["WARLOCK"] = { r, g, b } Aloft:DetermineDataSources() end
},
warrior =
{
type = 'color',
width = "full",
name = BL["WARRIOR"],
desc = BL["WARRIOR"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["WARRIOR"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["WARRIOR"] = { r, g, b } Aloft:DetermineDataSources() end
},
deathknight =
{
type = 'color',
width = "full",
name = BL["DEATHKNIGHT"],
desc = BL["DEATHKNIGHT"] .. " " .. L["class color"],
get = function(i) return unpack(Aloft.db.profile.classColors["DEATHKNIGHT"]) end,
set = function(i, r, g, b) Aloft.db.profile.classColors["DEATHKNIGHT"] = { r, g, b } Aloft:DetermineDataSources() end
},
reset =
{
type = 'execute',
width = "full",
name = L["Reset to Defaults"],
desc = L["Resets all colors to their defaults"],
order = -1,
func = function(i)
local colors = Aloft.db.profile.classColors
colors["DRUID"] = { RAID_CLASS_COLORS["DRUID"].r, RAID_CLASS_COLORS["DRUID"].g, RAID_CLASS_COLORS["DRUID"].b, }
colors["HUNTER"] = { RAID_CLASS_COLORS["HUNTER"].r, RAID_CLASS_COLORS["HUNTER"].g, RAID_CLASS_COLORS["HUNTER"].b, }
colors["MAGE"] = { RAID_CLASS_COLORS["MAGE"].r, RAID_CLASS_COLORS["MAGE"].g, RAID_CLASS_COLORS["MAGE"].b, }
colors["PALADIN"] = { RAID_CLASS_COLORS["PALADIN"].r, RAID_CLASS_COLORS["PALADIN"].g, RAID_CLASS_COLORS["PALADIN"].b, }
colors["PRIEST"] = { RAID_CLASS_COLORS["PRIEST"].r, RAID_CLASS_COLORS["PRIEST"].g, RAID_CLASS_COLORS["PRIEST"].b, }
colors["ROGUE"] = { RAID_CLASS_COLORS["ROGUE"].r, RAID_CLASS_COLORS["ROGUE"].g, RAID_CLASS_COLORS["ROGUE"].b, }
colors["SHAMAN"] = { RAID_CLASS_COLORS["SHAMAN"].r, RAID_CLASS_COLORS["SHAMAN"].g, RAID_CLASS_COLORS["SHAMAN"].b, }
colors["WARLOCK"] = { RAID_CLASS_COLORS["WARLOCK"].r, RAID_CLASS_COLORS["WARLOCK"].g, RAID_CLASS_COLORS["WARLOCK"].b, }
colors["WARRIOR"] = { RAID_CLASS_COLORS["WARRIOR"].r, RAID_CLASS_COLORS["WARRIOR"].g, RAID_CLASS_COLORS["WARRIOR"].b, }
colors["DEATHKNIGHT"] = { RAID_CLASS_COLORS["DEATHKNIGHT"].r, RAID_CLASS_COLORS["DEATHKNIGHT"].g, RAID_CLASS_COLORS["DEATHKNIGHT"].b, }
Aloft:DetermineDataSources()
end,
},
},
},
},
}
 
-----------------------------------------------------------------------------
 
-- merge into the existing options table
Aloft.Options.args.data =
{
type = 'group',
name = L["Data Options"],
desc = L["Data options"],
order = 600,
disabled = function(i) return not next(Aloft.Options.args.data.args) end,
args = { }, -- placeholder
}
 
-----------------------------------------------------------------------------
AloftOptions/Aloft/Aloft.lua New file
0,0 → 1,32
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
 
-----------------------------------------------------------------------------
 
-- global on purpose
AloftOptions = LibStub("AceAddon-3.0"):NewAddon("AloftOptions")
 
-----------------------------------------------------------------------------
 
local AloftOptions = AloftOptions
 
-----------------------------------------------------------------------------
 
function AloftOptions:OnInitialize()
-- all files have been seen and all dynamic code is read, at this point, so make sure the dynamic code is loaded
-- ChatFrame7:AddMessage("AloftOptions:OnInitialize(): enter")
AloftModules:Initialize()
end
 
function AloftOptions:OnEnable()
-- ChatFrame7:AddMessage("AloftOptions:OnEnable(): enter")
AloftModules:Activate()
end
 
function AloftOptions:OnDisable()
end
 
-----------------------------------------------------------------------------
 
AloftOptions/Aloft/AloftLocale.lua New file
0,0 → 1,136
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.Aloft
if not L then return end
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Class Colors"] = "Class Colors"
--[[ enUS ]] L["Customize class colors"] = "Customize class colors"
--[[ enUS ]] L["class color"] = "class color"
--[[ enUS ]] L["Reset to Defaults"] = "Reset to Defaults"
--[[ enUS ]] L["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
--[[ enUS ]] L["Enable Configuration Mode"] = "Enable Configuration Mode"
--[[ enUS ]] L["Enable Startup Message"] = "Enable Startup Message"
--[[ enUS ]] L["Enable \"bloattest\""] = "Enable \"bloattest\""
--[[ enUS ]] L["Perform \"/console bloattest 1\" at startup"] = "Perform \"/console bloattest 1\" at startup"
 
--[[ enUS ]] L["Nameplate Initialization Interval"] = "Nameplate Initialization Interval"
--[[ enUS ]] L["The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"] = "The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"
 
--[[ enUS ]] L["Data Options"] = "Data Options"
--[[ enUS ]] L["Data options"] = "Data options"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Enable Configuration Mode"] = "Enable Configuration Mode"
--[[ koKR ]] L["Enable Startup Message"] = "Enable Startup Message"
--[[ koKR ]] L["Enable \"bloattest\""] = "Enable \"bloattest\""
--[[ koKR ]] L["Perform \"/console bloattest 1\" at startup"] = "Perform \"/console bloattest 1\" at startup"
 
--[[ koKR ]] L["Nameplate Initialization Interval"] = "Nameplate Initialization Interval"
--[[ koKR ]] L["The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"] = "The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"
 
--[[ koKR ]] L["Class Colors"] = "Class Colors"
--[[ koKR ]] L["Customize class colors"] = "Customize class colors"
--[[ koKR ]] L["class color"] = "class color"
--[[ koKR ]] L["Reset to Defaults"] = "기본값으로 초기화"
--[[ koKR ]] L["Resets all colors to their defaults"] = "모든 색상을 기본값으로 초기화합니다."
 
--[[ koKR ]] L["Data Options"] = "데이터 설정"
--[[ koKR ]] L["Data options"] = "데이터에 대한 설정입니다."
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Enable Configuration Mode"] = "Enable Configuration Mode"
--[[ ruRU ]] L["Enable Startup Message"] = "Enable Startup Message"
--[[ ruRU ]] L["Enable \"bloattest\""] = "Enable \"bloattest\""
--[[ ruRU ]] L["Perform \"/console bloattest 1\" at startup"] = "Perform \"/console bloattest 1\" at startup"
 
--[[ ruRU ]] L["Nameplate Initialization Interval"] = "Nameplate Initialization Interval"
--[[ ruRU ]] L["The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"] = "The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"
 
--[[ ruRU ]] L["Class Colors"] = "Окраска классов"
--[[ ruRU ]] L["Customize class colors"] = "Настраивать окраски классов"
--[[ ruRU ]] L["class color"] = "class color"
--[[ ruRU ]] L["Reset to Defaults"] = "Сброс в настройки по умолчанию"
--[[ ruRU ]] L["Resets all colors to their defaults"] = "Сбрасывает все цвета в настройки по умолчанию"
 
--[[ ruRU ]] L["Data Options"] = "Настройка данных"
--[[ ruRU ]] L["Data options"] = "Настройка данных"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Enable Configuration Mode"] = "Enable Configuration Mode"
--[[ zhCN ]] L["Enable Startup Message"] = "Enable Startup Message"
--[[ zhCN ]] L["Enable \"bloattest\""] = "Enable \"bloattest\""
--[[ zhCN ]] L["Perform \"/console bloattest 1\" at startup"] = "Perform \"/console bloattest 1\" at startup"
 
--[[ zhCN ]] L["Nameplate Initialization Interval"] = "Nameplate Initialization Interval"
--[[ zhCN ]] L["The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"] = "The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"
 
--[[ zhCN ]] L["Class Colors"] = "职业颜色"
--[[ zhCN ]] L["Customize class colors"] = "自定义职业颜色"
--[[ zhCN ]] L["class color"] = "职业颜色"
--[[ zhCN ]] L["Reset to Defaults"] = "重置为默认"
--[[ zhCN ]] L["Resets all colors to their defaults"] = "将全部颜色设定重置为默认"
 
--[[ zhCN ]] L["Data Options"] = "数据选项"
--[[ zhCN ]] L["Data options"] = "数据选项"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Aloft"] = "Aloft"
--[[ zhTW ]] L["Unknown"] = "Unknown" -- unit name for "Unknown" units
 
--[[ zhTW ]] L["Enable Configuration Mode"] = "Enable Configuration Mode"
--[[ zhTW ]] L["Enable Startup Message"] = "Enable Startup Message"
--[[ zhTW ]] L["Enable \"bloattest\""] = "Enable \"bloattest\""
--[[ zhTW ]] L["Perform \"/console bloattest 1\" at startup"] = "Perform \"/console bloattest 1\" at startup"
 
--[[ zhTW ]] L["Nameplate Initialization Interval"] = "Nameplate Initialization Interval"
--[[ zhTW ]] L["The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"] = "The amount of time, in seconds, between proactive attempts to detect nameplates that are not yet visible (0.0 is as fast as possible; CAREFUL!)"
 
--[[ zhTW ]] L["Class Colors"] = "職業顏色"
--[[ zhTW ]] L["Customize class colors"] = "自定義職業顏色"
--[[ zhTW ]] L["class color"] = "職業顏色"
--[[ zhTW ]] L["Reset to Defaults"] = "重設回預設值"
--[[ zhTW ]] L["Resets all colors to their defaults"] = "重設全部顏色回預設值"
 
--[[ zhTW ]] L["Data Options"] = "資料選項"
--[[ zhTW ]] L["Data options"] = "資料選項"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.Aloft = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
\ No newline at end of file
AloftOptions/AloftBossIcon/AloftBossIconLocale.lua New file
0,0 → 1,192
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] L["Boss Icon"] = "Boss Icon"
--[[ enUS ]] L["Boss icon placement options"] = "Boss icon placement options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Enable boss icon display on the nameplate"] = "Enable boss icon display on the nameplate"
--[[ enUS ]] L["Size"] = "Size"
--[[ enUS ]] L["Size in pixels of the boss icon"] = "Size in pixels of the boss icon"
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust boss icon position"] = "Adjust boss icon position"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the boss icon"] = "X offset of the boss icon"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the boss icon"] = "Y offset of the boss icon"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the boss icon"] = "Sets the anchor for the boss icon"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the boss icon"] = "Sets the relative point on the health bar to anchor the boss icon"
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Sets the boss icon alpha"] = "Sets the boss icon alpha"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Boss Icon"] = "보스 아이콘"
--[[ koKR ]] L["Boss icon placement options"] = "보스 아이콘 배치 설정"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Enable boss icon display on the nameplate"] = "이름표에 보스 아이콘을 표시합니다."
--[[ koKR ]] L["Size"] = "크기"
--[[ koKR ]] L["Size in pixels of the boss icon"] = "보스 아이콘의 크기입니다."
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust boss icon position"] = "보스 아이콘 위치 조절"
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the boss icon"] = "보스 아이콘의 X 좌표 입니다."
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the boss icon"] = "보스 아이콘의 Y 좌표 입니다."
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the boss icon"] = "보스 아이콘의 앵커를 설정합니다."
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the boss icon"] = "생명력바에서 보스 아이콘의 앵커 위치를 설정합니다."
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Sets the boss icon alpha"] = "보스 아이콘의 투명도를 설정합니다."
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Boss Icon"] = "Иконка босса"
--[[ ruRU ]] L["Boss icon placement options"] = "Настрокий положения иконки босса"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Enable boss icon display on the nameplate"] = "Включить отображение значка босса на табличке"
--[[ ruRU ]] L["Size"] = "Размер"
--[[ ruRU ]] L["Size in pixels of the boss icon"] = "Размер значка босса в пикселях"
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust boss icon position"] = "Задать место иконки босса"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the boss icon"] = "Смещение значка босса по X"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the boss icon"] = "Смещение значка босса по Y"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the boss icon"] = "Задает прикрепление значка босса"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the boss icon"] = "Задает точку для положения значка босса относительно полоски здоровья"
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Sets the boss icon alpha"] = "Задает прозрачность значка босса"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Boss Icon"] = "首领图标"
--[[ zhCN ]] L["Boss icon placement options"] = "首领图标位置相关设置"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Enable boss icon display on the nameplate"] = "在姓名板上显示首领图标"
--[[ zhCN ]] L["Size"] = "尺寸"
--[[ zhCN ]] L["Size in pixels of the boss icon"] = "首领图标的像素尺寸"
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust boss icon position"] = "调整首领图标的位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the boss icon"] = "首领图标的X轴偏移量"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the boss icon"] = "首领图标的Y轴偏移量"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the boss icon"] = "设定首领图标的锚点"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the boss icon"] = "设定首领图标固定在生命值显示条的相对位置"
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Sets the boss icon alpha"] = "设定首领图标的透明度"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Boss Icon"] = "首領圖示"
--[[ zhTW ]] L["Boss icon placement options"] = "首領圖示佈局選項"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Enable boss icon display on the nameplate"] = "在名牌顯示首領圖示"
--[[ zhTW ]] L["Size"] = "大小"
--[[ zhTW ]] L["Size in pixels of the boss icon"] = "首領圖示大小"
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust boss icon position"] = "首領圖示位置"
--[[ zhTW ]] L["X Offset"] = "X位移"
--[[ zhTW ]] L["X offset of the boss icon"] = "首領圖示X位移"
--[[ zhTW ]] L["Y Offset"] = "Y位移"
--[[ zhTW ]] L["Y offset of the boss icon"] = "首領圖示Y位移"
--[[ zhTW ]] L["Anchor"] = "定位點"
--[[ zhTW ]] L["Sets the anchor for the boss icon"] = "首領圖示定位點"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the boss icon"] = "首領圖示固定在生命力條的位置"
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the boss icon alpha"] = "首領圖示透明度"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftBossIconOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
AloftOptions/AloftBossIcon/AloftBossIconOptions.lua New file
0,0 → 1,115
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftBossIconOptions
if not L then return end
 
local AloftBossIcon = Aloft:GetModule("BossIcon", true) -- always enabled
if not AloftBossIcon then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.bossIcon =
{
type = 'group',
name = L["Boss Icon"],
desc = L["Boss icon placement options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftBossIcon:IsEnabled() or not AloftBossIcon.db or not AloftBossIcon.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enable boss icon display on the nameplate"],
get = function(i) return AloftBossIcon.db.profile.enable end,
set = function(i, v) AloftBossIcon.db.profile.enable = v AloftBossIcon:UpdateAll() end,
order = 1
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust boss icon position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftBossIcon:IsEnabled() or not AloftBossIcon.db or not AloftBossIcon.db.profile or not AloftBossIcon.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the boss icon"],
get = function(i) return AloftBossIcon.db.profile.point end,
set = function(i, v) AloftBossIcon.db.profile.point = v AloftBossIcon:UpdateAll() end,
values = { ["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"] },
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the boss icon"],
get = function(i) return AloftBossIcon.db.profile.relativeToPoint end,
set = function(i, v) AloftBossIcon.db.profile.relativeToPoint = v AloftBossIcon:UpdateAll() end,
values = { ["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"] },
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the boss icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftBossIcon.db.profile.offsetX end,
set = function(i, v) AloftBossIcon.db.profile.offsetX = v AloftBossIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the boss icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftBossIcon.db.profile.offsetY end,
set = function(i, v) AloftBossIcon.db.profile.offsetY = v AloftBossIcon:UpdateAll() end
},
},
},
size =
{
type = 'range',
width = 'full',
name = L["Size"],
desc = L["Size in pixels of the boss icon"],
min = 4,
max = 32,
step = 1,
disabled = function(i) return not AloftBossIcon.db.profile.enable end,
get = function(i) return AloftBossIcon.db.profile.size end,
set = function(i, v) AloftBossIcon.db.profile.size = v AloftBossIcon:UpdateAll() end
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the boss icon alpha"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftBossIcon.db.profile.enable end,
get = function(i) return AloftBossIcon.db.profile.alpha end,
set = function(i, v) AloftBossIcon.db.profile.alpha = v AloftBossIcon:UpdateAll() end
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftStackedPointsText/AloftStackedPointsTextOptions.lua New file
0,0 → 1,205
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftStackedPointsText", function()
 
if not Aloft:GetModule("StackedPointsText", true) then return end
if not AloftLocale or not AloftLocale.AloftStackedPointsTextOptions then return end
 
-----------------------------------------------------------------------------
 
local AloftStackedPointsText = Aloft:GetModule("StackedPointsText")
local L = AloftLocale.AloftStackedPointsTextOptions
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.stackedPointsText =
{
type = 'group',
name = L["Stacked Points Text"],
desc = L["Stacked points (combo point/lacerate/sunder) text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftStackedPointsText:IsEnabled() or not AloftStackedPointsText.db or not AloftStackedPointsText.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show stacked points text"],
get = function(i) return AloftStackedPointsText.db.profile.enable end,
set = function(i, v) AloftStackedPointsText.db.profile.enable = v AloftStackedPointsText:Update() end,
order = 1
},
interval =
{
type = 'range',
width = 'full',
name = L["Stacked Points Update Interval"],
desc = L["The amount of time, in seconds, between updates (0.0 is as fast as possible"],
min = 0.0,
max = 5.0,
step = 0.01,
disabled = function(i) return not AloftStackedPointsText.db.profile.enable end,
get = function(i) return AloftStackedPointsText.db.profile.interval end,
set = function(i, v) AloftStackedPointsText.db.profile.interval = v AloftStackedPointsText:Update() end,
order = 2,
},
color =
{
type = 'group',
name = L["Color"],
desc = L["Sets the stacked points text color"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftStackedPointsText:IsEnabled() or not AloftStackedPointsText.db or not AloftStackedPointsText.db.profile or not AloftStackedPointsText.db.profile.enable end,
args =
{
maxColor =
{
type = 'color',
width = 'full',
name = L["Max Color"],
desc = L["Sets the stacked points text color (maximum debuff time left)"],
get = function(i) return unpack(AloftStackedPointsText.db.profile.color) end,
set = function(i, r, g, b, a) AloftStackedPointsText.db.profile.color = { r, g, b, a } AloftStackedPointsText:Update() end,
hasAlpha = true
},
minColor =
{
type = 'color',
width = 'full',
name = L["Min Color"],
desc = L["Sets the stacked points text color (minimum debuff time left)"],
order = 3,
get = function(i) return unpack(AloftStackedPointsText.db.profile.minColor) end,
set = function(i, r, g, b, a) AloftStackedPointsText.db.profile.minColor = { r, g, b, a } AloftStackedPointsText:Update() end,
hasAlpha = true
},
},
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust stacked points text position"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftStackedPointsText:IsEnabled() or not AloftStackedPointsText.db or not AloftStackedPointsText.db.profile or not AloftStackedPointsText.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the stacked points text"],
get = function(i) return AloftStackedPointsText.db.profile.point end,
set = function(i, v) AloftStackedPointsText.db.profile.point = v AloftStackedPointsText:Update() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the stacked points text"],
get = function(i) return AloftStackedPointsText.db.profile.relativeToPoint end,
set = function(i, v) AloftStackedPointsText.db.profile.relativeToPoint = v AloftStackedPointsText:Update() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the stacked points text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftStackedPointsText.db.profile.offsetX end,
set = function(i, v) AloftStackedPointsText.db.profile.offsetX = v AloftStackedPointsText:Update() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the stacked points text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftStackedPointsText.db.profile.offsetY end,
set = function(i, v) AloftStackedPointsText.db.profile.offsetY = v AloftStackedPointsText:Update() end
},
},
},
typeface =
{
type = "group",
name = L["Typeface"],
desc = L["Stacked points text typeface options"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftStackedPointsText:IsEnabled() or not AloftStackedPointsText.db or not AloftStackedPointsText.db.profile or not AloftStackedPointsText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for stacked points text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.stackedPointsText.args.typeface.args.font.values) do
if v == AloftStackedPointsText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftStackedPointsText.db.profile.font = Aloft.Options.args.stackedPointsText.args.typeface.args.font.values[v]
AloftStackedPointsText:Update()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the stacked points text"],
max = 40,
min = 5,
step = 1,
get = function(i) return AloftStackedPointsText.db.profile.fontSize end,
set = function(i, value) AloftStackedPointsText.db.profile.fontSize = value AloftStackedPointsText:Update() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on stacked points text"],
get = function(i) return AloftStackedPointsText.db.profile.shadow end,
set = function(i, v) AloftStackedPointsText.db.profile.shadow = v AloftStackedPointsText:Update() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the font outline for stacked points text"],
get = function(i) return AloftStackedPointsText.db.profile.outline end,
set = function(i, value) AloftStackedPointsText.db.profile.outline = value AloftStackedPointsText:Update() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftStackedPointsText/AloftStackedPointsTextLocale.lua New file
0,0 → 1,368
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
if not AloftLocale or not AloftLocale.AloftModules then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
local mL = AloftLocale.AloftModules
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftStackedPointsText", function()
 
-----------------------------------------------------------------------------
 
-- TODO: on the surface, this wastes space in the enUS locale; the metatable could just return the canonical string as the localization;
-- BUT, this serves as a default locale, and also will permit the metatable to check/notify on missing locale strings
 
--[[ enUS ]] L["Stacked Points Text"] = "Stacked Points Text"
--[[ enUS ]] L["Stacked points (combo point/lacerate/sunder) text options"] = "Stacked points (combo point/lacerate/sunder) text options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Show stacked points text"] = "Show stacked points text"
--[[ enUS ]] L["Stacked Points Update Interval"] = "Stacked Points Update Interval"
--[[ enUS ]] L["The amount of time, in seconds, between updates (0.0 is as fast as possible"] = "The amount of time, in seconds, between updates (0.0 is as fast as possible"
 
--[[ enUS ]] L["Typeface"] = "Typeface"
--[[ enUS ]] L["Stacked points text typeface options"] = "Stacked points text typeface options"
--[[ enUS ]] L["Font"] = "Font"
--[[ enUS ]] L["Sets the font for stacked points text"] = "Sets the font for stacked points text"
--[[ enUS ]] L["Font Size"] = "Font Size"
--[[ enUS ]] L["Sets the font height of the stacked points text"] = "Sets the font height of the stacked points text"
--[[ enUS ]] L["Font Shadow"] = "Font Shadow"
--[[ enUS ]] L["Show font shadow on stacked points text"] = "Show font shadow on stacked points text"
--[[ enUS ]] L["Outline"] = "Outline"
--[[ enUS ]] L["Sets the font outline for stacked points text"] = "Sets the font outline for stacked points text"
 
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust stacked points text position"] = "Adjust stacked points text position"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the stacked points text"] = "Sets the anchor for the stacked points text"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the stacked points text"] = "Sets the relative point on the health bar to anchor the stacked points text"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the stacked points text"] = "X offset of the stacked points text"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the stacked points text"] = "Y offset of the stacked points text"
 
--[[ enUS ]] L["Color"] = "Color"
--[[ enUS ]] L["Sets the stacked points text color"] = "Sets the stacked points text color"
--[[ enUS ]] L["Max Color"] = "Max Color"
--[[ enUS ]] L["Sets the stacked points text color (maximum debuff time left)"] = "Sets the stacked points text color (maximum debuff time left)"
--[[ enUS ]] L["Min Color"] = "Min Color"
--[[ enUS ]] L["Sets the stacked points text color (minimum debuff time left)"] = "Sets the stacked points text color (minimum debuff time left)"
 
--[[ enUS ]] L["None"] = "None"
--[[ enUS ]] L["Normal"] = "Normal"
--[[ enUS ]] L["Thick"] = "Thick"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftStackedPointsText"] = "AloftStackedPointsText"
--[[ enUS ]] mL["Display stacked points (combo point/lacerate/sunder counts) on nameplates"] = "Display stacked points (combo point/lacerate/sunder counts) on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftStackedPointsText", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Stacked Points Text"] = "Stacked Points Text"
--[[ koKR ]] L["Stacked points (combo point/lacerate/sunder) text options"] = "Stacked points (stacked/lacerate/sunder) text options"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Show stacked points text"] = "Show stacked points text"
--[[ koKR ]] L["Stacked Points Update Interval"] = "Stacked Points Update Interval"
--[[ koKR ]] L["The amount of time, in seconds, between updates (0.0 is as fast as possible"] = "The amount of time, in seconds, between updates (0.0 is as fast as possible"
--[[ koKR ]] L["Font"] = "글꼴"
--[[ koKR ]] L["Sets the font for stacked points text"] = "Sets the font for stacked points text"
 
--[[ koKR ]] L["Typeface"] = "서체"
--[[ koKR ]] L["Stacked points text typeface options"] = "Stacked points text typeface options"
--[[ koKR ]] L["Font Size"] = "글꼴 크기"
--[[ koKR ]] L["Sets the font height of the stacked points text"] = "Sets the font height of the stacked points text"
--[[ koKR ]] L["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] L["Show font shadow on stacked points text"] = "Show font shadow on stacked points text"
--[[ koKR ]] L["Outline"] = "테두리"
--[[ koKR ]] L["Sets the font outline for stacked points text"] = "Sets the font outline for stacked points text"
 
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust stacked points text position"] = "Adjust stacked points text position"
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the stacked points text"] = "Sets the anchor for the stacked points text"
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the stacked points text"] = "Sets the relative point on the health bar to anchor the stacked points text"
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the stacked points text"] = "X offset of the stacked points text"
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the stacked points text"] = "Y offset of the stacked points text"
 
--[[ koKR ]] L["Color"] = "색상"
--[[ koKR ]] L["Sets the stacked points text color"] = "Sets the stacked points text color"
--[[ koKR ]] L["Max Color"] = "Max Color"
--[[ koKR ]] L["Sets the stacked points text color (maximum debuff time left)"] = "Sets the stacked points text color (maximum debuff time left)"
--[[ koKR ]] L["Min Color"] = "Min Color"
--[[ koKR ]] L["Sets the stacked points text color (minimum debuff time left)"] = "Sets the stacked points text color (minimum debuff time left)"
 
--[[ koKR ]] L["None"] = "없음"
--[[ koKR ]] L["Normal"] = "기본"
--[[ koKR ]] L["Thick"] = "굵게"
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftStackedPointsText"] = "AloftStackedPointsText"
--[[ koKR ]] mL["Display stacked points (combo point/lacerate/sunder counts) on nameplates"] = "Display stacked points (combo point/lacerate/sunder counts) on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftStackedPointsText", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Stacked Points Text"] = "Текст стаков"
--[[ ruRU ]] L["Stacked points (combo point/lacerate/sunder) text options"] = "Настройки текста стаков (стаки/растерзания/раскол)"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Show stacked points text"] = "Показывать текст стаков"
--[[ ruRU ]] L["Stacked Points Update Interval"] = "Скорость обновления стаков"
--[[ ruRU ]] L["The amount of time, in seconds, between updates (0.0 is as fast as possible"] = "Значение времени в секундах, между обновлениями (0.0 максимальная скорость"
--[[ ruRU ]] L["Font"] = "Шрифт"
--[[ ruRU ]] L["Sets the font for stacked points text"] = "Установка шрифта текста стаков"
 
--[[ ruRU ]] L["Typeface"] = "Шрифт"
--[[ ruRU ]] L["Stacked points text typeface options"] = "Настройка шрифта текста стаков"
--[[ ruRU ]] L["Font Size"] = "Размер шрифта"
--[[ ruRU ]] L["Sets the font height of the stacked points text"] = "Установка размера шрифта текста стаков"
--[[ ruRU ]] L["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] L["Show font shadow on stacked points text"] = "Отображать тень шрифта текста стаков"
--[[ ruRU ]] L["Outline"] = "Контур"
--[[ ruRU ]] L["Sets the font outline for stacked points text"] = "Установка контура шрифта текста стаков"
 
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust stacked points text position"] = "Регулировка расположения текста стаков"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the stacked points text"] = "Установка точки прикрепленичя текста стаков"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the stacked points text"] = "Задает точку для положения полоски здоровья относительно тексту стаков"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the stacked points text"] = "Смещение текста стаков по X"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the stacked points text"] = "Смещение текста стаков по Y"
 
--[[ ruRU ]] L["Color"] = "Цвет"
--[[ ruRU ]] L["Sets the stacked points text color"] = "Установка цвета текста стаков"
--[[ ruRU ]] L["Max Color"] = "Цвет макс"
--[[ ruRU ]] L["Sets the stacked points text color (maximum debuff time left)"] = "Установка цвета текста стаков (максимальный остаток времени дебаффа)"
--[[ ruRU ]] L["Min Color"] = "Цвет мин"
--[[ ruRU ]] L["Sets the stacked points text color (minimum debuff time left)"] = "Установка цвета текста стаков (минимальный остаток времени дебаффа)"
 
--[[ ruRU ]] L["None"] = "Нет"
--[[ ruRU ]] L["Normal"] = "Обычно"
--[[ ruRU ]] L["Thick"] = "Жирный"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftStackedPointsText"] = "AloftStackedPointsText"
--[[ ruRU ]] mL["Display stacked points (combo point/lacerate/sunder counts) on nameplates"] = "Отображает стаки (значение приёмов в серии/растерзать/раскол брони)"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftStackedPointsText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Stacked Points Text"] = "连击点提示文字"
--[[ zhCN ]] L["Stacked points (combo point/lacerate/sunder) text options"] = "累积点数(叠加/割裂/破甲计数)文本选项"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Show stacked points text"] = "显示累积点数文本"
--[[ zhCN ]] L["Stacked Points Update Interval"] = "累积点数更新频率"
--[[ zhCN ]] L["The amount of time, in seconds, between updates (0.0 is as fast as possible"] = "更新速度(单位为秒,0.0为最快)"
--[[ zhCN ]] L["Font"] = "字体"
--[[ zhCN ]] L["Sets the font for stacked points text"] = "设置累积点数的文本"
 
--[[ zhCN ]] L["Typeface"] = "式样"
--[[ zhCN ]] L["Stacked points text typeface options"] = "累积点数文本样式选项"
--[[ zhCN ]] L["Font Size"] = "字号"
--[[ zhCN ]] L["Sets the font height of the stacked points text"] = "设置累积点数文本大小"
--[[ zhCN ]] L["Font Shadow"] = "字体阴影"
--[[ zhCN ]] L["Show font shadow on stacked points text"] = "累积点数文本显示阴影"
--[[ zhCN ]] L["Outline"] = "轮廓"
--[[ zhCN ]] L["Sets the font outline for stacked points text"] = "累积点数文本使用描边"
 
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust stacked points text position"] = "调整累积点数文本位置"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the stacked points text"] = "设置累积点数文本锚点"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the stacked points text"] = "设置将累积点数附着到生命条的哪个位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the stacked points text"] = "累积点数水平偏移"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the stacked points text"] = "累积点数垂直偏移"
 
--[[ zhCN ]] L["Color"] = "颜色"
--[[ zhCN ]] L["Sets the stacked points text color"] = "累积点数文本颜色"
--[[ zhCN ]] L["Max Color"] = "最大值颜色"
--[[ zhCN ]] L["Sets the stacked points text color (maximum debuff time left)"] = "累积点数文本的颜色(最大debuff时间剩余)"
--[[ zhCN ]] L["Min Color"] = "最小值颜色"
--[[ zhCN ]] L["Sets the stacked points text color (minimum debuff time left)"] = "累积点数文本的颜色(最小debuff时间剩余)"
 
--[[ zhCN ]] L["None"] = "无"
--[[ zhCN ]] L["Normal"] = "正常"
--[[ zhCN ]] L["Thick"] = "粗"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftStackedPointsText"] = "累积点数文本"
--[[ zhCN ]] mL["Display stacked points (combo point/lacerate/sunder counts) on nameplates"] = "显示累积点数(连击点/割裂/破甲层数)"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftStackedPointsText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Stacked Points Text"] = "連擊點提示文字"
--[[ zhTW ]] L["Stacked points (combo point/lacerate/sunder) text options"] = "累積點數(疊加/割裂/破甲計數)文本選項"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Show stacked points text"] = "顯示累積點數文本"
--[[ zhTW ]] L["Stacked Points Update Interval"] = "累積點數更新頻率"
--[[ zhTW ]] L["The amount of time, in seconds, between updates (0.0 is as fast as possible"] = "更新速度(單位為秒,0.0為最快)"
--[[ zhTW ]] L["Font"] = "字體"
--[[ zhTW ]] L["Sets the font for stacked points text"] = "設置累積點數的文本"
 
--[[ zhTW ]] L["Typeface"] = "式樣"
--[[ zhTW ]] L["Stacked points text typeface options"] = "累積點數文本樣式選項"
--[[ zhTW ]] L["Font Size"] = "字型大小"
--[[ zhTW ]] L["Sets the font height of the stacked points text"] = "設置累積點數文本大小"
--[[ zhTW ]] L["Font Shadow"] = "字體陰影"
--[[ zhTW ]] L["Show font shadow on stacked points text"] = "累積點數文本顯示陰影"
--[[ zhTW ]] L["Outline"] = "輪廓"
--[[ zhTW ]] L["Sets the font outline for stacked points text"] = "累積點數文本使用描邊"
 
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust stacked points text position"] = "調整累積點數文本位置"
--[[ zhTW ]] L["Anchor"] = "錨點"
--[[ zhTW ]] L["Sets the anchor for the stacked points text"] = "設置累積點數文本錨點"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the stacked points text"] = "設置將累積點數附著到生命條的哪個位置"
--[[ zhTW ]] L["X Offset"] = "X軸偏移"
--[[ zhTW ]] L["X offset of the stacked points text"] = "累積點數水平偏移"
--[[ zhTW ]] L["Y Offset"] = "Y軸偏移"
--[[ zhTW ]] L["Y offset of the stacked points text"] = "累積點數垂直偏移"
 
--[[ zhTW ]] L["Color"] = "顏色"
--[[ zhTW ]] L["Sets the stacked points text color"] = "累積點數文本顏色"
--[[ zhTW ]] L["Max Color"] = "最大值顏色"
--[[ zhTW ]] L["Sets the stacked points text color (maximum debuff time left)"] = "累積點數文本的顏色(最大debuff時間剩餘)"
--[[ zhTW ]] L["Min Color"] = "最小值顏色"
--[[ zhTW ]] L["Sets the stacked points text color (minimum debuff time left)"] = "累積點數文本的顏色(最小debuff時間剩餘)"
 
--[[ zhTW ]] L["None"] = "無"
--[[ zhTW ]] L["Normal"] = "正常"
--[[ zhTW ]] L["Thick"] = "粗"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftStackedPointsText"] = "累積點數文本"
--[[ zhTW ]] mL["Display stacked points (combo point/lacerate/sunder counts) on nameplates"] = "顯示累積點數(連擊點/割裂/破甲層數)"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftStackedPointsText", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftStackedPointsTextOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftStackedPointsText/AloftStackedPointsTextModuleOptions.lua New file
0,0 → 1,21
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
if not AloftLocale or not AloftLocale.AloftModules then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
 
Aloft.Options.args.modules.args.aloftStackedPointsText =
{
type = 'toggle',
width = 'full',
name = L["AloftStackedPointsText"],
desc = L["Display stacked points (combo point/lacerate/sunder counts) on nameplates"],
get = function(i) return AloftModules.db.profile.AloftStackedPointsText end,
set = function(i, v) AloftModules.db.profile.AloftStackedPointsText = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftPetOwnersNameData/AloftPetOwnersNameDataLocale.lua New file
0,0 → 1,170
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local tL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPetOwnersName", function()
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] tL["Pet Owner's Names"] = "Pet Owner's Names"
--[[ enUS ]] tL["Select how to show pet owner's names"] = "Select how to show pet owner's names"
 
--[[ enUS ]] tL["NONE"] = "None"
--[[ enUS ]] tL["HYPHEN"] = "Pet - Owner"
--[[ enUS ]] tL["SLASH"] = "Pet / Owner"
--[[ enUS ]] tL["BRACKET"] = "Pet (Owner)"
--[[ enUS ]] tL["COLON"] = "Pet : Owner"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftPetOwnersName"] = "AloftPetOwnersName"
--[[ enUS ]] mL["Gather and display pet owner's names on nameplates"] = "Gather and display pet owner's names on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPetOwnersName", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] tL["Pet Owner's Names"] = "소환수 소유자명"
--[[ koKR ]] tL["Select how to show pet owner's names"] = "소솬수 소유자명의 표시 방법을 선택합니다."
 
--[[ koKR ]] tL["NONE"] = "없음"
--[[ koKR ]] tL["HYPHEN"] = "소환수 - 소유자"
--[[ koKR ]] tL["SLASH"] = "소환수 / 소유자"
--[[ koKR ]] tL["BRACKET"] = "소환수 (소유자)"
--[[ koKR ]] tL["COLON"] = "소환수 : 소유자"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftPetOwnersName"] = "AloftPetOwnersName"
--[[ koKR ]] mL["Gather and display pet owner's names on nameplates"] = "Gather and display pet owner's names on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPetOwnersName", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] tL["Select how to show pet owner's names"] = "Выбрать, как отображать имена владельцев питомцев"
--[[ ruRU ]] tL["Pet Owner's Names"] = "Имена владельцев питомцев"
 
--[[ ruRU ]] tL["NONE"] = "Нету"
--[[ ruRU ]] tL["HYPHEN"] = "Питомец - Хозяин"
--[[ ruRU ]] tL["SLASH"] = "Питомец / Хозяин"
--[[ ruRU ]] tL["BRACKET"] = "Питомец (Хозяин)"
--[[ ruRU ]] tL["COLON"] = "Питомец : Хозяин"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftPetOwnersName"] = "AloftPetOwnersName"
--[[ ruRU ]] mL["Gather and display pet owner's names on nameplates"] = "Отображает имя хозяина питомца"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPetOwnersName", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] tL["Pet Owner's Names"] = "宠物主人名称"
--[[ zhCN ]] tL["Select how to show pet owner's names"] = "设定宠物主人名称的显示方式"
 
--[[ zhCN ]] tL["NONE"] = "无"
--[[ zhCN ]] tL["HYPHEN"] = "宠物名 - 主人名"
--[[ zhCN ]] tL["SLASH"] = "宠物名 / 主人名"
--[[ zhCN ]] tL["BRACKET"] = "宠物名(主人名)"
--[[ zhCN ]] tL["COLON"] = "宠物名 : 主人名"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftPetOwnersName"] = "宠物主人名"
--[[ zhCN ]] mL["Gather and display pet owner's names on nameplates"] = "在姓名板上显示宠物主人的名字"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPetOwnersName", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] tL["Pet Owner's Names"] = "寵物主人的名字"
--[[ zhTW ]] tL["Select how to show pet owner's names"] = "選擇怎樣顯示寵物主人的名字"
 
--[[ zhTW ]] tL["NONE"] = "無"
--[[ zhTW ]] tL["HYPHEN"] = "寵物 - 主人"
--[[ zhTW ]] tL["SLASH"] = "寵物 / 主人"
--[[ zhTW ]] tL["BRACKET"] = "寵物 (主人)"
--[[ zhTW ]] tL["COLON"] = "寵物 : 主人"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftPetOwnersName"] = "寵物主人名"
--[[ zhTW ]] mL["Gather and display pet owner's names on nameplates"] = "在名牌上顯示寵物主人的名字"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPetOwnersName", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftPetOwnersNameTextOptions = setmetatable(tL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
tL = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftPetOwnersNameData/AloftPetOwnersNameDataModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftPetOwnersName =
{
type = 'toggle',
width = 'full',
name = L["AloftPetOwnersName"],
desc = L["Gather and display pet owner's names on nameplates"],
get = function(i) return AloftModules.db.profile.AloftPetOwnersName end,
set = function(i, v) AloftModules.db.profile.AloftPetOwnersName = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftPetOwnersNameData/AloftPetOwnersNameDataOptions.lua New file
0,0 → 1,58
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPetOwnersName", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftPetOwnersNameTextOptions
if not L then return end
 
local AloftNameText = Aloft:GetModule("NameText", true)
if not AloftNameText then return end
 
local AloftPetOwnersNameData = Aloft:GetModule("PetOwnersNameData", true)
if not AloftPetOwnersNameData then return end
 
-----------------------------------------------------------------------------
 
local attachFormats =
{
["NONE"] = "",
["HYPHEN"] = "[PetOwnersName:Prefix(\" - \")]",
["SLASH"] = "[PetOwnersName:Prefix(\" / \")]",
["BRACKET"] = "[PetOwnersName:Surround(\" (\", \")\")]",
["COLON"] = "[PetOwnersName:Prefix(\" : \")]",
}
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.nameText.args.petOwnersName =
{
type = 'select',
width = 'full',
name = L["Pet Owner's Names"],
desc = L["Select how to show pet owner's names"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftNameText:IsEnabled() or not AloftPetOwnersNameData:IsEnabled() or not AloftNameText.db or not AloftNameText.db.profile or not AloftNameText.db.profile.enable end,
get = function(i) return AloftNameText.db.profile.petOwnersName or "NONE" end,
set = function(i, v) AloftNameText.db.profile.petOwnersName = v AloftNameText:UpdateFormatTag() Aloft:DetermineDataSources() AloftNameText:UpdateAll() end,
values = { NONE = L["NONE"], HYPHEN = L["HYPHEN"], SLASH = L["SLASH"], BRACKET = L["BRACKET"], COLON = L["COLON"] },
}
 
-----------------------------------------------------------------------------
 
local function NameTextTagModifier()
AloftNameText.db.profile.format = AloftNameText.db.profile.format..attachFormats[AloftNameText.db.profile.petOwnersName or "NONE"]
end
 
AloftNameText:RegisterFormatTagModifier(2, NameTextTagModifier)
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftAliasData/AloftAliasDataOptions.lua New file
0,0 → 1,27
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftAliasDataOptions
if not L then return end
 
local AloftAliasData = Aloft:GetModule("AliasData", true)
if not AloftAliasData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.alias =
{
type = "execute",
width = 'full',
name = L["Reset Aliases"],
desc = L["Empties the alias database"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAliasData:IsEnabled() end,
func = function(i) AloftAliasData:ClearAllData() end,
confirm = function(i) return L["You are about to empty your alias database.\nThis action cannot be undone. Proceed?"] end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftAliasData/AloftAliasDataLocale.lua New file
0,0 → 1,74
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Reset Aliases"] = "Reset Aliases"
--[[ enUS ]] L["Empties the alias database"] = "Empties the alias database"
 
--[[ enUS ]] L["You are about to empty your alias database.\nThis action cannot be undone. Proceed?"] = "You are about to empty your alias database.\nThis action cannot be undone. Proceed?"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Reset Aliases"] = "별명 초기화"
--[[ koKR ]] L["Empties the alias database"] = "별명 데이터베이스를 삭제합니다."
 
--[[ koKR ]] L["You are about to empty your alias database.\nThis action cannot be undone. Proceed?"] = "별명 데이터베이스를 삭제합니다.\n이 동작은 되돌릴 수 없습니다. 계속 하시겠습니까?"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Reset Aliases"] = "Сбросить сокарщения"
--[[ ruRU ]] L["Empties the alias database"] = "Очищает базу данных сокращений"
 
--[[ ruRU ]] L["You are about to empty your alias database.\nThis action cannot be undone. Proceed?"] = "Вы хотите сбросить таблицу сокращений имен.\nРезультат будет необратим. Продолжить?"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Reset Aliases"] = "重设绰号"
--[[ zhCN ]] L["Empties the alias database"] = "清空绰号资料库"
 
--[[ zhCN ]] L["You are about to empty your alias database.\nThis action cannot be undone. Proceed?"] = "你是否真得要清空绰号资料库?本操作不可逆!"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Reset Aliases"] = "重設別名"
--[[ zhTW ]] L["Empties the alias database"] = "清空別名資料庫"
 
--[[ zhTW ]] L["You are about to empty your alias database.\nThis action cannot be undone. Proceed?"] = "你是否真的清空別名資料庫?"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftAliasDataOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
AloftOptions/AloftFaction/AloftFactionLocale.lua New file
0,0 → 1,144
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local L = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftFaction", function()
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Save Faction Data"] = "Save Faction Data"
--[[ enUS ]] L["Stores faction data between sessions"] = "Stores faction data between sessions"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftFaction"] = "AloftFaction"
--[[ enUS ]] mL["Gather faction data"] = "Gather faction data"
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftFaction", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Save Faction Data"] = "Save Faction Data"
--[[ koKR ]] L["Stores faction data between sessions"] = "Stores faction data between sessions"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftFaction"] = "AloftFaction"
--[[ koKR ]] mL["Gather faction data"] = "Gather faction data"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftFaction", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Save Faction Data"] = "Save Faction Data"
--[[ ruRU ]] L["Stores faction data between sessions"] = "Stores faction data between sessions"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftFaction"] = "AloftFaction"
--[[ ruRU ]] mL["Gather faction data"] = "Gather faction data"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftFaction", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Save Faction Data"] = "Save Faction Data"
--[[ zhCN ]] L["Stores faction data between sessions"] = "Stores faction data between sessions"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftFaction"] = "AloftFaction"
--[[ zhCN ]] mL["Gather faction data"] = "Gather faction data"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftFaction", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Save Faction Data"] = "Save Faction Data"
--[[ zhTW ]] L["Stores faction data between sessions"] = "Stores faction data between sessions"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftFaction"] = "AloftFaction"
--[[ zhTW ]] mL["Gather faction data"] = "Gather faction data"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftFaction", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftFactionDataOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
AloftOptions/AloftFaction/AloftFactionModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftFaction =
{
type = 'toggle',
width = 'full',
name = L["AloftFaction"],
desc = L["Gather faction data"],
get = function(i) return AloftModules.db.profile.AloftFaction end,
set = function(i, v) AloftModules.db.profile.AloftFaction = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftFaction/AloftFactionDataOptions.lua New file
0,0 → 1,32
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftFaction", function()
 
local L = AloftLocale.AloftFactionDataOptions
if not L then return end
 
local AloftFactionData = Aloft:GetModule("FactionData", true)
if not AloftFactionData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.faction =
{
type = 'toggle',
width = 'full',
name = L["Save Faction Data"],
desc = L["Stores faction data between sessions"],
get = function(i) return AloftFactionData.db.profile.save end,
set = AloftFactionData.SetSaveData,
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftPresets/AloftPresetsLocale.lua New file
0,0 → 1,142
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local L = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPresets", function()
 
-----------------------------------------------------------------------------
 
-- leave "enUS" active at all times, as a default locale
 
--[[ enUS ]] L["Presets"] = "Presets"
--[[ enUS ]] L["Preset configurations"] = "Preset configurations"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftPresets"] = "AloftPresets"
--[[ enUS ]] mL["Enable access to preset configurations"] = "Enable access to preset configurations"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPresets", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Presets"] = "프리셋"
--[[ koKR ]] L["Preset configurations"] = "프리셋 환경설정"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftPresets"] = "AloftPresets"
--[[ koKR ]] mL["Enable access to preset configurations"] = "Enable access to preset configurations"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPresets", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Presets"] = "Предустановки"
--[[ ruRU ]] L["Preset configurations"] = "Настройка предустановок"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftPresets"] = "AloftPresets"
--[[ ruRU ]] mL["Enable access to preset configurations"] = "Включает доступ к предустановкам настроек"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPresets", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Presets"] = "设置预案"
--[[ zhCN ]] L["Preset configurations"] = "设置预案选项"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftPresets"] = "预设样式"
--[[ zhCN ]] mL["Enable access to preset configurations"] = "调用预设的配置文件"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPresets", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Presets"] = "預先設定"
--[[ zhTW ]] L["Preset configurations"] = "預先設定"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftPresets"] = "預設樣式"
--[[ zhTW ]] mL["Enable access to preset configurations"] = "調用預設的設定檔"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPresets", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftPresetsOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftPresets/AloftPresetsModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftPresets =
{
type = 'toggle',
width = 'full',
name = L["AloftPresets"],
desc = L["Enable access to preset configurations"],
get = function(i) return AloftModules.db.profile.AloftPresets end,
set = function(i, v) AloftModules.db.profile.AloftPresets = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftPresets/AloftPresetsOptions.lua New file
0,0 → 1,53
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPresets", function()
 
-----------------------------------------------------------------------------
--
-- To add more presets, create your own files with their data table
-- And add them into Aloft's by using:
-- Aloft:GetModule("Presets"):AddPreset(presetName, presetDataTable)
--
-- The table contains keys which are module db namespaces, and the values
-- that they override from the default
--
-- Guideline list of interrelated variables:
-- healthText: enable, mode, format
-- guildText: enable, attachFormat, attachToName, useShort, showOwn, nameText.format
-- guildText: enable, attachToName, useShort, showOwn, format
-- levelText: enable, showRace, showClassification, showCreatureType, format
--
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftPresetsOptions
if not L then return end
 
local AloftPresets = Aloft:GetModule("Presets", true)
if not AloftPresets then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.basic.args.presets =
{
type = 'select',
width = 'full',
name = L["Presets"],
desc = L["Preset configurations"],
order = 700,
disabled = function(i) return not Aloft:IsEnabled() or not AloftPresets:IsEnabled() end,
get = function(i) return AloftPresets.Last end,
set = function(i, v) AloftPresets:Set(v) end,
disabled = function(i) return not Aloft:IsEnabled() end,
values = AloftPresets.Values,
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftNameText/AloftNameTextOptions.lua New file
0,0 → 1,423
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftNameText
if not L then return end
 
local AloftNameText = Aloft:GetModule("NameText", true)
if not AloftNameText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.nameText =
{
type = 'group',
name = L["Name Text"],
desc = L["Nameplate text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftNameText:IsEnabled() or not AloftNameText.db or not AloftNameText.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show unit names"],
get = function(i) return AloftNameText.db.profile.enable end,
set = function(i, v) AloftNameText.db.profile.enable = v Aloft:DetermineDataSources() AloftNameText:UpdateAll() end,
order = 1
},
useAliases =
{
type = 'toggle',
width = 'full',
name = L["Use Aliases"],
desc = L["Uses user defined aliases"],
disabled = function(i) return not AloftNameText.db.profile.enable end,
get = function(i) return AloftNameText.db.profile.useAliases end,
set = function(i, v) AloftNameText.db.profile.useAliases = v AloftNameText:UpdateFormatTag() Aloft:DetermineDataSources() AloftNameText:UpdateAll() end,
order = 2
},
setAlias =
{
type = 'input',
width = 'full',
name = L["Set Alias"],
desc = L["Sets the alias for your current target. An empty alias will return the unit to its original name"],
usage = L["<Any String>"],
disabled = function(i) return not AloftNameText.db.profile.enable or not AloftNameText.db.profile.useAliases end,
get = function(i) return "" end,
set = function(i, v) Aloft:GetModule("AliasData"):SetAlias(UnitName("target"), v) end,
order = 3
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Nameplate text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftNameText:IsEnabled() or not AloftNameText.db or not AloftNameText.db.profile or not AloftNameText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for nameplate text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.nameText.args.typeface.args.font.values) do
if v == AloftNameText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftNameText.db.profile.font = Aloft.Options.args.nameText.args.typeface.args.font.values[v]
AloftNameText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the nameplate text"],
max = 16,
min = 4,
step = 1,
get = function(i) return AloftNameText.db.profile.fontSize end,
set = function(i, value) AloftNameText.db.profile.fontSize = value AloftNameText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on nameplate text"],
get = function(i) return AloftNameText.db.profile.shadow end,
set = function(i, v) AloftNameText.db.profile.shadow = v AloftNameText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the font outline for nameplate text"],
get = function(i) return AloftNameText.db.profile.outline end,
set = function(i, value) AloftNameText.db.profile.outline = value AloftNameText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
alignment =
{
type = 'select',
width = 'full',
name = L["Alignment"],
desc = L["Sets the alignment of the nameplate text"],
disabled = function(i) return not AloftNameText.db.profile.enable end,
get = function(i) return AloftNameText.db.profile.alignment end,
set = function(i, value) AloftNameText.db.profile.alignment = value AloftNameText:UpdateAll() end,
values = { ["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust nameplate text position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftNameText:IsEnabled() or not AloftNameText.db or not AloftNameText.db.profile or not AloftNameText.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the text"],
min = -640,
max = 640,
step = 1,
get = function(i) return AloftNameText.db.profile.offsets.left end,
set = function(i, v) AloftNameText.db.profile.offsets.left = v AloftNameText:UpdateAll() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the text"],
min = -640,
max = 640,
step = 1,
get = function(i) return AloftNameText.db.profile.offsets.right end,
set = function(i, v) AloftNameText.db.profile.offsets.right = v AloftNameText:UpdateAll() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftNameText.db.profile.offsets.vertical end,
set = function(i, v) AloftNameText.db.profile.offsets.vertical = v AloftNameText:UpdateAll() end
},
},
},
overrideColors =
{
type = 'toggle',
width = 'full',
name = L["Override Colors"],
desc = L["Override the games colors for nameplate text"],
disabled = function(i) return not AloftNameText.db.profile.enable end,
get = function(i) return AloftNameText.db.profile.overrideColors end,
set = function(i, value) AloftNameText.db.profile.overrideColors = value AloftNameText:UpdateAll() end,
},
colors =
{
type = 'group',
name = L["Colors"],
desc = L["Customize colors"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftNameText:IsEnabled() or not AloftNameText.db or not AloftNameText.db.profile or not AloftNameText.db.profile.enable end,
args =
{
colorByClass =
{
type = 'toggle',
width = 'full',
name = L["Color by Class"],
desc = L["Sets the name text color according to class"],
get = function(i) return AloftNameText.db.profile.colorByClass end,
set = function(i, v) AloftNameText.db.profile.colorByClass = v Aloft:DetermineDataSources() AloftNameText:UpdateAll() end,
order = 1
},
colorHostileByClass =
{
type = 'toggle',
width = 'full',
name = L["Color Hostile by Class"],
desc = L["Sets the name text color of hostile players according to class"],
get = function(i) return AloftNameText.db.profile.colorHostileByClass end,
set = function(i, v) AloftNameText.db.profile.colorHostileByClass = v Aloft:DetermineDataSources() AloftNameText:UpdateAll() end,
order = 2
},
setAll =
{
type = 'color',
width = 'full',
name = L["Set All"],
desc = L["Sets the name text color for all types"],
get = function(i) return unpack(AloftNameText.db.profile.colors.friendlyPlayer) end,
set = function(i, r, g, b)
AloftNameText.db.profile.colors.friendlyPlayer = { r, g, b }
AloftNameText.db.profile.colors.friendlyPet = { r, g, b }
AloftNameText.db.profile.colors.friendlyNPC = { r, g, b }
AloftNameText.db.profile.colors.friendlyBoss = { r, g, b }
AloftNameText.db.profile.colors.hostilePlayer = { r, g, b }
AloftNameText.db.profile.colors.hostilePet = { r, g, b }
AloftNameText.db.profile.colors.hostileNPC = { r, g, b }
AloftNameText.db.profile.colors.hostileBoss = { r, g, b }
AloftNameText.db.profile.colors.neutral = { r, g, b }
AloftNameText.db.profile.colors.pet = { r, g, b }
AloftNameText.db.profile.colors.groupPet = { r, g, b }
Aloft:DetermineDataSources()
AloftNameText:UpdateAll() end,
order = 3
},
setAllFriendly =
{
type = 'color',
width = 'full',
name = L["Set All Friendly"],
desc = L["Sets the name text color for all friendly types"],
get = function(i) return unpack(AloftNameText.db.profile.colors.friendlyPlayer) end,
set = function(i, r, g, b)
AloftNameText.db.profile.colors.friendlyPlayer = { r, g, b }
AloftNameText.db.profile.colors.friendlyPet = { r, g, b }
AloftNameText.db.profile.colors.friendlyNPC = { r, g, b }
AloftNameText.db.profile.colors.friendlyBoss = { r, g, b }
AloftNameText.db.profile.colors.pet = { r, g, b }
AloftNameText.db.profile.colors.groupPet = { r, g, b }
Aloft:DetermineDataSources()
AloftNameText:UpdateAll() end,
order = 4
},
setAllHostile =
{
type = 'color',
width = 'full',
name = L["Set All Hostile"],
desc = L["Sets the name text color for all hostile types"],
get = function(i) return unpack(AloftNameText.db.profile.colors.hostileNPC) end,
set = function(i, r, g, b)
AloftNameText.db.profile.colors.hostilePlayer = { r, g, b }
AloftNameText.db.profile.colors.hostilePet = { r, g, b }
AloftNameText.db.profile.colors.hostileNPC = { r, g, b }
AloftNameText.db.profile.colors.hostileBoss = { r, g, b }
Aloft:DetermineDataSources()
AloftNameText:UpdateAll() end,
order = 5
},
friendlyPlayer =
{
type = 'color',
width = 'full',
name = L["Friendly Players"],
desc = L["Sets the name text color for friendly players"],
get = function(i) return unpack(AloftNameText.db.profile.colors.friendlyPlayer) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.friendlyPlayer = { r, g, b } AloftNameText:UpdateAll() end
},
friendlyPet =
{
type = 'color',
width = 'full',
name = L["Friendly Pets"],
desc = L["Sets the name text color for friendly pets"],
get = function(i) return unpack(AloftNameText.db.profile.colors.friendlyPet) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.friendlyPet = { r, g, b } Aloft:DetermineDataSources() AloftNameText:UpdateAll() end
},
friendlyNPC =
{
type = 'color',
width = 'full',
name = L["Friendly NPCs"],
desc = L["Sets the name text color for friendly NPCs"],
get = function(i) return unpack(AloftNameText.db.profile.colors.friendlyNPC) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.friendlyNPC = { r, g, b } Aloft:DetermineDataSources() AloftNameText:UpdateAll() end
},
friendlyBoss =
{
type = 'color',
width = 'full',
name = L["Friendly Boss"],
desc = L["Sets the name text color for friendly NPC Bosses"],
get = function(i) return unpack(AloftNameText.db.profile.colors.friendlyBoss) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.friendlyBoss = { r, g, b } AloftNameText:UpdateAll() end
},
hostilePlayer =
{
type = 'color',
width = 'full',
name = L["Hostile Players"],
desc = L["Sets the name text color for hostile players"],
disabled = function(i) return AloftNameText.db.profile.colorHostileByClass end,
get = function(i) return unpack(AloftNameText.db.profile.colors.hostilePlayer) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.hostilePlayer = { r, g, b } Aloft:DetermineDataSources() AloftNameText:UpdateAll() end
},
hostilePet =
{
type = 'color',
width = 'full',
name = L["Hostile Pets"],
desc = L["Sets the name text color for hostile pets"],
get = function(i) return unpack(AloftNameText.db.profile.colors.hostilePet) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.hostilePet = { r, g, b } Aloft:DetermineDataSources() AloftNameText:UpdateAll() end
},
hostileNPC =
{
type = 'color',
width = 'full',
name = L["Hostile NPCs"],
desc = L["Sets the name text color for hostile units"],
get = function(i) return unpack(AloftNameText.db.profile.colors.hostileNPC) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.hostileNPC = { r, g, b } Aloft:DetermineDataSources() AloftNameText:UpdateAll() end
},
hostileBoss =
{
type = 'color',
width = 'full',
name = L["Hostile Boss"],
desc = L["Sets the name text color for hostile boss units"],
get = function(i) return unpack(AloftNameText.db.profile.colors.hostileBoss) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.hostileBoss = { r, g, b } AloftNameText:UpdateAll() end
},
neutral =
{
type = 'color',
width = 'full',
name = L["Neutral Units"],
desc = L["Sets the name text color for neutral units"],
get = function(i) return unpack(AloftNameText.db.profile.colors.neutral) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.neutral = { r, g, b } AloftNameText:UpdateAll() end
},
pet =
{
type = 'color',
width = 'full',
name = L["Pet"],
desc = L["Sets the name text color for your pet"],
get = function(i) return unpack(AloftNameText.db.profile.colors.pet) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.pet = { r, g, b } AloftNameText:UpdateAll() end
},
groupPet =
{
type = 'color',
width = 'full',
name = L["Group Pets"],
desc = L["Sets the name text color for group pets"],
get = function(i) return unpack(AloftNameText.db.profile.colors.groupPet) end,
set = function(i, r, g, b) AloftNameText.db.profile.colors.groupPet = { r, g, b } Aloft:DetermineDataSources() AloftNameText:UpdateAll() end
},
}
},
advanced =
{
type = 'group',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftNameText:IsEnabled() or not AloftNameText.db or not AloftNameText.db.profile or not AloftNameText.db.profile.enable end,
args =
{
format =
{
type = 'input',
width = 'full',
name = L["Format"],
desc = L["Name tag"],
usage = L["<Any tag string>"],
get = function(i) return Aloft:HighlightTagSyntax(AloftNameText.db.profile.format) end,
set = function(i, v)
AloftNameText.db.profile.format = Aloft:FixTagCasing(v)
AloftNameText.textMethodData = nil
AloftNameText.textMethod = nil
Aloft:DetermineDataSources()
AloftNameText:UpdateAll()
end,
}
},
},
},
}
 
-----------------------------------------------------------------------------
 
local tagModifiers = { }
 
function AloftNameText:RegisterFormatTagModifier(priority, method, ...)
table.insert(tagModifiers, { priority, method, ... })
end
 
function AloftNameText:UpdateFormatTag()
self.db.profile.format = self.db.profile.useAliases and "[Alias]" or "[Name]"
table.sort(tagModifiers, function(i, a, b) return a[1] < b[1] end)
 
self.textMethodData = nil
self.textMethod = nil
 
for _,k in ipairs(tagModifiers) do
k[2](unpack(k, 3))
end
end
 
-----------------------------------------------------------------------------
AloftOptions/AloftNameText/AloftNameTextLocale.lua New file
0,0 → 1,491
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Name Text"] = "Name Text"
--[[ enUS ]] L["Nameplate text options"] = "Nameplate text options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Show unit names"] = "Show unit names"
 
--[[ enUS ]] L["Use Aliases"] = "Use Aliases"
--[[ enUS ]] L["Uses user defined aliases"] = "Uses user defined aliases"
 
--[[ enUS ]] L["Set Alias"] = "Set Alias"
--[[ enUS ]] L["Sets the alias for your current target. An empty alias will return the unit to its original name"] = "Sets the alias for your current target. An empty alias will return the unit to its original name"
--[[ enUS ]] L["<Any String>"] = "<Any String>"
 
--[[ enUS ]] L["Typeface"] = "Typeface"
--[[ enUS ]] L["Nameplate text typeface options"] = "Nameplate text typeface options"
--[[ enUS ]] L["Font"] = "Font"
--[[ enUS ]] L["Sets the font for nameplate text"] = "Sets the font for nameplate text"
--[[ enUS ]] L["Font Shadow"] = "Font Shadow"
--[[ enUS ]] L["Show font shadow on nameplate text"] = "Show font shadow on nameplate text"
--[[ enUS ]] L["Font Size"] = "Font Size"
--[[ enUS ]] L["Sets the font height of the nameplate text"] = "Sets the font height of the nameplate text"
--[[ enUS ]] L["Outline"] = "Outline"
--[[ enUS ]] L["Sets the font outline for nameplate text"] = "Sets the font outline for nameplate text"
 
--[[ enUS ]] L["Alignment"] = "Alignment"
--[[ enUS ]] L["Sets the alignment of the nameplate text"] = "Sets the alignment of the nameplate text"
 
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust nameplate text position"] = "Adjust nameplate text position"
--[[ enUS ]] L["Left Offset"] = "Left Offset"
--[[ enUS ]] L["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ enUS ]] L["Right Offset"] = "Right Offset"
--[[ enUS ]] L["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ enUS ]] L["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] L["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ enUS ]] L["Override Colors"] = "Override Colors"
--[[ enUS ]] L["Override the games colors for nameplate text"] = "Override the games colors for nameplate text"
--[[ enUS ]] L["Colors"] = "Colors"
--[[ enUS ]] L["Customize colors"] = "Customize colors"
 
--[[ enUS ]] L["Color by Class"] = "Color by Class"
--[[ enUS ]] L["Sets the name text color according to class"] = "Sets the name text color according to class"
--[[ enUS ]] L["Color Hostile by Class"] = "Color Hostile by Class"
--[[ enUS ]] L["Sets the name text color of hostile players according to class"] = "Sets the name text color of hostile players according to class"
--[[ enUS ]] L["Set All"] = "Set All"
--[[ enUS ]] L["Sets the name text color for all types"] = "Sets the name text color for all types"
--[[ enUS ]] L["Set All Friendly"] = "Set All Friendly"
--[[ enUS ]] L["Sets the name text color for all friendly types"] = "Sets the name text color for all friendly types"
--[[ enUS ]] L["Set All Hostile"] = "Set All Hostile"
--[[ enUS ]] L["Sets the name text color for all hostile types"] = "Sets the name text color for all hostile types"
 
--[[ enUS ]] L["Pet"] = "Pet"
--[[ enUS ]] L["Sets the name text color for your pet"] = "Sets the name text color for your pet"
--[[ enUS ]] L["Friendly Players"] = "Friendly Players"
--[[ enUS ]] L["Sets the name text color for friendly players"] = "Sets the name text color for friendly players"
--[[ enUS ]] L["Friendly Pets"] = "Friendly Pets"
--[[ enUS ]] L["Sets the name text color for friendly pets"] = "Sets the name text color for friendly pets"
--[[ enUS ]] L["Friendly NPCs"] = "Friendly NPCs"
--[[ enUS ]] L["Sets the name text color for friendly NPC Bosses"] = "Sets the name text color for friendly NPC Bosses"
--[[ enUS ]] L["Friendly Boss"] = "Friendly Boss"
--[[ enUS ]] L["Sets the name text color for friendly NPCs"] = "Sets the name text color for friendly NPCs"
--[[ enUS ]] L["Hostile Players"] = "Hostile Players"
--[[ enUS ]] L["Sets the name text color for hostile players"] = "Sets the name text color for hostile players"
--[[ enUS ]] L["Hostile Pets"] = "Hostile Pets"
--[[ enUS ]] L["Sets the name text color for hostile pets"] = "Sets the name text color for hostile pets"
--[[ enUS ]] L["Hostile NPCs"] = "Hostile NPCs"
--[[ enUS ]] L["Sets the name text color for hostile units"] = "Sets the name text color for hostile units"
--[[ enUS ]] L["Hostile Boss"] = "Hostile Boss"
--[[ enUS ]] L["Sets the name text color for hostile boss units"] = "Sets the name text color for hostile boss units"
--[[ enUS ]] L["Neutral Units"] = "Neutral Units"
--[[ enUS ]] L["Sets the name text color for neutral units"] = "Sets the name text color for neutral units"
--[[ enUS ]] L["Group Pets"] = "Group Pets"
--[[ enUS ]] L["Sets the name text color for group pets"] = "Sets the name text color for group pets"
 
--[[ enUS ]] L["None"] = "None"
--[[ enUS ]] L["Normal"] = "Normal"
--[[ enUS ]] L["Thick"] = "Thick"
 
--[[ enUS ]] L["Advanced"] = "Advanced"
--[[ enUS ]] L["Options for expert users"] = "Options for expert users"
--[[ enUS ]] L["Format"] = "Format"
--[[ enUS ]] L["Name tag"] = "Name tag"
--[[ enUS ]] L["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Name Text"] = "이름"
--[[ koKR ]] L["Nameplate text options"] = "이름 설정"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Show unit names"] = "대상의 이름을 표시합니다."
 
--[[ koKR ]] L["Use Aliases"] = "별명 사용"
--[[ koKR ]] L["Uses user defined aliases"] = "사용자가 지정한 별명을 사용합니다."
 
--[[ koKR ]] L["Set Alias"] = "별명 설정"
--[[ koKR ]] L["Sets the alias for your current target. An empty alias will return the unit to its original name"] = "현재 대상에 대한 별명을 설정합니다. 빈칸으로 두면 대상의 실제 이름을 반환합니다."
--[[ koKR ]] L["<Any String>"] = "<문자열>"
 
--[[ koKR ]] L["Typeface"] = "서체"
--[[ koKR ]] L["Nameplate text typeface options"] = "이름 서체 설정"
--[[ koKR ]] L["Font"] = "글꼴"
--[[ koKR ]] L["Sets the font for nameplate text"] = "이름의 글꼴을 설정합니다."
--[[ koKR ]] L["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] L["Show font shadow on nameplate text"] = "이름에 그림자를 표시합니다."
--[[ koKR ]] L["Font Size"] = "글꼴 크기"
--[[ koKR ]] L["Sets the font height of the nameplate text"] = "이름의 높이를 설정합니다."
--[[ koKR ]] L["Outline"] = "테두리"
--[[ koKR ]] L["Sets the font outline for nameplate text"] = "이름의 테두리를 설정합니다."
 
--[[ koKR ]] L["Alignment"] = "정렬"
--[[ koKR ]] L["Sets the alignment of the nameplate text"] = "이름의 정렬을 설정합니다."
 
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust nameplate text position"] = "이름 위치 조절"
--[[ koKR ]] L["Left Offset"] = "좌측 좌표"
--[[ koKR ]] L["Sets the offset of the left of the text"] = "이름의 좌측 좌표를 설정합니다."
--[[ koKR ]] L["Right Offset"] = "우측 좌표"
--[[ koKR ]] L["Sets the offset of the right of the text"] = "이름의 우측 좌표를 설정합니다."
--[[ koKR ]] L["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] L["Sets the vertical offset of the text"] = "이름의 수직 좌표를 설정합니다."
 
--[[ koKR ]] L["Override Colors"] = "색상 적용"
--[[ koKR ]] L["Override the games colors for nameplate text"] = "이름에 게임 색상을 적용합니다."
--[[ koKR ]] L["Colors"] = "색상"
--[[ koKR ]] L["Customize colors"] = "사용자 색상"
 
--[[ koKR ]] L["Color by Class"] = "직업별 색상"
--[[ koKR ]] L["Sets the name text color according to class"] = "이름 색상에 직업별 색상을 설정합니다."
--[[ koKR ]] L["Color Hostile by Class"] = "적대적 직업별 색상"
--[[ koKR ]] L["Sets the name text color of hostile players according to class"] = "적대적 플레이어의 이름에 직업별 색상을 설정합니다."
--[[ koKR ]] L["Set All"] = "전체 설정"
--[[ koKR ]] L["Sets the name text color for all types"] = "모든 이름의 색상을 설정합니다."
--[[ koKR ]] L["Set All Friendly"] = "전체 우호적 설정"
--[[ koKR ]] L["Sets the name text color for all friendly types"] = "전체 우호적 대상에 대한 이름의 색상을 설정합니다."
--[[ koKR ]] L["Set All Hostile"] = "전체 적대적 설정"
--[[ koKR ]] L["Sets the name text color for all hostile types"] = "전체 적대적 대상에 대한 이름의 색상을 설정합니다."
 
--[[ koKR ]] L["Pet"] = "소환수"
--[[ koKR ]] L["Sets the name text color for your pet"] = "소환수의 이름 색상을 설정합니다."
--[[ koKR ]] L["Friendly Players"] = "우호적 플레이어"
--[[ koKR ]] L["Sets the name text color for friendly players"] = "우호적 플레이어의 이름 색상을 설정합니다."
--[[ koKR ]] L["Friendly Pets"] = "우호적 소환수"
--[[ koKR ]] L["Sets the name text color for friendly pets"] = "우호적 소환수의 이름 색상을 설정합니다."
--[[ koKR ]] L["Friendly NPCs"] = "우호적 NPC"
--[[ koKR ]] L["Sets the name text color for friendly NPC Bosses"] = "우호적 NPC 보스의 이름 색상을 설정합니다."
--[[ koKR ]] L["Friendly Boss"] = "우호적 보스"
--[[ koKR ]] L["Sets the name text color for friendly NPCs"] = "우호적 NPC의 이름 색상을 설정합니다."
--[[ koKR ]] L["Hostile Players"] = "적대적 플레이어"
--[[ koKR ]] L["Sets the name text color for hostile players"] = "적대적 플레이어의 이름 색상을 설정합니다."
--[[ koKR ]] L["Hostile Pets"] = "적대적 소환수"
--[[ koKR ]] L["Sets the name text color for hostile pets"] = "적대적 소환수의 이름 색상을 설정합니다."
--[[ koKR ]] L["Hostile NPCs"] = "적대적 NPC"
--[[ koKR ]] L["Sets the name text color for hostile units"] = "적대적 NPC의 이름 색상을 설정합니다."
--[[ koKR ]] L["Hostile Boss"] = "적대적 보스"
--[[ koKR ]] L["Sets the name text color for hostile boss units"] = "적대적 보스의 이름 색상을 설정합니다."
--[[ koKR ]] L["Neutral Units"] = "중립적 대상"
--[[ koKR ]] L["Sets the name text color for neutral units"] = "중립적 대상의 이름 색상을 설정합니다."
--[[ koKR ]] L["Group Pets"] = "파티 소환수"
--[[ koKR ]] L["Sets the name text color for group pets"] = "파티 소환수의 이름 색상을 설정합니다."
 
--[[ koKR ]] L["None"] = "없음"
--[[ koKR ]] L["Normal"] = "기본"
--[[ koKR ]] L["Thick"] = "굵게"
 
--[[ koKR ]] L["Advanced"] = "고급"
--[[ koKR ]] L["Options for expert users"] = "고급 사용자를 위한 설정입니다."
--[[ koKR ]] L["Format"] = "형식"
--[[ koKR ]] L["Name tag"] = "이름 태그"
--[[ koKR ]] L["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Name Text"] = "Текст имени"
--[[ ruRU ]] L["Nameplate text options"] = "Настройки текста таблички"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Show unit names"] = "Отображать имена единиц"
 
--[[ ruRU ]] L["Use Aliases"] = "Использовать соответствия имен"
--[[ ruRU ]] L["Uses user defined aliases"] = "Соответствия имен, заданные пользователем"
 
--[[ ruRU ]] L["Set Alias"] = "Задать сокращение"
--[[ ruRU ]] L["Sets the alias for your current target. An empty alias will return the unit to its original name"] = "Задает сокращение для текущей цели. Пустое сокращение вернет цели изначальное имя"
--[[ ruRU ]] L["<Any String>"] = "<Любая строка>"
 
--[[ ruRU ]] L["Typeface"] = "Шрифт"
--[[ ruRU ]] L["Nameplate text typeface options"] = "Настройки шрифта таблички"
--[[ ruRU ]] L["Font"] = "Шрифт"
--[[ ruRU ]] L["Sets the font for nameplate text"] = "Задает шрифт для текста на табличках"
--[[ ruRU ]] L["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] L["Show font shadow on nameplate text"] = "Отображать тень для текста на табличке"
--[[ ruRU ]] L["Font Size"] = "Размер шрифта"
--[[ ruRU ]] L["Sets the font height of the nameplate text"] = "Задает высоту шрифта для текста на табличке"
--[[ ruRU ]] L["Outline"] = "Контур"
--[[ ruRU ]] L["Sets the font outline for nameplate text"] = "Задает окантовку для текста на табличке"
 
--[[ ruRU ]] L["Alignment"] = "Выравнивание"
--[[ ruRU ]] L["Sets the alignment of the nameplate text"] = "Задает выравнивание текста на табличке"
 
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust nameplate text position"] = "Задать место текста на табличке"
--[[ ruRU ]] L["Left Offset"] = "Левое смещение"
--[[ ruRU ]] L["Sets the offset of the left of the text"] = "Задает смещение левого конца текста"
--[[ ruRU ]] L["Right Offset"] = "Правое смещение"
--[[ ruRU ]] L["Sets the offset of the right of the text"] = "Задает смещение правого конца текста"
--[[ ruRU ]] L["Vertical Offset"] = "Вертикальное смещение"
--[[ ruRU ]] L["Sets the vertical offset of the text"] = "Задает вертикальное смещение текста"
 
--[[ ruRU ]] L["Override Colors"] = "Перезапись цветов"
--[[ ruRU ]] L["Override the games colors for nameplate text"] = "Перезапись цветов игры для текста табличек"
--[[ ruRU ]] L["Colors"] = "Цвета"
--[[ ruRU ]] L["Customize colors"] = "Настройка цветов"
 
--[[ ruRU ]] L["Color by Class"] = "Окрашивать в цвет класса"
--[[ ruRU ]] L["Sets the name text color according to class"] = "Задает цвет имени в зависимости от класса"
--[[ ruRU ]] L["Color Hostile by Class"] = "Окрашивать враждебных в цвет класса"
--[[ ruRU ]] L["Sets the name text color of hostile players according to class"] = "Задает цвет имени враждебного игрока в зависимости от класс"
--[[ ruRU ]] L["Set All"] = "Задать все"
--[[ ruRU ]] L["Sets the name text color for all types"] = "Задает цвет имени для всех типов"
--[[ ruRU ]] L["Set All Friendly"] = "Задать всех дружественными"
--[[ ruRU ]] L["Sets the name text color for all friendly types"] = "Задает цвет имени для всех дружественных типов"
--[[ ruRU ]] L["Set All Hostile"] = "Задать всех враждебными"
--[[ ruRU ]] L["Sets the name text color for all hostile types"] = "Задает цвет имени для всех враждебных типов"
 
--[[ ruRU ]] L["Pet"] = "Питомец"
--[[ ruRU ]] L["Sets the name text color for your pet"] = "Задает цвет имени для вашего питомца"
--[[ ruRU ]] L["Friendly Players"] = "Дружественные игроки"
--[[ ruRU ]] L["Sets the name text color for friendly players"] = "Задает цвет имени для дружественных игроков"
--[[ ruRU ]] L["Friendly Pets"] = "Дружественные питомцы"
--[[ ruRU ]] L["Sets the name text color for friendly pets"] = "Задает цвет имени для дружественных питомцев"
--[[ ruRU ]] L["Friendly NPCs"] = "Дружественные НИПы"
--[[ ruRU ]] L["Sets the name text color for friendly NPC Bosses"] = "Задает цвет имени для дружественных НИПов - боссов"
--[[ ruRU ]] L["Friendly Boss"] = "Дружественный босс"
--[[ ruRU ]] L["Sets the name text color for friendly NPCs"] = "Задает цвет имени для дружественных НИПов"
--[[ ruRU ]] L["Hostile Players"] = "Враждебные игроки"
--[[ ruRU ]] L["Sets the name text color for hostile players"] = "Задает цвет имени для враждебных игроков"
--[[ ruRU ]] L["Hostile Pets"] = "Враждебные питомцы"
--[[ ruRU ]] L["Sets the name text color for hostile pets"] = "Задает цвет имени для враждебных питомцев"
--[[ ruRU ]] L["Hostile NPCs"] = "Враждебные НИПы"
--[[ ruRU ]] L["Sets the name text color for hostile units"] = "Задает цвет имени для враждебных объектов"
--[[ ruRU ]] L["Hostile Boss"] = "Враждебный босс"
--[[ ruRU ]] L["Sets the name text color for hostile boss units"] = "Задает цвет имени для враждебных боссов"
--[[ ruRU ]] L["Neutral Units"] = "Нейтральные цели"
--[[ ruRU ]] L["Sets the name text color for neutral units"] = "Задает цвет имени для нейтральных"
--[[ ruRU ]] L["Group Pets"] = "Питомцы группы"
--[[ ruRU ]] L["Sets the name text color for group pets"] = "Задает цвет имен для питомцев группы"
 
--[[ ruRU ]] L["None"] = "Нет"
--[[ ruRU ]] L["Normal"] = "Обычно"
--[[ ruRU ]] L["Thick"] = "Жирный"
 
--[[ ruRU ]] L["Advanced"] = "Дополнительно"
--[[ ruRU ]] L["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] L["Format"] = "Формат"
--[[ ruRU ]] L["Name tag"] = "Вид имени"
--[[ ruRU ]] L["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Name Text"] = "名称文字"
--[[ zhCN ]] L["Nameplate text options"] = "姓名板文字相关设置"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Show unit names"] = "显示单位名称"
 
--[[ zhCN ]] L["Use Aliases"] = "使用绰号"
--[[ zhCN ]] L["Uses user defined aliases"] = "使用自定义绰号"
 
--[[ zhCN ]] L["Set Alias"] = "设定绰号"
--[[ zhCN ]] L["Sets the alias for your current target. An empty alias will return the unit to its original name"] = "设定当前目标的绰号。如果留空则会重置为目标的原有名称"
--[[ zhCN ]] L["<Any String>"] = "<任意文字>"
 
--[[ zhCN ]] L["Typeface"] = "式样"
--[[ zhCN ]] L["Nameplate text typeface options"] = "姓名板文字式样设置"
--[[ zhCN ]] L["Font"] = "字体"
--[[ zhCN ]] L["Sets the font for nameplate text"] = "设定姓名板文字的字体"
--[[ zhCN ]] L["Font Shadow"] = "字体阴影"
--[[ zhCN ]] L["Show font shadow on nameplate text"] = "在姓名板文字上显示字体阴影"
--[[ zhCN ]] L["Font Size"] = "字号"
--[[ zhCN ]] L["Sets the font height of the nameplate text"] = "设定姓名板文字的字号"
--[[ zhCN ]] L["Outline"] = "轮廓"
--[[ zhCN ]] L["Sets the font outline for nameplate text"] = "设定姓名板文字的轮廓"
 
--[[ zhCN ]] L["Alignment"] = "对齐"
--[[ zhCN ]] L["Sets the alignment of the nameplate text"] = "设定姓名板文字的对齐样式"
 
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust nameplate text position"] = "调整姓名板文字的位置"
--[[ zhCN ]] L["Left Offset"] = "向左偏移"
--[[ zhCN ]] L["Sets the offset of the left of the text"] = "设定文字的向左偏移量"
--[[ zhCN ]] L["Right Offset"] = "向右偏移"
--[[ zhCN ]] L["Sets the offset of the right of the text"] = "设定文字的向右偏移量"
--[[ zhCN ]] L["Vertical Offset"] = "垂直偏移"
--[[ zhCN ]] L["Sets the vertical offset of the text"] = "设定文字的垂直偏移量"
 
--[[ zhCN ]] L["Override Colors"] = "置换颜色"
--[[ zhCN ]] L["Override the games colors for nameplate text"] = "置换姓名板文字的游戏内颜色"
--[[ zhCN ]] L["Colors"] = "颜色"
--[[ zhCN ]] L["Customize colors"] = "自定义颜色"
 
--[[ zhCN ]] L["Color by Class"] = "根据职业显示颜色"
--[[ zhCN ]] L["Sets the name text color according to class"] = "名称文字颜色使用职业代表色"
--[[ zhCN ]] L["Color Hostile by Class"] = "敌对方单位根据职业显示颜色"
--[[ zhCN ]] L["Sets the name text color of hostile players according to class"] = "敌对方玩家的名称文字颜色使用职业代表色"
--[[ zhCN ]] L["Set All"] = "设定全部"
--[[ zhCN ]] L["Sets the name text color for all types"] = "设定所有单位的名称文字颜色"
--[[ zhCN ]] L["Set All Friendly"] = "设定全部友好方单位"
--[[ zhCN ]] L["Sets the name text color for all friendly types"] = "设定全部友好方单位的名称文字颜色"
--[[ zhCN ]] L["Set All Hostile"] = "设定全部敌对方单位"
--[[ zhCN ]] L["Sets the name text color for all hostile types"] = "设定全部敌对方单位的名称文字颜色"
 
--[[ zhCN ]] L["Pet"] = "宠物"
--[[ zhCN ]] L["Sets the name text color for your pet"] = "宠物的名称文字颜色"
--[[ zhCN ]] L["Friendly Players"] = "友好方玩家"
--[[ zhCN ]] L["Sets the name text color for friendly players"] = "设定友好方玩家的名称文字颜色"
--[[ zhCN ]] L["Friendly Pets"] = "友好方宠物"
--[[ zhCN ]] L["Sets the name text color for friendly pets"] = "设定友好方宠物的名称文字颜色"
--[[ zhCN ]] L["Friendly NPCs"] = "友好方NPC"
--[[ zhCN ]] L["Sets the name text color for friendly NPC Bosses"] = "设定友好方首领的名称文字颜色"
--[[ zhCN ]] L["Friendly Boss"] = "友好方首领"
--[[ zhCN ]] L["Sets the name text color for friendly NPCs"] = "设定友好方NPC的名称文字颜色"
--[[ zhCN ]] L["Hostile Players"] = "敌对方玩家"
--[[ zhCN ]] L["Sets the name text color for hostile players"] = "设定敌对方玩家的名称文字颜色"
--[[ zhCN ]] L["Hostile Pets"] = "敌对方宠物"
--[[ zhCN ]] L["Sets the name text color for hostile pets"] = "设定敌对方宠物的名称文字颜色"
--[[ zhCN ]] L["Hostile NPCs"] = "敌对方NPC"
--[[ zhCN ]] L["Sets the name text color for hostile units"] = "设定敌对方NPC的名称文字颜色"
--[[ zhCN ]] L["Hostile Boss"] = "敌对方首领"
--[[ zhCN ]] L["Sets the name text color for hostile boss units"] = "设定敌对方首领的名称文字颜色"
--[[ zhCN ]] L["Neutral Units"] = "中立方单位"
--[[ zhCN ]] L["Sets the name text color for neutral units"] = "设定中立方单位的名称文字颜色"
--[[ zhCN ]] L["Group Pets"] = "队友宠物"
--[[ zhCN ]] L["Sets the name text color for group pets"] = "设定队友宠物的名称文字颜色"
 
--[[ zhCN ]] L["None"] = "无"
--[[ zhCN ]] L["Normal"] = "正常"
--[[ zhCN ]] L["Thick"] = "粗"
 
--[[ zhCN ]] L["Advanced"] = "高级"
--[[ zhCN ]] L["Options for expert users"] = "高级选项"
--[[ zhCN ]] L["Format"] = "格式"
--[[ zhCN ]] L["Name tag"] = "名称标签"
--[[ zhCN ]] L["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Name Text"] = "名字文字"
--[[ zhTW ]] L["Nameplate text options"] = "名牌文字選項"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Show unit names"] = "顯示單位名字"
 
--[[ zhTW ]] L["Use Aliases"] = "使用別名"
--[[ zhTW ]] L["Uses user defined aliases"] = "使用自定別名"
 
--[[ zhTW ]] L["Set Alias"] = "設定別名"
--[[ zhTW ]] L["Sets the alias for your current target. An empty alias will return the unit to its original name"] = "設定目前目標的別名。空的別名會重設回原有名字"
--[[ zhTW ]] L["<Any String>"] = "<任何文字>"
 
--[[ zhTW ]] L["Typeface"] = "字體"
--[[ zhTW ]] L["Nameplate text typeface options"] = "名牌文字字體選項"
--[[ zhTW ]] L["Font"] = "字型"
--[[ zhTW ]] L["Sets the font for nameplate text"] = "名牌文字字型"
--[[ zhTW ]] L["Font Shadow"] = "字型陰影"
--[[ zhTW ]] L["Show font shadow on nameplate text"] = "名牌文字字型陰影"
--[[ zhTW ]] L["Font Size"] = "字型大小"
--[[ zhTW ]] L["Sets the font height of the nameplate text"] = "名牌文字字型大小"
--[[ zhTW ]] L["Outline"] = "輪廓"
--[[ zhTW ]] L["Sets the font outline for nameplate text"] = "名牌文字字型輪廓"
 
--[[ zhTW ]] L["Alignment"] = "對齊"
--[[ zhTW ]] L["Sets the alignment of the nameplate text"] = "名牌文字對齊"
 
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust nameplate text position"] = "名牌文字位置"
--[[ zhTW ]] L["Left Offset"] = "左位移"
--[[ zhTW ]] L["Sets the offset of the left of the text"] = "文字左位移"
--[[ zhTW ]] L["Right Offset"] = "右位移"
--[[ zhTW ]] L["Sets the offset of the right of the text"] = "文字右位移"
--[[ zhTW ]] L["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] L["Sets the vertical offset of the text"] = "文字垂直位移"
 
--[[ zhTW ]] L["Override Colors"] = "置換顏色"
--[[ zhTW ]] L["Override the games colors for nameplate text"] = "置換名牌文字的遊戲顏色"
--[[ zhTW ]] L["Colors"] = "顏色"
--[[ zhTW ]] L["Customize colors"] = "自定顏色"
 
--[[ zhTW ]] L["Color by Class"] = "根據職業上色"
--[[ zhTW ]] L["Sets the name text color according to class"] = "名字文字顏色使用職業顏色"
--[[ zhTW ]] L["Color Hostile by Class"] = "敵對單位根據職業上色"
--[[ zhTW ]] L["Sets the name text color of hostile players according to class"] = "敵對玩家的名字文字顏色使用職業顏色"
--[[ zhTW ]] L["Set All"] = "設定全部"
--[[ zhTW ]] L["Sets the name text color for all types"] = "設定全部單位的名字文字顏色"
--[[ zhTW ]] L["Set All Friendly"] = "設定全部友好"
--[[ zhTW ]] L["Sets the name text color for all friendly types"] = "設定全部友好單位的名字文字顏色"
--[[ zhTW ]] L["Set All Hostile"] = "設定全部敵對"
--[[ zhTW ]] L["Sets the name text color for all hostile types"] = "設定全部敵對單位的名字文字顏色"
 
--[[ zhTW ]] L["Pet"] = "寵物"
--[[ zhTW ]] L["Sets the name text color for your pet"] = "寵物的名字文字顏色"
--[[ zhTW ]] L["Friendly Players"] = "友好玩家"
--[[ zhTW ]] L["Sets the name text color for friendly players"] = "友好玩家的名字文字顏色"
--[[ zhTW ]] L["Friendly Pets"] = "友好寵物"
--[[ zhTW ]] L["Sets the name text color for friendly pets"] = "友好寵物的名字文字顏色"
--[[ zhTW ]] L["Friendly NPCs"] = "友好NPC"
--[[ zhTW ]] L["Sets the name text color for friendly NPC Bosses"] = "友好NPC的名字文字顏色"
--[[ zhTW ]] L["Friendly Boss"] = "友好首領"
--[[ zhTW ]] L["Sets the name text color for friendly NPCs"] = "友好首領的名字文字顏色"
--[[ zhTW ]] L["Hostile Players"] = "敵對玩家"
--[[ zhTW ]] L["Sets the name text color for hostile players"] = "敵對玩家的名字文字顏色"
--[[ zhTW ]] L["Hostile Pets"] = "敵對寵物"
--[[ zhTW ]] L["Sets the name text color for hostile pets"] = "敵對寵物的名字文字顏色"
--[[ zhTW ]] L["Hostile NPCs"] = "敵對NPC"
--[[ zhTW ]] L["Sets the name text color for hostile units"] = "敵對NPC的名字文字顏色"
--[[ zhTW ]] L["Hostile Boss"] = "敵對玩家"
--[[ zhTW ]] L["Sets the name text color for hostile boss units"] = "敵對首領的名字文字顏色"
--[[ zhTW ]] L["Neutral Units"] = "中立單位"
--[[ zhTW ]] L["Sets the name text color for neutral units"] = "中立單位的名字文字顏色"
--[[ zhTW ]] L["Group Pets"] = "團體寵物"
--[[ zhTW ]] L["Sets the name text color for group pets"] = "團體寵物的名字文字顏色"
 
--[[ zhTW ]] L["None"] = "無"
--[[ zhTW ]] L["Normal"] = "正常"
--[[ zhTW ]] L["Thick"] = "粗"
 
--[[ zhTW ]] L["Advanced"] = "進階"
--[[ zhTW ]] L["Options for expert users"] = "進階選項"
--[[ zhTW ]] L["Format"] = "格式"
--[[ zhTW ]] L["Name tag"] = "名字標籤"
--[[ zhTW ]] L["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftNameText = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
AloftOptions/AloftClassificationData/AloftClassificationDataOptions.lua New file
0,0 → 1,27
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftClassificationDataOptions
if not L then return end
 
local AloftClassificationData = Aloft:GetModule("ClassificationData", true)
if not AloftClassificationData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.classification =
{
type = 'toggle',
width = 'full',
name = L["Save Classification Data"],
desc = L["Stores unit classification information between sessions"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftClassificationData:IsEnabled() or not AloftClassificationData.db or not AloftClassificationData.db.profile end,
get = function(i) return AloftClassificationData.db.profile.save end,
set = AloftClassificationData.SetSaveData
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftClassificationData/AloftClassificationDataLocale.lua New file
0,0 → 1,64
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local oL = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] oL["Save Classification Data"] = "Save Classification Data"
--[[ enUS ]] oL["Stores unit classification information between sessions"] = "Stores unit classification information between sessions"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] oL["Save Classification Data"] = "구분 데이터 저장"
--[[ koKR ]] oL["Stores unit classification information between sessions"] = "각 접속간 대상의 구분 정보를 저장합니다."
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] oL["Save Classification Data"] = "Записать данные о классификации"
--[[ ruRU ]] oL["Stores unit classification information between sessions"] = "Сохранять данные по классификации объектов между сессиями"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] oL["Save Classification Data"] = "储存分类信息"
--[[ zhCN ]] oL["Stores unit classification information between sessions"] = "在两次登录的间隔储存分类信息"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] oL["Save Classification Data"] = "儲存分類資料"
--[[ zhTW ]] oL["Stores unit classification information between sessions"] = "儲存分類資料"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftClassificationDataOptions = setmetatable(oL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
oL = nil
AloftOptions/AloftTarget/AloftTargetLocale.lua New file
0,0 → 1,149
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local L = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftTarget", function()
 
-----------------------------------------------------------------------------
 
-- TODO: on the surface, this wastes space in the enUS locale; the metatable could just return the canonical string as the localization;
-- BUT, this serves as a default locale, and also will permit the metatable to check/notify on missing locale strings
 
--[[ enUS ]] L["Enable Target-of-Target"] = "Enable Target-of-Target"
--[[ enUS ]] L["Enable target-of-target"] = "Enable target-of-target"
--[[ enUS ]] L["Target-of-Target Update Interval"] = "Target-of-Target Update Interval"
--[[ enUS ]] L["The amount of time, in seconds, between target-of-target updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between target-of-target updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftTarget"] = "AloftTarget"
--[[ enUS ]] mL["Display target name and group target count on nameplates"] = "Display target name and group target count on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftTarget", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Enable Target-of-Target"] = "Enable Target-of-Target"
--[[ koKR ]] L["Enable target-of-target"] = "Enable target-of-target"
--[[ koKR ]] L["Target-of-Target Update Interval"] = "Target-of-Target Update Interval"
--[[ koKR ]] L["The amount of time, in seconds, between target-of-target updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between target-of-target updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftTarget"] = "AloftTarget"
--[[ koKR ]] mL["Display target name and group target count on nameplates"] = "Display target name and group target count on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftTarget", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Enable Target-of-Target"] = "Включить цель цели"
--[[ ruRU ]] L["Enable target-of-target"] = "Включить цель цели"
--[[ ruRU ]] L["Target-of-Target Update Interval"] = "Скорость обновления цели цели"
--[[ ruRU ]] L["The amount of time, in seconds, between target-of-target updates (0.0 is as fast as possible)"] = "Время в секундах между обновленями цели цели (0.0 максимальная скорость)"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftTarget"] = "AloftTarget"
--[[ ruRU ]] mL["Display target name and group target count on nameplates"] = "Отображает имя цели и номер группы"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftTarget", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Enable Target-of-Target"] = "启用目标的目标"
--[[ zhCN ]] L["Enable target-of-target"] = "启用目标的目标"
--[[ zhCN ]] L["Target-of-Target Update Interval"] = "目标的目标更新延迟"
--[[ zhCN ]] L["The amount of time, in seconds, between target-of-target updates (0.0 is as fast as possible)"] = "目标的目标的更新频率 (单位秒,最低值为0.0)"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftTarget"] = "目标"
--[[ zhCN ]] mL["Display target name and group target count on nameplates"] = "在姓名板上显示目标名称和小队中选中的数量"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftTarget", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Enable Target-of-Target"] = "啟用目標的目標"
--[[ zhTW ]] L["Enable target-of-target"] = "啟用目標的目標"
--[[ zhTW ]] L["Target-of-Target Update Interval"] = "目標的目標更新延遲"
--[[ zhTW ]] L["The amount of time, in seconds, between target-of-target updates (0.0 is as fast as possible)"] = "目標的目標的更新頻率 (單位秒,最低值為0.0)"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftTarget"] = "目標"
--[[ zhTW ]] mL["Display target name and group target count on nameplates"] = "在名牌上顯示目標名稱和小隊中選中的數量"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftTarget", function()
 
AloftLocale.AloftTarget = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
end)
AloftOptions/AloftTarget/AloftTargetModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftTarget =
{
type = 'toggle',
width = 'full',
name = L["AloftTarget"],
desc = L["Display target name and group target count on nameplates"],
get = function(i) return AloftModules.db.profile.AloftTarget end,
set = function(i, v) AloftModules.db.profile.AloftTarget = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftTarget/AloftTargetNameDataOptions.lua New file
0,0 → 1,55
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftTarget", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftTarget
if not L then return end
 
local AloftTargetNameData = Aloft:GetModule("TargetNameData", true)
if not AloftTargetNameData then return end
 
-----------------------------------------------------------------------------
 
-- NOTE: these options get added into another module's options
 
AloftTargetNameData.options = { }
 
AloftTargetNameData.options.enable =
{
type = 'toggle',
width = 'full',
name = L["Enable Target-of-Target"],
desc = L["Enable target-of-target"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftTargetNameData:IsEnabled() or not AloftTargetNameData.db or not AloftTargetNameData.db.profile end,
get = function(i) return AloftTargetNameData.db.profile.enable end,
set = function(i, v) AloftTargetNameData.db.profile.enable = v Aloft:DetermineDataSources() end,
}
 
AloftTargetNameData.options.interval =
{
type = 'range',
width = 'full',
name = L["Target-of-Target Update Interval"],
desc = L["The amount of time, in seconds, between target-of-target updates (0.0 is as fast as possible)"],
order = 4,
min = 0.0,
max = 5.0,
step = 0.01,
disabled = function(i) return not Aloft:IsEnabled() or not AloftTargetNameData:IsEnabled() or not AloftTargetNameData.db or not AloftTargetNameData.db.profile or not AloftTargetNameData.db.profile.enable end,
get = function(i) return AloftTargetNameData.db.profile.interval end,
set = function(i, v) AloftTargetNameData.db.profile.interval = v Aloft:DetermineDataSources() end,
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftThreat/AloftThreatDataOptions.lua New file
0,0 → 1,74
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftThreatDataOptions
if not L then return end
 
local AloftThreatData = Aloft:GetModule("ThreatData", true)
if not AloftThreatData then return end
 
-----------------------------------------------------------------------------
 
AloftThreatData.options =
{
AOEEnable =
{
type = 'toggle',
width = 'full',
name = L["AOE Threat"],
desc = L["Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"],
order = 3,
disabled = function(i) return
not Aloft:IsEnabled() or not AloftThreatData:IsEnabled() or
not (Aloft:GetModule("ThreatBar", true) and Aloft:GetModule("ThreatBar"):IsEnabled() and Aloft:GetModule("ThreatBar").db.profile.enable) or
not (Aloft:GetModule("ThreatText", true) and Aloft:GetModule("ThreatText"):IsEnabled() and Aloft:GetModule("ThreatText").db.profile.enable) end,
get = function(i) return AloftThreatData.db.profile.AOEEnable end,
set = function(i, v) AloftThreatData.db.profile.AOEEnable = v Aloft:DetermineDataSources() end,
},
groupEnable =
{
type = 'toggle',
width = 'full',
name = L["Group Threat"],
desc = L["Attempt to approximate threat for visible friendly units versus the player's current target"],
order = 4,
disabled = function(i) return
not Aloft:IsEnabled() or not AloftThreatData:IsEnabled() or
not (Aloft:GetModule("ThreatBar", true) and Aloft:GetModule("ThreatBar"):IsEnabled() and Aloft:GetModule("ThreatBar").db.profile.enable) or
not (Aloft:GetModule("ThreatText", true) and Aloft:GetModule("ThreatText"):IsEnabled() and Aloft:GetModule("ThreatText").db.profile.enable) end,
get = function(i) return AloftThreatData.db.profile.groupEnable end,
set = function(i, v) AloftThreatData.db.profile.groupEnable = v Aloft:DetermineDataSources() end,
},
interval =
{
type = 'range',
width = 'full',
name = L["AOE/Group Threat Update Interval"],
desc = L["The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"],
order = 5,
min = 0.0,
max = 5.0,
step = 0.01,
disabled = function(i) return
not Aloft:IsEnabled() or not AloftThreatData:IsEnabled() or
not (Aloft:GetModule("ThreatBar", true) and Aloft:GetModule("ThreatBar"):IsEnabled() and Aloft:GetModule("ThreatBar").db.profile.enable) or
not (Aloft:GetModule("ThreatText", true) and Aloft:GetModule("ThreatText"):IsEnabled() and Aloft:GetModule("ThreatText").db.profile.enable) or
not AloftThreatData.db.profile.AOEEnable or not AloftThreatData.db.profile.groupEnable end,
get = function(i) return AloftThreatData.db.profile.interval end,
set = function(i, v) AloftThreatData.db.profile.interval = v Aloft:DetermineDataSources() end,
},
}
 
-----------------------------------------------------------------------------
 
end)
\ No newline at end of file
AloftOptions/AloftThreat/AloftThreatLocale.lua New file
0,0 → 1,1038
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
-- TODO: must match similar string in ThreatBar.lua and in localization LUA; TODO: fix this, make it centrally sourced
 
-- threat types
local THREAT_RANGED = "Ranged"
local THREAT_MELEE = "Melee"
local THREAT_TANK = "Tank"
local THREAT_GROUP = "Group"
 
local SHORT_THREAT_TYPES = {
[THREAT_RANGED] = "R",
[THREAT_MELEE] = "M",
[THREAT_TANK] = "K",
[THREAT_GROUP] = "G",
}
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local dL = { }
 
local bL = { }
 
local tL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] dL["AOE Threat"] = "AOE Threat"
--[[ enUS ]] dL["Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"] = "Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"
--[[ enUS ]] dL["Group Threat"] = "Group Threat"
--[[ enUS ]] dL["Attempt to approximate threat for visible friendly units versus the player's current target"] = "Attempt to approximate threat for visible friendly units versus the player's current target"
--[[ enUS ]] dL["AOE/Group Threat Update Interval"] = "AOE/Group Threat Update Interval"
--[[ enUS ]] dL["The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] bL["Threat Bar"] = "Threat Bar"
--[[ enUS ]] bL["Threat Bar options"] = "Threat Bar options"
--[[ enUS ]] bL["Enable"] = "Enable"
--[[ enUS ]] bL["Show threat bars on group member nameplates"] = "Show threat bars on group member nameplates"
--[[ enUS ]] bL["Active While Solo"] = "Active While Solo"
--[[ enUS ]] bL["Show threat bars on nameplates while solo (for classes with pets and guardians)"] = "Show threat bars on nameplates while solo (for classes with pets and guardians)"
 
--[[ enUS ]] bL["Texture"] = "Texture"
--[[ enUS ]] bL["Sets the threat bar texture"] = "Sets the threat bar texture"
--[[ enUS ]] bL["Alpha"] = "Alpha"
--[[ enUS ]] bL["Sets the threat bar alpha"] = "Sets the threat bar alpha"
 
--[[ enUS ]] bL["Height"] = "Height"
--[[ enUS ]] bL["Sets the height of the threat bar"] = "Sets the height of the threat bar"
 
--[[ enUS ]] bL["Position"] = "Position"
--[[ enUS ]] bL["Adjust the threat bar's position"] = "Adjust the threat bar's position"
--[[ enUS ]] bL["Left Offset"] = "Left Offset"
--[[ enUS ]] bL["Sets the offset of the left of the threat bar"] = "Sets the offset of the left of the threat bar"
--[[ enUS ]] bL["Right Offset"] = "Right Offset"
--[[ enUS ]] bL["Sets the offset of the right of the threat bar"] = "Sets the offset of the right of the threat bar"
--[[ enUS ]] bL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] bL["Sets the vertical offset of the threat bar"] = "Sets the vertical offset of the threat bar"
 
--[[ enUS ]] bL["Colors"] = "Colors"
--[[ enUS ]] bL["Customize colors"] = "Customize colors"
--[[ enUS ]] bL["Backdrop Color"] = "Backdrop Color"
--[[ enUS ]] bL["Sets the backdrop color of the threat bar"] = "Sets the backdrop color of the threat bar"
--[[ enUS ]] bL["Common Threat Color"] = "Common Threat Color"
--[[ enUS ]] bL["Sets the threat color for the threat bar when indicating common threat"] = "Sets the threat color for the threat bar when indicating common threat"
--[[ enUS ]] bL["Maximum Threat Color"] = "Maximum Threat Color"
--[[ enUS ]] bL["Sets the threat color for the threat bar when indicating maximum threat"] = "Sets the threat color for the threat bar when indicating maximum threat"
 
--[[ enUS ]] bL["Reset to Defaults"] = "Reset to Defaults"
--[[ enUS ]] bL["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
--[[ enUS ]] bL["Border"] = "Border"
--[[ 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 threat bar"] = "Sets the border color of the threat bar"
--[[ enUS ]] bL["Border Style"] = "Border Style"
--[[ enUS ]] bL["Sets the style of the threat bar border"] = "Sets the style of the threat bar border"
 
--[[ enUS ]] bL["Threat Gain"] = "Threat Gain"
--[[ enUS ]] bL["Threat gain threshold indicator for the player's target nameplate"] = "Threat gain threshold indicator for the player's target nameplate"
--[[ enUS ]] bL["Show maximum threat threshold on the player's target nameplate"] = "Show maximum threat threshold on the player's target nameplate"
--[[ enUS ]] bL["Sets the vertical offset of the maximum threat threshold, relative to the rest of the threat bar"] = "Sets the vertical offset of the maximum threat threshold, relative to the rest of the threat bar"
--[[ enUS ]] bL["Threat Gain Color"] = "Threat Gain Color"
--[[ enUS ]] bL["Sets the color of the maximum threat threshold on the player's target nameplate"] = "Sets the color of the maximum threat threshold on the player's target nameplate"
 
--[[ enUS ]] bL["Threat Flash"] = "Threat Flash"
--[[ enUS ]] bL["Health bar will be highlighted when unit has maximum threat"] = "Health bar will be highlighted when unit has maximum threat"
--[[ enUS ]] bL["Show threat flash"] = "Show threat flash"
--[[ enUS ]] bL["Invert"] = "Invert"
--[[ enUS ]] bL["Invert threat flash (enable on targets below the threshold)"] = "Invert threat flash (enable on targets below the threshold)"
--[[ enUS ]] bL["Threshold"] = "Threshold"
--[[ enUS ]] bL["The percentage of maximum threat at which flash appears"] = "The percentage of maximum threat at which flash appears"
 
--[[ enUS ]] bL["Size"] = "Size"
--[[ enUS ]] bL["Adjust threat flash size"] = "Adjust threat flash size"
--[[ enUS ]] bL["Width"] = "Width"
--[[ enUS ]] bL["Sets the width of the threat flash"] = "Sets the width of the threat flash"
--[[ enUS ]] bL["Height"] = "Height"
--[[ enUS ]] bL["Sets the height of the threat flash"] = "Sets the height of the threat flash"
 
--[[ enUS ]] bL["Position"] = "Position"
--[[ enUS ]] bL["Adjust the threat flash position"] = "Adjust the threat flash position"
--[[ enUS ]] bL["X Offset"] = "X Offset"
--[[ enUS ]] bL["X offset of the threat flash"] = "X offset of the threat flash"
--[[ enUS ]] bL["Y Offset"] = "Y Offset"
--[[ enUS ]] bL["Y offset of the threat flash"] = "Y offset of the threat flash"
 
--[[ enUS ]] bL["Style"] = "Style"
--[[ enUS ]] bL["Sets the threat flash style"] = "Sets the threat flash style"
--[[ enUS ]] bL["Color"] = "Color"
--[[ enUS ]] bL["Sets the threat flash color"] = "Sets the threat flash color"
--[[ enUS ]] bL["Blend Mode"] = "Blend Mode"
--[[ enUS ]] bL["Sets the threat flash blend mode"] = "Sets the threat flash blend mode"
--[[ enUS ]] bL["Resets the threat flash color to its default"] = "Resets the threat flash color to its default"
--[[ enUS ]] bL["Resets the maximum threat threshold color to its default"] = "Resets the maximum threat threshold color to its default"
--[[ enUS ]] bL["Reset Color to Default"] = "Reset Color to Default"
 
--[[ enUS ]] bL["Advanced"] = "Advanced"
--[[ enUS ]] bL["Options for expert users"] = "Options for expert users"
--[[ enUS ]] bL["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] bL["BLEND"] = "BLEND"
--[[ enUS ]] bL["ADD"] = "ADD"
 
--[[ enUS ]] bL["HARD"] = "HARD"
--[[ enUS ]] bL["SOFT"] = "SOFT"
--[[ enUS ]] bL["PRTLSOFT"]= "PRTLSOFT"
--[[ enUS ]] bL["THRQTRSOFT"] = "THRQTRSOFT"
--[[ enUS ]] bL["EXTRASOFT"] = "EXTRASOFT"
--[[ enUS ]] bL["OVAL"] = "OVAL"
--[[ enUS ]] bL["OVALGLOW"] = "OVALGLOW"
--[[ enUS ]] bL["SQUAREGLOW"] = "SQUAREGLOW"
--[[ enUS ]] bL["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ enUS ]] bL["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] tL["Threat Text"] = "Threat Text"
--[[ enUS ]] tL["Threat text options"] = "Threat text options"
--[[ enUS ]] tL["Enable"] = "Enable"
--[[ enUS ]] tL["Show threat text on nameplates"] = "Show threat text on nameplates"
--[[ enUS ]] tL["Active While Solo"] = "Active While Solo"
--[[ enUS ]] tL["Show threat text on nameplates while solo (for classes with pets and guardians)"] = "Show threat text on nameplates while solo (for classes with pets and guardians)"
 
--[[ enUS ]] tL["Typeface"] = "Typeface"
--[[ enUS ]] tL["Threat text typeface options"] = "Threat text typeface options"
--[[ enUS ]] tL["Font"] = "Font"
--[[ enUS ]] tL["Sets the font for threat text"] = "Sets the font for threat text"
--[[ enUS ]] tL["Font Size"] = "Font Size"
--[[ enUS ]] tL["Sets the font height of the threat text"] = "Sets the font height of the threat text"
--[[ enUS ]] tL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] tL["Show font shadow on threat text"] = "Show font shadow on threat text"
--[[ enUS ]] tL["Outline"] = "Outline"
--[[ enUS ]] tL["Sets the outline for threat text"] = "Sets the outline for threat text"
--[[ enUS ]] tL["Mode"] = "Mode"
--[[ enUS ]] tL["Choose what to show for threat text"] = "Choose what to show for threat text"
 
--[[ enUS ]] tL["Position"] = "Position"
--[[ enUS ]] tL["Adjust threat text position"] = "Adjust threat text position"
--[[ enUS ]] tL["Anchor"] = "Anchor"
--[[ enUS ]] tL["Sets the anchor for the threat text"] = "Sets the anchor for the threat text"
--[[ enUS ]] tL["Anchor To"] = "Anchor To"
--[[ enUS ]] tL["Sets the relative point on the threat bar to anchor the threat text"] = "Sets the relative point on the threat bar to anchor the threat text"
--[[ enUS ]] tL["X Offset"] = "X Offset"
--[[ enUS ]] tL["X offset of the threat text"] = "X offset of the threat text"
--[[ enUS ]] tL["Y Offset"] = "Y Offset"
--[[ enUS ]] tL["Y offset of the threat text"] = "Y offset of the threat text"
--[[ enUS ]] tL["Alpha"] = "Alpha"
--[[ enUS ]] tL["Sets the alpha of the threat text"] = "Sets the alpha of the threat text"
--[[ enUS ]] tL["Color"] = "Color"
--[[ enUS ]] tL["Sets the threat text color"] = "Sets the threat text color"
 
--[[ enUS ]] tL["None"] = "None"
--[[ enUS ]] tL["Normal"] = "Normal"
--[[ enUS ]] tL["Thick"] = "Thick"
 
--[[ enUS ]] tL["Percent"] = "Percent"
--[[ enUS ]] tL["Threat"] = "Threat"
--[[ enUS ]] tL["Threat & Percent"] = "Threat & Percent"
--[[ enUS ]] tL["Deficit"] = "Deficit"
--[[ enUS ]] tL["Full"] = "Full"
 
--[[ enUS ]] tL["Advanced"] = "Advanced"
--[[ enUS ]] tL["Options for expert users"] = "Options for expert users"
--[[ enUS ]] tL["Format"] = "Format"
--[[ enUS ]] tL["Threat tag"] = "Threat tag"
--[[ enUS ]] tL["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] tL["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] tL["TOP"] = "TOP"
--[[ enUS ]] tL["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] tL["LEFT"] = "LEFT"
--[[ enUS ]] tL["CENTER"] = "CENTER"
--[[ enUS ]] tL["RIGHT"] = "RIGHT"
--[[ enUS ]] tL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] tL["BOTTOM"] = "BOTTOM"
--[[ enUS ]] tL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftThreat"] = "AloftThreat"
--[[ enUS ]] mL["Display threat data, bars, and text on nameplates"] = "Display threat data, bars, and text on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] dL["AOE Threat"] = "AOE Threat"
--[[ koKR ]] dL["Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"] = "Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"
--[[ koKR ]] dL["Group Threat"] = "Group Threat"
--[[ koKR ]] dL["Attempt to approximate threat for visible friendly units versus the player's current target"] = "Attempt to approximate threat for visible friendly units versus the player's current target"
--[[ koKR ]] dL["AOE/Group Threat Update Interval"] = "AOE/Group Threat Update Interval"
--[[ koKR ]] dL["The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] bL["Threat Bar"] = "위협바"
--[[ koKR ]] bL["Threat Bar options"] = "위협바 설정"
--[[ koKR ]] bL["Enable"] = "사용"
--[[ koKR ]] bL["Show threat bars on group member nameplates"] = "Show threat bars on group member nameplates"
--[[ koKR ]] bL["Active While Solo"] = "Active While Solo"
--[[ koKR ]] bL["Show threat bars on nameplates while solo (for classes with pets and guardians)"] = "Show threat bars on nameplates while solo (for classes with pets and guardians)"
 
--[[ koKR ]] bL["Texture"] = "텍스쳐"
--[[ koKR ]] bL["Sets the threat bar texture"] = "위협바의 텍스쳐를 설정합니다."
--[[ koKR ]] bL["Alpha"] = "투명도"
--[[ koKR ]] bL["Sets the threat bar alpha"] = "위협바의 투명도를 설정합니다."
 
--[[ koKR ]] bL["Height"] = "높이"
--[[ koKR ]] bL["Sets the height of the threat bar"] = "위협바의 높이를 설정합니다."
 
--[[ koKR ]] bL["Position"] = "위치"
--[[ koKR ]] bL["Adjust the threat bar's position"] = "위협바의 위치를 조절합니다."
--[[ koKR ]] bL["Left Offset"] = "좌측 좌표"
--[[ koKR ]] bL["Sets the offset of the left of the threat bar"] = "위협바의 좌측 좌표를 설정합니다."
--[[ koKR ]] bL["Right Offset"] = "우측 좌표"
--[[ koKR ]] bL["Sets the offset of the right of the threat bar"] = "위협바의 우측 좌표를 설정합니다."
--[[ koKR ]] bL["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] bL["Sets the vertical offset of the threat bar"] = "위협바의 수직 좌표를 설정합니다."
 
--[[ koKR ]] bL["Colors"] = "색상"
--[[ koKR ]] bL["Customize colors"] = "사용자 색상"
--[[ koKR ]] bL["Backdrop Color"] = "배경 색상"
--[[ koKR ]] bL["Sets the backdrop color of the threat bar"] = "Sets the backdrop color of the threat bar"
--[[ koKR ]] bL["Common Threat Color"] = "Common Threat Color"
--[[ koKR ]] bL["Sets the threat color for the threat bar when indicating common threat"] = "Sets the threat color for the threat bar when indicating common threat"
--[[ koKR ]] bL["Maximum Threat Color"] = "Maximum Threat Color"
--[[ koKR ]] bL["Sets the threat color for the threat bar when indicating maximum threat"] = "Sets the threat color for the threat bar when indicating maximum threat"
 
--[[ koKR ]] bL["Reset to Defaults"] = "기본값 초기화"
--[[ koKR ]] bL["Resets all colors to their defaults"] = "모든 색상을 기본값으로 초기화합니다."
 
--[[ koKR ]] bL["Border"] = "Border"
--[[ 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 threat bar"] = "Sets the border color of the threat bar"
--[[ koKR ]] bL["Border Style"] = "테두리 스타일"
--[[ koKR ]] bL["Sets the style of the threat bar border"] = "Sets the style of the threat bar border"
 
--[[ koKR ]] bL["Threat Gain"] = "Threat Gain"
--[[ koKR ]] bL["Threat gain threshold indicator for the player's target nameplate"] = "Threat gain threshold indicator for the player's target nameplate"
--[[ koKR ]] bL["Show maximum threat threshold on the player's target nameplate"] = "Show maximum threat threshold on the player's target nameplate"
--[[ koKR ]] bL["Sets the vertical offset of the maximum threat threshold, relative to the rest of the threat bar"] = "Sets the vertical offset of the maximum threat threshold, relative to the rest of the threat bar"
--[[ koKR ]] bL["Threat Gain Color"] = "Threat Gain Color"
--[[ koKR ]] bL["Sets the color of the maximum threat threshold on the player's target nameplate"] = "Sets the color of the maximum threat threshold on the player's target nameplate"
 
--[[ koKR ]] bL["Threat Flash"] = "Threat Flash"
--[[ koKR ]] bL["Health bar will be highlighted when unit has maximum threat"] = "Health bar will be highlighted when unit has maximum threat"
--[[ koKR ]] bL["Show threat flash"] = "Show threat flash"
--[[ koKR ]] bL["Invert"] = "Invert"
--[[ koKR ]] bL["Invert threat flash (enable on targets below the threshold)"] = "Invert threat flash (enable on targets below the threshold)"
--[[ koKR ]] bL["Threshold"] = "Threshold"
--[[ koKR ]] bL["The percentage of maximum threat at which flash appears"] = "The percentage of maximum threat at which flash appears"
 
--[[ koKR ]] bL["Size"] = "크기"
--[[ koKR ]] bL["Adjust threat flash size"] = "Adjust threat flash size"
--[[ koKR ]] bL["Width"] = "너비"
--[[ koKR ]] bL["Sets the width of the threat flash"] = "Sets the width of the threat flash"
--[[ koKR ]] bL["Height"] = "높이"
--[[ koKR ]] bL["Sets the height of the threat flash"] = "Sets the height of the threat flash"
 
--[[ koKR ]] bL["Position"] = "위치"
--[[ koKR ]] bL["Adjust the threat flash position"] = "Adjust the threat flash position"
--[[ koKR ]] bL["X Offset"] = "X 좌표"
--[[ koKR ]] bL["X offset of the threat flash"] = "X offset of the threat flash"
--[[ koKR ]] bL["Y Offset"] = "Y 좌표"
--[[ koKR ]] bL["Y offset of the threat flash"] = "Y offset of the threat flash"
 
--[[ koKR ]] bL["Style"] = "Style"
--[[ koKR ]] bL["Sets the threat flash style"] = "Sets the threat flash style"
--[[ koKR ]] bL["Color"] = "색상"
--[[ koKR ]] bL["Sets the threat flash color"] = "Sets the threat flash color"
--[[ koKR ]] bL["Blend Mode"] = "혼합 모드"
--[[ koKR ]] bL["Sets the threat flash blend mode"] = "Sets the threat flash blend mode"
--[[ koKR ]] bL["Resets the threat flash color to its default"] = "Resets the threat flash color to its default"
--[[ koKR ]] bL["Resets the maximum threat threshold color to its default"] = "Resets the maximum threat threshold color to its default"
--[[ koKR ]] bL["Reset Color to Default"] = "Reset Color to Default"
 
--[[ koKR ]] bL["Advanced"] = "고급"
--[[ koKR ]] bL["Options for expert users"] = "고급 사용자를 위한 설정"
--[[ koKR ]] bL["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] bL["BLEND"] = "혼합"
--[[ koKR ]] bL["ADD"] = "추가"
 
--[[ koKR ]] bL["HARD"] = "HARD"
--[[ koKR ]] bL["SOFT"] = "SOFT"
--[[ koKR ]] bL["PRTLSOFT"] = "PRTLSOFT"
--[[ koKR ]] bL["THRQTRSOFT"] = "THRQTRSOFT"
--[[ koKR ]] bL["EXTRASOFT"] = "EXTRASOFT"
--[[ koKR ]] bL["OVAL"] = "OVAL"
--[[ koKR ]] bL["OVALGLOW"] = "OVALGLOW"
--[[ koKR ]] bL["SQUAREGLOW"] = "SQUAREGLOW"
--[[ koKR ]] bL["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ koKR ]] bL["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] tL["Threat Text"] = "Threat Text"
--[[ koKR ]] tL["Threat text options"] = "Threat text options"
--[[ koKR ]] tL["Enable"] = "사용"
--[[ koKR ]] tL["Show threat text on nameplates"] = "Show threat text on nameplates"
--[[ koKR ]] tL["Active While Solo"] = "Active While Solo"
--[[ koKR ]] tL["Show threat text on nameplates while solo (for classes with pets and guardians)"] = "Show threat text on nameplates while solo (for classes with pets and guardians)"
 
--[[ koKR ]] tL["Typeface"] = "서체"
--[[ koKR ]] tL["Threat text typeface options"] = "Threat text typeface options"
--[[ koKR ]] tL["Font"] = "글꼴"
--[[ koKR ]] tL["Sets the font for threat text"] = "Sets the font for threat text"
--[[ koKR ]] tL["Font Size"] = "글꼴 크기"
--[[ koKR ]] tL["Sets the font height of the threat text"] = "Sets the font height of the threat text"
--[[ koKR ]] tL["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] tL["Show font shadow on threat text"] = "Show font shadow on threat text"
--[[ koKR ]] tL["Outline"] = "테두리"
--[[ koKR ]] tL["Sets the outline for threat text"] = "Sets the outline for threat text"
--[[ koKR ]] tL["Mode"] = "모드"
--[[ koKR ]] tL["Choose what to show for threat text"] = "Choose what to show for threat text"
 
--[[ koKR ]] tL["Position"] = "위치"
--[[ koKR ]] tL["Adjust threat text position"] = "Adjust threat text position"
--[[ koKR ]] tL["Anchor"] = "앵커"
--[[ koKR ]] tL["Sets the anchor for the threat text"] = "Sets the anchor for the threat text"
--[[ koKR ]] tL["Anchor To"] = "앵커 위치"
--[[ koKR ]] tL["Sets the relative point on the threat bar to anchor the threat text"] = "Sets the relative point on the threat bar to anchor the threat text"
--[[ koKR ]] tL["X Offset"] = "X 좌표"
--[[ koKR ]] tL["X offset of the threat text"] = "X offset of the threat text"
--[[ koKR ]] tL["Y Offset"] = "Y 좌표"
--[[ koKR ]] tL["Y offset of the threat text"] = "Y offset of the threat text"
--[[ koKR ]] tL["Alpha"] = "투명도"
--[[ koKR ]] tL["Sets the alpha of the threat text"] = "Sets the alpha of the threat text"
--[[ koKR ]] tL["Color"] = "색상"
--[[ koKR ]] tL["Sets the threat text color"] = "Sets the threat text color"
 
--[[ koKR ]] tL["None"] = "없음"
--[[ koKR ]] tL["Normal"] = "기본"
--[[ koKR ]] tL["Thick"] = "굵게"
 
--[[ koKR ]] tL["Percent"] = "Percent"
--[[ koKR ]] tL["Threat"] = "Threat"
--[[ koKR ]] tL["Threat & Percent"] = "Threat & Percent"
--[[ koKR ]] tL["Deficit"] = "Deficit"
--[[ koKR ]] tL["Full"] = "Full"
 
--[[ koKR ]] tL["Advanced"] = "고급"
--[[ koKR ]] tL["Options for expert users"] = "고급 사용자를 위한 설정입니다."
--[[ koKR ]] tL["Format"] = "형식"
--[[ koKR ]] tL["Threat tag"] = "Threat tag"
--[[ koKR ]] tL["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] tL["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] tL["TOP"] = "상단"
--[[ koKR ]] tL["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] tL["LEFT"] = "좌측"
--[[ koKR ]] tL["CENTER"] = "가운데"
--[[ koKR ]] tL["RIGHT"] = "우측"
--[[ koKR ]] tL["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] tL["BOTTOM"] = "하단"
--[[ koKR ]] tL["BOTTOMRIGHT"] = "우측 하단"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftThreat"] = "Aloft Threat"
--[[ koKR ]] mL["Display threat data, bars, and text on nameplates"] = "Show threat data, bars, and text on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] dL["AOE Threat"] = "Масс угроза"
--[[ ruRU ]] dL["Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"] = "Попытаться подсчитать приблизительное значение угрозы для видимох враждебнох единиц против игрока ( кроме игрока нынешней цели)"
--[[ ruRU ]] dL["Group Threat"] = "Угроза группы"
--[[ ruRU ]] dL["Attempt to approximate threat for visible friendly units versus the player's current target"] = "Попытаться подсчитать приблизительное значение угрозы для видимых дружественных единиц против игрока\существа текущей цели"
--[[ ruRU ]] dL["AOE/Group Threat Update Interval"] = "Скорость обновления угрозы МАСС/Группы"
--[[ ruRU ]] dL["The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"] = "Значение времени в секундах, между обновлениеми угрозы активной/обширной-группы (0.0 максимальная скорость)"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] bL["Threat Bar"] = "Полоска угрозы"
--[[ ruRU ]] bL["Threat Bar options"] = "Настройки полоски угрозы"
--[[ ruRU ]] bL["Enable"] = "Включить"
--[[ ruRU ]] bL["Show threat bars on group member nameplates"] = "Отображать полоски угрозы на табличках участников группы"
--[[ ruRU ]] bL["Active While Solo"] = "Включено, когда один"
--[[ ruRU ]] bL["Show threat bars on nameplates while solo (for classes with pets and guardians)"] = "Отображать полоски угрозы на табличках когда один (для классов с питомцами и защитниками)"
 
--[[ ruRU ]] bL["Texture"] = "Текстура"
--[[ ruRU ]] bL["Sets the threat bar texture"] = "Задает текстуру полоски угрозы"
--[[ ruRU ]] bL["Alpha"] = "Прозрачность"
--[[ ruRU ]] bL["Sets the threat bar alpha"] = "Задает прозрачность полоски угрозы"
 
--[[ ruRU ]] bL["Height"] = "Высота"
--[[ ruRU ]] bL["Sets the height of the threat bar"] = "Задает высоту полоски угрозы"
 
--[[ ruRU ]] bL["Position"] = "Позиция"
--[[ ruRU ]] bL["Adjust the threat bar's position"] = "Задать место полоски угрозы"
--[[ ruRU ]] bL["Left Offset"] = "Левое смещение"
--[[ ruRU ]] bL["Sets the offset of the left of the threat bar"] = "Задает смещение правого конца полоски угрозы"
--[[ ruRU ]] bL["Right Offset"] = "Правое смещение"
--[[ ruRU ]] bL["Sets the offset of the right of the threat bar"] = "Задает смещение правого конца полоски угрозы"
--[[ ruRU ]] bL["Vertical Offset"] = "Вертикальное смещение"
--[[ ruRU ]] bL["Sets the vertical offset of the threat bar"] = "Задает вертикальное смещение полоски угрозы"
 
--[[ ruRU ]] bL["Colors"] = "Цвета"
--[[ ruRU ]] bL["Customize colors"] = "Настройка цветов"
--[[ ruRU ]] bL["Backdrop Color"] = "Цвет тени"
--[[ ruRU ]] bL["Sets the backdrop color of the threat bar"] = "Задает цвет тени полоски угрозы"
--[[ ruRU ]] bL["Common Threat Color"] = "Цвет общей угрозы"
--[[ ruRU ]] bL["Sets the threat color for the threat bar when indicating common threat"] = "Задает цвет угрозы для полоски угрозы при отображении обычной угрозы"
--[[ ruRU ]] bL["Maximum Threat Color"] = "Цвет максимальной угрозы"
--[[ ruRU ]] bL["Sets the threat color for the threat bar when indicating maximum threat"] = "Задает цвет угрозы для полоски угрозы при отображении максимальной угрозы"
 
--[[ ruRU ]] bL["Reset to Defaults"] = "Сбросить настройки"
--[[ ruRU ]] bL["Resets all colors to their defaults"] = "Сбрасывает все цвета в настройки по умолчанию"
 
--[[ ruRU ]] bL["Border"] = "Края"
--[[ 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 threat bar"] = "Задает цвет рамки таблички угрозы"
--[[ ruRU ]] bL["Border Style"] = "Стиль рамки"
--[[ ruRU ]] bL["Sets the style of the threat bar border"] = "Задает стиль рамки таблички угрозы"
 
--[[ ruRU ]] bL["Threat Gain"] = "Получение угрозы"
--[[ ruRU ]] bL["Threat gain threshold indicator for the player's target nameplate"] = "Уровень угрозы для начала индикации на табличке игрока"
--[[ ruRU ]] bL["Show maximum threat threshold on the player's target nameplate"] = "Отображать максимальный уровень угрозы на табличке цели"
--[[ ruRU ]] bL["Sets the vertical offset of the maximum threat threshold, relative to the rest of the threat bar"] = "Задает вертикальное смещение уровня максимальной угрозы относительно полоски угрозы"
--[[ ruRU ]] bL["Threat Gain Color"] = "Цвет получения угрозы"
--[[ ruRU ]] bL["Sets the color of the maximum threat threshold on the player's target nameplate"] = "Задает цвет максимального уровня угрозы на табличке цели"
 
--[[ ruRU ]] bL["Threat Flash"] = "Вспышка угрозы"
--[[ ruRU ]] bL["Health bar will be highlighted when unit has maximum threat"] = "Полоса здоровья будет подсвечиваться когда игрок/существо достигает макс угрозы"
--[[ ruRU ]] bL["Show threat flash"] = "Отображать вспышку угрозы"
--[[ ruRU ]] bL["Invert"] = "Инвертировать"
--[[ ruRU ]] bL["Invert threat flash (enable on targets below the threshold)"] = "Инвертировать вспышку угрозы (включить на целях ниже порога)"
--[[ ruRU ]] bL["Threshold"] = "Смещение"
--[[ ruRU ]] bL["The percentage of maximum threat at which flash appears"] = "Процент от максимального уровня угрозы, при котором появляется вспышка"
 
--[[ ruRU ]] bL["Size"] = "Размер"
--[[ ruRU ]] bL["Adjust threat flash size"] = "Задать место вспышки угрозы"
--[[ ruRU ]] bL["Width"] = "Ширина"
--[[ ruRU ]] bL["Sets the width of the threat flash"] = "Задает ширину вспышки угрозы"
--[[ ruRU ]] bL["Height"] = "Высота"
--[[ ruRU ]] bL["Sets the height of the threat flash"] = "Задает высоту вспышки угрозы"
 
--[[ ruRU ]] bL["Position"] = "Позиция"
--[[ ruRU ]] bL["Adjust the threat flash position"] = "Задать место вспышки угрозы"
--[[ ruRU ]] bL["X Offset"] = "Смещение по X"
--[[ ruRU ]] bL["X offset of the threat flash"] = "Смещение вспышки угрозы по X"
--[[ ruRU ]] bL["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] bL["Y offset of the threat flash"] = "Смещение вспышки угрозы по Y"
 
--[[ ruRU ]] bL["Style"] = "Стиль"
--[[ ruRU ]] bL["Sets the threat flash style"] = "Задает стиль вспышки угрозы"
--[[ ruRU ]] bL["Color"] = "Цвет"
--[[ ruRU ]] bL["Sets the threat flash color"] = "Задает цвет вспышки угрозы"
--[[ ruRU ]] bL["Blend Mode"] = "Режим смешивания"
--[[ ruRU ]] bL["Sets the threat flash blend mode"] = "Задает тип смешения вспышки угрозы"
--[[ ruRU ]] bL["Resets the threat flash color to its default"] = "Сброс цвета вспышки угрозы в цвет по умолчанию"
--[[ ruRU ]] bL["Resets the maximum threat threshold color to its default"] = "Сброс цвета максимальной пороговой угрозы в цвет по умолчанию"
--[[ ruRU ]] bL["Reset Color to Default"] = "Сбросить цвет на изначальный"
 
--[[ ruRU ]] bL["Advanced"] = "Дополнительно"
--[[ ruRU ]] bL["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] bL["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] bL["BLEND"] = "СМЕШИВАТЬ"
--[[ ruRU ]] bL["ADD"] = "ДОБАВИТЬ"
 
--[[ ruRU ]] bL["HARD"] = "СИЛЬНОЕ"
--[[ ruRU ]] bL["SOFT"] = "МЯГКОЕ"
--[[ ruRU ]] bL["PRTLSOFT"] = "PRTLSOFT"
--[[ ruRU ]] bL["THRQTRSOFT"] = "THRQTRSOFT"
--[[ ruRU ]] bL["EXTRASOFT"] = "СВЕРХМЯГКОЕ"
--[[ ruRU ]] bL["OVAL"] = "ОВАЛ"
--[[ ruRU ]] bL["OVALGLOW"] = "ОВАЛСВЕЧЕНИЕ"
--[[ ruRU ]] bL["SQUAREGLOW"] = "КВАДРАТНОЕ СВЕЧЕНИЕ"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] tL["Threat Text"] = "Текст угрозы"
--[[ ruRU ]] tL["Threat text options"] = "Настройки текста угрозы"
--[[ ruRU ]] tL["Enable"] = "Включить"
--[[ ruRU ]] tL["Show threat text on nameplates"] = "Отображать текст угрозы на табличках"
--[[ ruRU ]] tL["Active While Solo"] = "Включено, когда один"
--[[ ruRU ]] tL["Show threat text on nameplates while solo (for classes with pets and guardians)"] = "Отображать текст угрозы когда один (для классов с питомцами и защитниками)"
 
--[[ ruRU ]] tL["Typeface"] = "Шрифт"
--[[ ruRU ]] tL["Threat text typeface options"] = "Настройки шрифта текста угрозы"
--[[ ruRU ]] tL["Font"] = "Шрифт"
--[[ ruRU ]] tL["Sets the font for threat text"] = "Задает шрифт для текста угрозы"
--[[ ruRU ]] tL["Font Size"] = "Размер шрифта"
--[[ ruRU ]] tL["Sets the font height of the threat text"] = "Задает высоту шрифта для текста угрозы"
--[[ ruRU ]] tL["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] tL["Show font shadow on threat text"] = "Отображать тень для текста угрозы"
--[[ ruRU ]] tL["Outline"] = "Контур"
--[[ ruRU ]] tL["Sets the outline for threat text"] = "Задает контур для текста угрозы"
--[[ ruRU ]] tL["Mode"] = "Режим"
--[[ ruRU ]] tL["Choose what to show for threat text"] = "Выбрать, что показывать в тексте угрозы"
 
--[[ ruRU ]] tL["Position"] = "Позиция"
--[[ ruRU ]] tL["Adjust threat text position"] = "Задать позицию значения угрозы"
--[[ ruRU ]] tL["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] tL["Sets the anchor for the threat text"] = "Задает прикрепление текста угрозы"
--[[ ruRU ]] tL["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] tL["Sets the relative point on the threat bar to anchor the threat text"] = "Задает точку для положения текста угрозы относительно полоски угрозы"
--[[ ruRU ]] tL["X Offset"] = "Смещение по X"
--[[ ruRU ]] tL["X offset of the threat text"] = "Смещение текста угрозы по X"
--[[ ruRU ]] tL["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] tL["Y offset of the threat text"] = "Смещение текста угрозы по Y"
--[[ ruRU ]] tL["Alpha"] = "Прозрачность"
--[[ ruRU ]] tL["Sets the alpha of the threat text"] = "Задает прозрачность текста угрозы"
--[[ ruRU ]] tL["Color"] = "Цвет"
--[[ ruRU ]] tL["Sets the threat text color"] = "Задает цвет текста угрозы"
 
--[[ ruRU ]] tL["None"] = "Нет"
--[[ ruRU ]] tL["Normal"] = "Обычно"
--[[ ruRU ]] tL["Thick"] = "Жирный"
 
--[[ ruRU ]] tL["Percent"] = "Проценты"
--[[ ruRU ]] tL["Threat"] = "Угроза"
--[[ ruRU ]] tL["Threat & Percent"] = "Угроза & Проценты"
--[[ ruRU ]] tL["Deficit"] = "Дефицит"
--[[ ruRU ]] tL["Full"] = "Полное"
 
--[[ ruRU ]] tL["Advanced"] = "Дополнительно"
--[[ ruRU ]] tL["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] tL["Format"] = "Формат"
--[[ ruRU ]] tL["Threat tag"] = "Формат угрозы"
--[[ ruRU ]] tL["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] tL["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] tL["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] tL["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] tL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] tL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] tL["RIGHT"] = "СПРАВА"
--[[ ruRU ]] tL["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] tL["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] tL["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftThreat"] = "AloftThreat"
--[[ ruRU ]] mL["Display threat data, bars, and text on nameplates"] = "Отображает текст/полосы/данные по угрозе"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] dL["AOE Threat"] = "AOE Threat"
--[[ zhCN ]] dL["Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"] = "Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"
--[[ zhCN ]] dL["Group Threat"] = "Group Threat"
--[[ zhCN ]] dL["Attempt to approximate threat for visible friendly units versus the player's current target"] = "Attempt to approximate threat for visible friendly units versus the player's current target"
--[[ zhCN ]] dL["AOE/Group Threat Update Interval"] = "AOE/Group Threat Update Interval"
--[[ zhCN ]] dL["The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] bL["Threat Bar"] = "威胁值显示条"
--[[ zhCN ]] bL["Threat Bar options"] = "威胁值显示条相关设置"
--[[ zhCN ]] bL["Enable"] = "启用"
--[[ zhCN ]] bL["Show threat bars on group member nameplates"] = "在小队成员的姓名板上显示威胁值"
--[[ zhCN ]] bL["Active While Solo"] = "单人时也启用"
--[[ zhCN ]] bL["Show threat bars on nameplates while solo (for classes with pets and guardians)"] = "单人时也启用"
 
--[[ zhCN ]] bL["Texture"] = "材质"
--[[ zhCN ]] bL["Sets the threat bar texture"] = "设定威胁值显示条的材质"
--[[ zhCN ]] bL["Alpha"] = "透明度"
--[[ zhCN ]] bL["Sets the threat bar alpha"] = "设定威胁值显示条的透明度"
 
--[[ zhCN ]] bL["Height"] = "高度"
--[[ zhCN ]] bL["Sets the height of the threat bar"] = "设定威胁值显示条的高度"
 
--[[ zhCN ]] bL["Position"] = "位置"
--[[ zhCN ]] bL["Adjust the threat bar's position"] = "调整威胁值显示条的位置"
--[[ zhCN ]] bL["Left Offset"] = "向左偏移"
--[[ zhCN ]] bL["Sets the offset of the left of the threat bar"] = "设定威胁值显示条的向左偏移量"
--[[ zhCN ]] bL["Right Offset"] = "向右偏移"
--[[ zhCN ]] bL["Sets the offset of the right of the threat bar"] = "设定威胁值显示条的向右偏移量"
--[[ zhCN ]] bL["Vertical Offset"] = "垂直偏移"
--[[ zhCN ]] bL["Sets the vertical offset of the threat bar"] = "设定威胁值显示条的垂直偏移量"
 
--[[ zhCN ]] bL["Colors"] = "颜色"
--[[ zhCN ]] bL["Customize colors"] = "自定义颜色"
--[[ zhCN ]] bL["Backdrop Color"] = "背景颜色"
--[[ zhCN ]] bL["Sets the backdrop color of the threat bar"] = "设置威胁值条的背景颜色"
--[[ zhCN ]] bL["Common Threat Color"] = "普通威胁颜色"
--[[ zhCN ]] bL["Sets the threat color for the threat bar when indicating common threat"] = "设置普通威胁状态的威胁条颜色"
--[[ zhCN ]] bL["Maximum Threat Color"] = "最大威胁颜色"
--[[ zhCN ]] bL["Sets the threat color for the threat bar when indicating maximum threat"] = "设置最大威胁状态的威胁条颜色"
 
--[[ zhCN ]] bL["Reset to Defaults"] = "重置为默认值"
--[[ zhCN ]] bL["Resets all colors to their defaults"] = "将全部颜色设定重置为默认"
 
--[[ zhCN ]] bL["Border"] = "Border"
--[[ 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 threat bar"] = "Sets the border color of the threat bar"
--[[ zhCN ]] bL["Border Style"] = "边框样式"
--[[ zhCN ]] bL["Sets the style of the threat bar border"] = "Sets the style of the threat bar border"
 
--[[ zhCN ]] bL["Threat Gain"] = "获得仇恨"
--[[ zhCN ]] bL["Threat gain threshold indicator for the player's target nameplate"] = "玩家目标姓名板上的获得仇恨阀值指示器"
--[[ zhCN ]] bL["Show maximum threat threshold on the player's target nameplate"] = "在玩家目标姓名板上显示最大威胁阀值"
--[[ zhCN ]] bL["Sets the vertical offset of the maximum threat threshold, relative to the rest of the threat bar"] = "设置最大威胁阀值相对于威胁条其他部分的垂直偏移"
--[[ zhCN ]] bL["Threat Gain Color"] = "获得仇恨颜色"
--[[ zhCN ]] bL["Sets the color of the maximum threat threshold on the player's target nameplate"] = "设置玩家目标姓名板上的最大威胁阀值颜色"
 
--[[ zhCN ]] bL["Threat Flash"] = "威胁闪烁"
--[[ zhCN ]] bL["Health bar will be highlighted when unit has maximum threat"] = "在该单位获得最大威胁值时高亮其生命条"
--[[ zhCN ]] bL["Invert"] = "Invert"
--[[ zhCN ]] bL["Invert threat flash (enable on targets below the threshold)"] = "Invert threat flash (enable on targets below the threshold)"
--[[ zhCN ]] bL["Show threat flash"] = "使用威胁闪烁"
--[[ zhCN ]] bL["Threshold"] = "Threshold"
--[[ zhCN ]] bL["The percentage of maximum threat at which flash appears"] = "The percentage of maximum threat at which flash appears"
 
--[[ zhCN ]] bL["Size"] = "尺寸"
--[[ zhCN ]] bL["Adjust threat flash size"] = "Adjust threat flash size"
--[[ zhCN ]] bL["Width"] = "宽度"
--[[ zhCN ]] bL["Sets the width of the threat flash"] = "Sets the width of the threat flash"
--[[ zhCN ]] bL["Height"] = "高度"
--[[ zhCN ]] bL["Sets the height of the threat flash"] = "Sets the height of the threat flash"
 
--[[ zhCN ]] bL["Position"] = "位置"
--[[ zhCN ]] bL["Adjust the threat flash position"] = "Adjust the threat flash position"
--[[ zhCN ]] bL["X Offset"] = "X轴偏移"
--[[ zhCN ]] bL["X offset of the threat flash"] = "X offset of the threat flash"
--[[ zhCN ]] bL["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] bL["Y offset of the threat flash"] = "Y offset of the threat flash"
 
--[[ zhCN ]] bL["Style"] = "Style"
--[[ zhCN ]] bL["Sets the threat flash style"] = "Sets the threat flash style"
--[[ zhCN ]] bL["Color"] = "颜色"
--[[ zhCN ]] bL["Sets the threat flash color"] = "设置威胁闪烁的高亮颜色"
--[[ zhCN ]] bL["Blend Mode"] = "渐变模式"
--[[ zhCN ]] bL["Sets the threat flash blend mode"] = "为仇恨闪烁使用渐变模式"
--[[ zhCN ]] bL["Resets the threat flash color to its default"] = "重置威胁闪烁的高亮颜色"
--[[ zhCN ]] bL["Resets the maximum threat threshold color to its default"] = "重置最大仇恨威胁指示的颜色"
--[[ zhCN ]] bL["Reset Color to Default"] = "重置颜色"
 
--[[ zhCN ]] bL["Advanced"] = "高级"
--[[ zhCN ]] bL["Options for expert users"] = "高级设置"
--[[ zhCN ]] bL["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] bL["BLEND"] = "渲染"
--[[ zhCN ]] bL["ADD"] = "增加"
 
--[[ zhCN ]] bL["HARD"] = "HARD"
--[[ zhCN ]] bL["SOFT"] = "SOFT"
--[[ zhCN ]] bL["PRTLSOFT"] = "PRTLSOFT"
--[[ zhCN ]] bL["THRQTRSOFT"] = "THRQTRSOFT"
--[[ zhCN ]] bL["EXTRASOFT"] = "EXTRASOFT"
--[[ zhCN ]] bL["OVAL"] = "OVAL"
--[[ zhCN ]] bL["OVALGLOW"] = "OVALGLOW"
--[[ zhCN ]] bL["SQUAREGLOW"] = "SQUAREGLOW"
--[[ zhCN ]] bL["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ zhCN ]] bL["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] tL["Threat Text"] = "威胁值文字"
--[[ zhCN ]] tL["Threat text options"] = "威胁值文字选项"
--[[ zhCN ]] tL["Enable"] = "启用"
--[[ zhCN ]] tL["Show threat text on nameplates"] = "在姓名板上显示威胁值文字"
--[[ zhCN ]] tL["Active While Solo"] = "单人时也启用"
--[[ zhCN ]] tL["Show threat text on nameplates while solo (for classes with pets and guardians)"] = "单人时也启用"
 
--[[ zhCN ]] tL["Typeface"] = "式样"
--[[ zhCN ]] tL["Threat text typeface options"] = "威胁值文字样式选项"
--[[ zhCN ]] tL["Font"] = "字体"
--[[ zhCN ]] tL["Sets the font for threat text"] = "设置威胁值字体"
--[[ zhCN ]] tL["Font Size"] = "字号"
--[[ zhCN ]] tL["Sets the font height of the threat text"] = "设置威胁值文字大小"
--[[ zhCN ]] tL["Font Shadow"] = "字体阴影"
--[[ zhCN ]] tL["Show font shadow on threat text"] = "为威胁值文字使用阴影"
--[[ zhCN ]] tL["Outline"] = "轮廓"
--[[ zhCN ]] tL["Sets the outline for threat text"] = "设置威胁值文字描边"
--[[ zhCN ]] tL["Mode"] = "模式"
--[[ zhCN ]] tL["Choose what to show for threat text"] = "选择威胁值文字要显示的内容"
 
--[[ zhCN ]] tL["Position"] = "位置"
--[[ zhCN ]] tL["Adjust threat text position"] = "调整威胁值文字位置"
--[[ zhCN ]] tL["Anchor"] = "锚点"
--[[ zhCN ]] tL["Sets the anchor for the threat text"] = "设置威胁值文字的锚点"
--[[ zhCN ]] tL["Anchor To"] = "固定在"
--[[ zhCN ]] tL["Sets the relative point on the threat bar to anchor the threat text"] = "设置威胁值文字要依附到威胁值条的哪个位置"
--[[ zhCN ]] tL["X Offset"] = "X轴偏移"
--[[ zhCN ]] tL["X offset of the threat text"] = "威胁值文字的横向偏移"
--[[ zhCN ]] tL["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] tL["Y offset of the threat text"] = "威胁值文字的纵向偏移"
--[[ zhCN ]] tL["Alpha"] = "透明度"
--[[ zhCN ]] tL["Sets the alpha of the threat text"] = "威胁值文字的透明度"
--[[ zhCN ]] tL["Color"] = "颜色"
--[[ zhCN ]] tL["Sets the threat text color"] = "威胁值文字颜色"
 
--[[ zhCN ]] tL["None"] = "无"
--[[ zhCN ]] tL["Normal"] = "正常"
--[[ zhCN ]] tL["Thick"] = "粗"
 
--[[ zhCN ]] tL["Percent"] = "百分比"
--[[ zhCN ]] tL["Threat"] = "威胁值"
--[[ zhCN ]] tL["Threat & Percent"] = "威胁值和百分比"
--[[ zhCN ]] tL["Deficit"] = "亏减"
--[[ zhCN ]] tL["Full"] = "全部"
 
--[[ zhCN ]] tL["Advanced"] = "高级"
--[[ zhCN ]] tL["Options for expert users"] = "高级设置"
--[[ zhCN ]] tL["Format"] = "格式"
--[[ zhCN ]] tL["Threat tag"] = "威胁标签"
--[[ zhCN ]] tL["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] tL["TOPLEFT"] = "左上"
--[[ zhCN ]] tL["TOP"] = "上"
--[[ zhCN ]] tL["TOPRIGHT"] = "右上"
--[[ zhCN ]] tL["LEFT"] = "å·¦"
--[[ zhCN ]] tL["CENTER"] = "中"
--[[ zhCN ]] tL["RIGHT"] = "右"
--[[ zhCN ]] tL["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] tL["BOTTOM"] = "下"
--[[ zhCN ]] tL["BOTTOMRIGHT"] = "右下"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftThreat"] = "威胁值"
--[[ zhCN ]] mL["Display threat data, bars, and text on nameplates"] = "在姓名板上显示威胁值数据、计量条和文本"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] dL["AOE Threat"] = "AOE Threat"
--[[ zhTW ]] dL["Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"] = "Attempt to approximate threat for visible hostile units versus the player (other than the player's current target)"
--[[ zhTW ]] dL["Group Threat"] = "Group Threat"
--[[ zhTW ]] dL["Attempt to approximate threat for visible friendly units versus the player's current target"] = "Attempt to approximate threat for visible friendly units versus the player's current target"
--[[ zhTW ]] dL["AOE/Group Threat Update Interval"] = "AOE/Group Threat Update Interval"
--[[ zhTW ]] dL["The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between proactive/group-wide threat updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] bL["Threat Bar"] = "威脅值條"
--[[ zhTW ]] bL["Threat Bar options"] = "威脅值條選項"
--[[ zhTW ]] bL["Enable"] = "啟用"
--[[ zhTW ]] bL["Show threat bars on group member nameplates"] = "在隊伍成員"
--[[ zhTW ]] bL["Active While Solo"] = "單人下也顯示"
--[[ zhTW ]] bL["Show threat bars on nameplates while solo (for classes with pets and guardians)"] = "在單人作戰時也顯示威脅值條(例如有寵物的職業)"
 
--[[ zhTW ]] bL["Texture"] = "紋理"
--[[ zhTW ]] bL["Sets the threat bar texture"] = "威脅值條紋理"
--[[ zhTW ]] bL["Alpha"] = "透明度"
--[[ zhTW ]] bL["Sets the threat bar alpha"] = "威脅值條透明度"
 
--[[ zhTW ]] bL["Height"] = "高度"
--[[ zhTW ]] bL["Sets the height of the threat bar"] = "威脅值條高度"
 
--[[ zhTW ]] bL["Position"] = "位置"
--[[ zhTW ]] bL["Adjust the threat bar's position"] = "威脅值條位置"
--[[ zhTW ]] bL["Left Offset"] = "左位移"
--[[ zhTW ]] bL["Sets the offset of the left of the threat bar"] = "威脅值條左位移"
--[[ zhTW ]] bL["Right Offset"] = "右位移"
--[[ zhTW ]] bL["Sets the offset of the right of the threat bar"] = "威脅值條右位移"
--[[ zhTW ]] bL["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] bL["Sets the vertical offset of the threat bar"] = "威脅值條垂直位移"
 
--[[ zhTW ]] bL["Colors"] = "顏色"
--[[ zhTW ]] bL["Customize colors"] = "自定顏色"
--[[ zhTW ]] bL["Backdrop Color"] = "背景顏色"
--[[ zhTW ]] bL["Sets the backdrop color of the threat bar"] = "設置威脅值條背景顏色"
--[[ zhTW ]] bL["Common Threat Color"] = "普通威脅顏色"
--[[ zhTW ]] bL["Sets the threat color for the threat bar when indicating common threat"] = "設置普通威脅的威脅值條顏色"
--[[ zhTW ]] bL["Maximum Threat Color"] = "最大威脅顏色"
--[[ zhTW ]] bL["Sets the threat color for the threat bar when indicating maximum threat"] = "設置最大威脅的威脅值條顏色"
 
--[[ zhTW ]] bL["Reset to Defaults"] = "重設回預設值"
--[[ zhTW ]] bL["Resets all colors to their defaults"] = "重設全部顏色回預設值"
 
--[[ zhTW ]] bL["Border"] = "Border"
--[[ 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 threat bar"] = "Sets the border color of the threat bar"
--[[ zhTW ]] bL["Border Style"] = "邊框樣式"
--[[ zhTW ]] bL["Sets the style of the threat bar border"] = "Sets the style of the threat bar border"
 
--[[ zhTW ]] bL["Threat Gain"] = "獲得仇恨"
--[[ zhTW ]] bL["Threat gain threshold indicator for the player's target nameplate"] = "玩家目標姓名板上顯示的最大威脅閥值指示器"
--[[ zhTW ]] bL["Show maximum threat threshold on the player's target nameplate"] = "在玩家目標姓名板上顯示最大威脅閥值"
--[[ zhTW ]] bL["Sets the vertical offset of the maximum threat threshold, relative to the rest of the threat bar"] = "設置最大威脅值指示相對威脅值條其他部分的偏移"
--[[ zhTW ]] bL["Threat Gain Color"] = "獲得仇恨顏色"
--[[ zhTW ]] bL["Sets the color of the maximum threat threshold on the player's target nameplate"] = "設置目標姓名板上的最大仇恨閥值指示器顏色"
 
--[[ zhTW ]] bL["Threat Flash"] = "威脅閃動"
--[[ zhTW ]] bL["Health bar will be highlighted when unit has maximum threat"] = "在該單位獲得最大威脅時突出其生命條"
--[[ zhTW ]] bL["Show threat flash"] = "顯示威脅閃動"
--[[ zhTW ]] bL["Invert"] = "Invert"
--[[ zhTW ]] bL["Invert threat flash (enable on targets below the threshold)"] = "Invert threat flash (enable on targets below the threshold)"
--[[ zhTW ]] bL["Threshold"] = "Threshold"
--[[ zhTW ]] bL["The percentage of maximum threat at which flash appears"] = "The percentage of maximum threat at which flash appears"
 
--[[ zhTW ]] bL["Size"] = "大小"
--[[ zhTW ]] bL["Adjust threat flash size"] = "Adjust threat flash size"
--[[ zhTW ]] bL["Width"] = "寬度"
--[[ zhTW ]] bL["Sets the width of the threat flash"] = "Sets the width of the threat flash"
--[[ zhTW ]] bL["Height"] = "高度"
--[[ zhTW ]] bL["Sets the height of the threat flash"] = "Sets the height of the threat flash"
 
--[[ zhTW ]] bL["Position"] = "位置"
--[[ zhTW ]] bL["Adjust the threat flash position"] = "Adjust the threat flash position"
--[[ zhTW ]] bL["X Offset"] = "X位移"
--[[ zhTW ]] bL["X offset of the threat flash"] = "X offset of the threat flash"
--[[ zhTW ]] bL["Y Offset"] = "Y位移"
--[[ zhTW ]] bL["Y offset of the threat flash"] = "Y offset of the threat flash"
 
--[[ zhTW ]] bL["Style"] = "Style"
--[[ zhTW ]] bL["Sets the threat flash style"] = "Sets the threat flash style"
--[[ zhTW ]] bL["Color"] = "顏色"
--[[ zhTW ]] bL["Sets the threat flash color"] = "設置威脅值高亮顏色"
--[[ zhTW ]] bL["Blend Mode"] = "漸變模式"
--[[ zhTW ]] bL["Sets the threat flash blend mode"] = "使威脅值閃動使用漸變顏色"
--[[ zhTW ]] bL["Resets the threat flash color to its default"] = "重置威脅值閃動顏色"
--[[ zhTW ]] bL["Resets the maximum threat threshold color to its default"] = "將最大威脅指示顏色重置"
--[[ zhTW ]] bL["Reset Color to Default"] = "重置顏色"
 
--[[ zhTW ]] bL["Advanced"] = "進階"
--[[ zhTW ]] bL["Options for expert users"] = "進階選項"
--[[ zhTW ]] bL["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] bL["BLEND"] = "混合"
--[[ zhTW ]] bL["ADD"] = "增加"
 
--[[ zhTW ]] bL["HARD"] = "HARD"
--[[ zhTW ]] bL["SOFT"] = "SOFT"
--[[ zhTW ]] bL["PRTLSOFT"] = "PRTLSOFT"
--[[ zhTW ]] bL["THRQTRSOFT"] = "THRQTRSOFT"
--[[ zhTW ]] bL["EXTRASOFT"] = "EXTRASOFT"
--[[ zhTW ]] bL["OVAL"] = "OVAL"
--[[ zhTW ]] bL["OVALGLOW"] = "OVALGLOW"
--[[ zhTW ]] bL["SQUAREGLOW"] = "SQUAREGLOW"
--[[ zhTW ]] bL["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ zhTW ]] bL["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] tL["Threat Text"] = "威脅值文本"
--[[ zhTW ]] tL["Threat text options"] = "威脅值文本選項"
--[[ zhTW ]] tL["Enable"] = "啟用"
--[[ zhTW ]] tL["Show threat text on nameplates"] = "在姓名板上顯示威脅值文本"
--[[ zhTW ]] tL["Active While Solo"] = "單人作戰時啟用"
--[[ zhTW ]] tL["Show threat text on nameplates while solo (for classes with pets and guardians)"] = "在單人作戰時也顯示威脅值條(例如有寵物的職業)"
 
--[[ zhTW ]] tL["Typeface"] = "式樣"
--[[ zhTW ]] tL["Threat text typeface options"] = "威脅值文本式樣選項"
--[[ zhTW ]] tL["Font"] = "字型"
--[[ zhTW ]] tL["Sets the font for threat text"] = "設置威脅值文本字型"
--[[ zhTW ]] tL["Font Size"] = "字型大小"
--[[ zhTW ]] tL["Sets the font height of the threat text"] = "設置威脅值文本字型高度"
--[[ zhTW ]] tL["Font Shadow"] = "字型陰影"
--[[ zhTW ]] tL["Show font shadow on threat text"] = "設置威脅值文本字型陰影"
--[[ zhTW ]] tL["Outline"] = "輪廓"
--[[ zhTW ]] tL["Sets the outline for threat text"] = "設置威脅值文本輪廓"
--[[ zhTW ]] tL["Mode"] = "模式"
--[[ zhTW ]] tL["Choose what to show for threat text"] = "選擇威脅值文本顯示的內容"
 
--[[ zhTW ]] tL["Position"] = "位置"
--[[ zhTW ]] tL["Adjust threat text position"] = "調整威脅值文本位置"
--[[ zhTW ]] tL["Anchor"] = "定位點"
--[[ zhTW ]] tL["Sets the anchor for the threat text"] = "設置威脅值文本的定位點"
--[[ zhTW ]] tL["Anchor To"] = "依附到"
--[[ zhTW ]] tL["Sets the relative point on the threat bar to anchor the threat text"] = "設置威脅值文本要依附到威脅值條的哪個位置"
--[[ zhTW ]] tL["X Offset"] = "X位移"
--[[ zhTW ]] tL["X offset of the threat text"] = "威脅值文本的橫向偏移"
--[[ zhTW ]] tL["Y Offset"] = "Y位移"
--[[ zhTW ]] tL["Y offset of the threat text"] = "威脅值文本的縱向偏移"
--[[ zhTW ]] tL["Alpha"] = "透明度"
--[[ zhTW ]] tL["Sets the alpha of the threat text"] = "威脅值文本透明度"
--[[ zhTW ]] tL["Color"] = "顏色"
--[[ zhTW ]] tL["Sets the threat text color"] = "設置威脅值文本顏色"
 
--[[ zhTW ]] tL["None"] = "無"
--[[ zhTW ]] tL["Normal"] = "正常"
--[[ zhTW ]] tL["Thick"] = "粗"
 
--[[ zhTW ]] tL["Percent"] = "百分比"
--[[ zhTW ]] tL["Threat"] = "威脅值"
--[[ zhTW ]] tL["Threat & Percent"] = "威脅值和百分比"
--[[ zhTW ]] tL["Deficit"] = "虧減模式"
--[[ zhTW ]] tL["Full"] = "全部"
 
--[[ zhTW ]] tL["Advanced"] = "進階"
--[[ zhTW ]] tL["Options for expert users"] = "進階選項"
--[[ zhTW ]] tL["Format"] = "格式"
--[[ zhTW ]] tL["Threat tag"] = "威脅值標簽"
--[[ zhTW ]] tL["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] tL["TOPLEFT"] = "左上"
--[[ zhTW ]] tL["TOP"] = "上"
--[[ zhTW ]] tL["TOPRIGHT"] = "右上"
--[[ zhTW ]] tL["LEFT"] = "å·¦"
--[[ zhTW ]] tL["CENTER"] = "中"
--[[ zhTW ]] tL["RIGHT"] = "右"
--[[ zhTW ]] tL["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] tL["BOTTOM"] = "下"
--[[ zhTW ]] tL["BOTTOMRIGHT"] = "右下"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftThreat"] = "威脅值"
--[[ zhTW ]] mL["Display threat data, bars, and text on nameplates"] = "在名牌上顯示威脅值資料、計量條和文本"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftThreatDataOptions = setmetatable(dL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
dL = nil
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftThreatBarOptions = setmetatable(bL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
bL = nil
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftThreatTextOptions = setmetatable(tL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
tL = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftThreat/AloftThreatBarOptions.lua New file
0,0 → 1,523
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftThreatBarOptions
if not L then return end
 
local AloftThreatBar = Aloft:GetModule("ThreatBar", true)
if not AloftThreatBar then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.threatBar =
{
type = 'group',
name = L["Threat Bar"],
desc = L["Threat Bar options"],
disabled = function(i)
-- ChatFrame7:AddMessage("Aloft.Options.args.threatBar.disabled(): " .. tostring(Aloft:IsEnabled()) .. "/" .. tostring(AloftThreatBar:IsEnabled()) .. "/" .. tostring(AloftThreatBar.db) .. "/" .. tostring(AloftThreatBar.db.profile))
return not Aloft:IsEnabled() or not AloftThreatBar:IsEnabled() or not AloftThreatBar.db or not AloftThreatBar.db.profile
end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show threat bars on group member nameplates"],
order = 1,
get = function(i) return AloftThreatBar.db.profile.enable end,
set = function(i, v) AloftThreatBar.db.profile.enable = v Aloft:DetermineDataSources() AloftThreatBar:UpdateAll() end,
},
activeWhileSolo =
{
type = 'toggle',
width = 'full',
name = L["Active While Solo"],
desc = L["Show threat bars on nameplates while solo (for classes with pets and guardians)"],
order = 2,
disabled = function(i) return not AloftThreatBar.db.profile.enable or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) end,
get = function(i) return AloftThreatBar.db.profile.activeWhileSolo end,
set = function(i, v) AloftThreatBar.db.profile.activeWhileSolo = v Aloft:DetermineDataSources() AloftThreatBar:UpdateAll() end,
},
texture =
{
type = 'select',
width = 'full',
name = L["Texture"],
desc = L["Sets the threat bar texture"],
order = 6,
disabled = function(i) return not AloftThreatBar.db.profile.enable or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) end,
get = function(i)
for k, v in pairs(Aloft.Options.args.threatBar.args.texture.values) do
if v == AloftThreatBar.db.profile.texture then
return k
end
end
end,
set = function(i, v)
AloftThreatBar.db.profile.texture = Aloft.Options.args.threatBar.args.texture.values[v]
Aloft:DetermineDataSources()
AloftThreatBar:UpdateAll()
end,
values = SML:List("statusbar"),
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust the threat bar's position"],
order = 7,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatBar:IsEnabled() or not AloftThreatBar.db or not AloftThreatBar.db.profile or not AloftThreatBar.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the threat bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftThreatBar.db.profile.offsets.left end,
set = function(i, v) AloftThreatBar.db.profile.offsets.left = v AloftThreatBar:UpdateAll() end,
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the threat bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftThreatBar.db.profile.offsets.right end,
set = function(i, v) AloftThreatBar.db.profile.offsets.right = v AloftThreatBar:UpdateAll() end,
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the threat bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftThreatBar.db.profile.offsets.vertical end,
set = function(i, v) AloftThreatBar.db.profile.offsets.vertical = v AloftThreatBar:UpdateAll() end,
},
},
},
height =
{
type = 'range',
width = 'full',
name = L["Height"],
desc = L["Sets the height of the threat bar"],
order = 8,
min = 1,
max = 32,
step = 1,
disabled = function(i) return not AloftThreatBar.db.profile.enable or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) end,
get = function(i) return AloftThreatBar.db.profile.height end,
set = function(i, v) AloftThreatBar.db.profile.height = v AloftThreatBar:UpdateAll() end,
},
border = {
type = 'group',
name = L["Border"],
desc = L["Border options"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatBar:IsEnabled() or not AloftThreatBar.db or not AloftThreatBar.db.profile or not AloftThreatBar.db.profile.enable end,
args =
{
targetOnly =
{
type = 'toggle',
width = 'full',
name = L["Target Only"],
desc = L["Enables the border on the current target only"],
order = 1,
get = function(i) return AloftThreatBar.db.profile.targetOnly end,
set = function(i, v) AloftThreatBar.db.profile.targetOnly = v Aloft:DetermineDataSources() AloftThreatBar:UpdateAll() end,
disabled = function(i) return AloftThreatBar.db.profile.border == "None" end,
},
style =
{
type = 'select',
width = 'full',
name = L["Border Style"],
desc = L["Sets the style of the threat bar border"],
order = 2,
get = function(i)
for k, v in pairs(Aloft.Options.args.threatBar.args.border.args.style.values) do
if v == AloftThreatBar.db.profile.border then
return k
end
end
end,
set = function(i, v)
AloftThreatBar.db.profile.border = Aloft.Options.args.threatBar.args.border.args.style.values[v]
AloftThreatBar: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 AloftThreatBar.db.profile.borderEdgeSize end,
set = function(i, v) AloftThreatBar.db.profile.borderEdgeSize = v AloftThreatBar: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 AloftThreatBar.db.profile.borderInset end,
set = function(i, v) AloftThreatBar.db.profile.borderInset = v AloftThreatBar:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Border Color"],
order = 3,
desc = L["Sets the border color of the threat bar"],
get = function(i) return unpack(AloftThreatBar.db.profile.borderColor) end,
set = function(i, r, g, b, a) AloftThreatBar.db.profile.borderColor = { r, g, b, a } AloftThreatBar:UpdateAll() end,
disabled = function(i) return AloftThreatBar.db.profile.border == "None" end,
hasAlpha = true,
},
},
},
colors =
{
type = 'group',
name = L["Colors"],
desc = L["Customize colors"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatBar:IsEnabled() or not AloftThreatBar.db or not AloftThreatBar.db.profile or not AloftThreatBar.db.profile.enable end,
args =
{
backdrop =
{
type = 'color',
width = 'full',
name = L["Backdrop Color"],
desc = L["Sets the backdrop color of the threat bar"],
order = 1,
get = function(i) return unpack(AloftThreatBar.db.profile.backdropColor) end,
set = function(i, r, g, b, a) AloftThreatBar.db.profile.backdropColor = { r, g, b, a } AloftThreatBar:UpdateAll() end,
hasAlpha = true,
},
commonThreat =
{
type = 'color',
width = 'full',
name = L["Common Threat Color"],
desc = L["Sets the threat color for the threat bar when indicating common threat"],
order = 2,
get = function(i) return unpack(AloftThreatBar.db.profile.commonThreatColor) end,
set = function(i, r, g, b, a) AloftThreatBar.db.profile.commonThreatColor = { r, g, b, a } AloftThreatBar:UpdateAll() end,
hasAlpha = true,
},
maximumThreat =
{
type = 'color',
width = 'full',
name = L["Maximum Threat Color"],
order = 3,
desc = L["Sets the threat color for the threat bar when indicating maximum threat"],
get = function(i) return unpack(AloftThreatBar.db.profile.maximumThreatColor) end,
set = function(i, r, g, b, a) AloftThreatBar.db.profile.maximumThreatColor = { r, g, b, a } AloftThreatBar:UpdateAll() end,
hasAlpha = true,
},
reset =
{
type = 'execute',
width = 'full',
name = L["Reset to Defaults"],
desc = L["Resets all colors to their defaults"],
order = -1,
func = function(i)
AloftThreatBar.db.profile.backgroundColor = { 0.25, 0.25, 0.25, 0.5 }
AloftThreatBar.db.profile.commonThreatColor = { 1.0, 1.0, 0.0, 1.0 }
AloftThreatBar.db.profile.maximumThreatColor = { 1.0, 0.0, 0.0, 1.0 }
AloftThreatBar:UpdateAll()
end,
},
}
},
threatGain =
{
type = 'group',
name = L["Threat Gain"],
desc = L["Threat gain threshold indicator for the player's target nameplate"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatBar:IsEnabled() or not AloftThreatBar.db or not AloftThreatBar.db.profile or not AloftThreatBar.db.profile.enable end,
args =
{
gainEnable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show maximum threat threshold on the player's target nameplate"],
order = 1,
get = function(i) return AloftThreatBar.db.profile.gainEnable end,
set = function(i, v) AloftThreatBar.db.profile.gainEnable = v Aloft:DetermineDataSources() AloftThreatBar:UpdateAll() end,
},
threatGainColor =
{
type = 'color',
width = 'full',
name = L["Threat Gain Color"],
desc = L["Sets the color of the maximum threat threshold on the player's target nameplate"],
order = 2,
disabled = function(i) return not AloftThreatBar.db.profile.gainEnable end,
get = function(i) return unpack(AloftThreatBar.db.profile.threatGainColor) end,
set = function(i, r, g, b, a) AloftThreatBar.db.profile.threatGainColor = { r, g, b, a } AloftThreatBar:UpdateAll() end,
hasAlpha = true,
},
reset =
{
type = 'execute',
width = 'full',
name = L["Reset Color to Default"],
desc = L["Resets the maximum threat threshold color to its default"],
order = -1,
func = function(i)
AloftThreatBar.db.profile.threatGainColor = { 1.0, 0.5, 0.0, 1.0 }
AloftThreatBar:UpdateAll()
end,
},
},
},
threatFlash = {
type = 'group',
name = L["Threat Flash"],
desc = L["Health bar will be highlighted when unit has maximum threat"],
order = 13,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatBar:IsEnabled() or not AloftThreatBar.db or not AloftThreatBar.db.profile or not AloftThreatBar.db.profile.enable end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show threat flash"],
order = 1,
get = function(i) return AloftThreatBar.db.profile.flashEnable end,
set = function(i, v) AloftThreatBar.db.profile.flashEnable = v Aloft:DetermineDataSources() AloftThreatBar:UpdateAll() end,
},
invert =
{
type = 'toggle',
width = 'full',
name = L["Invert"],
desc = L["Invert threat flash (enable on targets below the threshold)"],
order = 2,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
get = function(i) return AloftThreatBar.db.profile.flashInvert end,
set = function(i, v) AloftThreatBar.db.profile.flashInvert = v AloftThreatBar:UpdateAll() end,
},
threshold =
{
type = 'range',
width = 'full',
name = L["Threshold"],
desc = L["The percentage of maximum threat at which flash appears"],
order = 2,
min = 0,
max = 100,
step = 1,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
get = function(i) return AloftThreatBar.db.profile.flashThreshold end,
set = function(i, v) AloftThreatBar.db.profile.flashThreshold = v Aloft:DetermineDataSources() AloftThreatBar:UpdateAll() end,
},
style =
{
type = 'select',
width = 'full',
name = L["Style"],
desc = L["Sets the threat flash style"],
order = 3,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
 
get = function(i)
for k, v in pairs(Aloft.Options.args.threatBar.args.threatFlash.args.style.values) do
if v == AloftThreatBar.db.profile.flashStyle then
return k
end
end
end,
set = function(i, v)
AloftThreatBar.db.profile.flashStyle = Aloft.Options.args.threatBar.args.threatFlash.args.style.values[v]
AloftThreatBar.db.profile.flashStyle()
end,
values = SML:List("glow"),
 
--[[
get = function(i) return AloftThreatBar.db.profile.flashStyle end,
set = function(i, v) AloftThreatBar.db.profile.flashStyle = v AloftThreatBar.db.profile.flashStyle() end,
values = {
["HARD"] = L["HARD"],
["SOFT"] = L["SOFT"],
["PRTLSOFT"] = L["PRTLSOFT"],
["THRQTRSOFT"] = L["THRQTRSOFT"],
["EXTRASOFT"] = L["EXTRASOFT"],
["OVAL"] = L["OVAL"],
["OVALGLOW"] = L["OVALGLOW"],
["SQUAREGLOW"] = L["SQUAREGLOW"],
["PRTLSQUAREGLOW"] = L["PRTLSQUAREGLOW"],
["THRQTRSQUAREGLOW"] = L["THRQTRSQUAREGLOW"],
},
]]
},
size =
{
type = 'group',
name = L["Size"],
desc = L["Adjust threat flash size"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatBar:IsEnabled() or not AloftThreatBar.db or not AloftThreatBar.db.profile or not AloftThreatBar.db.profile.enable or not AloftThreatBar.db.profile.flashEnable end,
args =
{
width =
{
type = 'range',
width = 'full',
name = L["Width"],
desc = L["Sets the width of the threat flash"],
order = 1,
min = 32,
max = 768,
step = 1,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
get = function(i) return AloftThreatBar.db.profile.flashWidth end,
set = function(i, v) AloftThreatBar.db.profile.flashWidth = v AloftThreatBar:UpdateAll() end,
},
height =
{
type = 'range',
width = 'full',
name = L["Height"],
desc = L["Sets the height of the threat flash"],
order = 2,
min = 4,
max = 256,
step = 1,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
get = function(i) return AloftThreatBar.db.profile.flashHeight end,
set = function(i, v) AloftThreatBar.db.profile.flashHeight = v AloftThreatBar:UpdateAll() end,
},
}
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust the threat flash position"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatBar:IsEnabled() or not AloftThreatBar.db or not AloftThreatBar.db.profile or not AloftThreatBar.db.profile.enable or not AloftThreatBar.db.profile.flashEnable end,
args =
{
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the threat flash"],
order = 1,
min = -32,
max = 32,
step = 1,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
get = function(i) return AloftThreatBar.db.profile.flashOffsetX end,
set = function(i, v) AloftThreatBar.db.profile.flashOffsetX = v AloftThreatBar:UpdateAll() end,
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the threat flash"],
order = 2,
min = -32,
max = 32,
step = 1,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
get = function(i) return AloftThreatBar.db.profile.flashOffsetY end,
set = function(i, v) AloftThreatBar.db.profile.flashOffsetY = v AloftThreatBar:UpdateAll() end,
},
},
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the threat flash color"],
order = 6,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
get = function(i) return unpack(AloftThreatBar.db.profile.flashColor) end,
set = function(i, r, g, b, a) AloftThreatBar.db.profile.flashColor = { r, g, b, a } AloftThreatBar:UpdateAll() end,
hasAlpha = true,
},
mode =
{
type = 'select',
width = 'full',
name = L["Blend Mode"],
desc = L["Sets the threat flash blend mode"],
order = 7,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
get = function(i) return AloftThreatBar.db.profile.flashBlendMode end,
set = function(i, v) AloftThreatBar.db.profile.flashBlendMode = v AloftThreatBar:UpdateAll() end,
values = { ["BLEND"] = L["BLEND"], ["ADD"] = L["ADD"] },
},
reset =
{
type = 'execute',
width = 'full',
name = L["Reset Color to Default"],
desc = L["Resets the threat flash color to its default"],
order = -1,
disabled = function(i) return not AloftThreatBar.db.profile.flashEnable end,
func = function(i)
AloftThreatBar.db.profile.flashColor = { 1.0, 0.0, 0.0, 1.0 }
AloftThreatBar:UpdateAll()
end,
},
},
},
},
}
 
-----------------------------------------------------------------------------
 
end)
\ No newline at end of file
AloftOptions/AloftThreat/AloftThreatTextOptions.lua New file
0,0 → 1,270
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftThreat", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftThreatTextOptions
if not L then return end
 
local AloftThreatText = Aloft:GetModule("ThreatText", true)
if not AloftThreatText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
local threatTags =
{
NONE = "",
PERCENT = "[ThreatFraction:Percent]",
THREAT = "[Threat]",
THREATANDPERCENT = "[Threat:Short:Suffix(\" (\")][ThreatFraction:Percent:Suffix(\")\")]",
DEFICIT = "[ThreatDeficit:HideZero:Short]",
FULL = "[Threat:Short:Suffix(\"/\")][MaxThreat:Short:Suffix(\" (\")][ThreatFraction:Percent:Suffix(\")\")]",
}
 
-----------------------------------------------------------------------------
 
AloftThreatText.options =
{
type = 'group',
name = L["Threat Text"],
desc = L["Threat text options"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatText:IsEnabled() or not AloftThreatText.db or not AloftThreatText.db.profile end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show threat text on nameplates"],
get = function(i) return AloftThreatText.db.profile.enable end,
set = function(i, v) AloftThreatText.db.profile.enable = v AloftThreatText:UpdateTag() AloftThreatText:UpdateAll() end,
order = 1,
},
activeWhileSolo =
{
type = 'toggle',
width = 'full',
name = L["Active While Solo"],
desc = L["Show threat text on nameplates while solo (for classes with pets and guardians)"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatText:IsEnabled() or not AloftThreatText.db or not AloftThreatText.db.profile or not AloftThreatText.db.profile.enable end,
get = function(i) return AloftThreatText.db.profile.activeWhileSolo end,
set = function(i, v) AloftThreatText.db.profile.activeWhileSolo = v AloftThreatText:UpdateTag() AloftThreatText:UpdateAll() end,
order = 2,
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Threat text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatText:IsEnabled() or not AloftThreatText.db or not AloftThreatText.db.profile or not AloftThreatText.db.profile.enable end,
order = 3,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for threat text"],
get = function(i)
for k, v in pairs(AloftThreatText.options.args.typeface.args.font.values) do
if v == AloftThreatText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftThreatText.db.profile.font = AloftThreatText.options.args.typeface.args.font.values[v]
AloftThreatText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the threat text"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftThreatText.db.profile.fontSize end,
set = function(i, value) AloftThreatText.db.profile.fontSize = value AloftThreatText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on threat text"],
get = function(i) return AloftThreatText.db.profile.shadow end,
set = function(i, v) AloftThreatText.db.profile.shadow = v AloftThreatText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the outline for threat text"],
get = function(i) return AloftThreatText.db.profile.outline end,
set = function(i, value) AloftThreatText.db.profile.outline = value AloftThreatText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
mode =
{
type = 'select',
width = 'full',
name = L["Mode"],
desc = L["Choose what to show for threat text"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatText:IsEnabled() or not AloftThreatText.db or not AloftThreatText.db.profile or not AloftThreatText.db.profile.enable end,
get = function(i) return AloftThreatText.db.profile.mode end,
set = function(i, value) AloftThreatText.db.profile.mode = value AloftThreatText:UpdateTag() AloftThreatText:UpdateAll() end,
values = { PERCENT = L["Percent"], THREAT = L["Threat"], THREATANDPERCENT = L["Threat & Percent"], DEFICIT = L["Deficit"], FULL = L["Full"] },
order = 3,
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust threat text position"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatText:IsEnabled() or not AloftThreatText.db or not AloftThreatText.db.profile or not AloftThreatText.db.profile.enable end,
order = 3,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the threat text"],
get = function(i) return AloftThreatText.db.profile.point end,
set = function(i, v) AloftThreatText.db.profile.point = v AloftThreatText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the threat bar to anchor the threat text"],
get = function(i) return AloftThreatText.db.profile.relativeToPoint end,
set = function(i, v) AloftThreatText.db.profile.relativeToPoint = v AloftThreatText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the threat text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftThreatText.db.profile.offsetX end,
set = function(i, v) AloftThreatText.db.profile.offsetX = v AloftThreatText:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the threat text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftThreatText.db.profile.offsetY end,
set = function(i, v) AloftThreatText.db.profile.offsetY = v AloftThreatText:UpdateAll() end
},
},
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the alpha of the threat text"],
min = 0,
max = 1.0,
step = 0.05,
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatText:IsEnabled() or not AloftThreatText.db or not AloftThreatText.db.profile or not AloftThreatText.db.profile.enable end,
get = function(i) return AloftThreatText.db.profile.alpha end,
set = function(i, v) AloftThreatText.db.profile.alpha = v AloftThreatText:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the threat text color"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatText:IsEnabled() or not AloftThreatText.db or not AloftThreatText.db.profile or not AloftThreatText.db.profile.enable end,
get = function(i) return unpack(AloftThreatText.db.profile.color) end,
set = function(i, r, g, b, a) AloftThreatText.db.profile.color = { r, g, b, a } AloftThreatText:UpdateAll() end,
},
advanced =
{
type = 'group',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ThreatData", true) and Aloft:GetModule("ThreatData"):IsEnabled()) or not AloftThreatText:IsEnabled() or not AloftThreatText.db or not AloftThreatText.db.profile or not AloftThreatText.db.profile.enable end,
args =
{
format =
{
type = 'input',
width = 'full',
name = L["Format"],
desc = L["Threat tag"],
usage = L["<Any tag string>"],
get = function(i) return Aloft:HighlightTagSyntax(AloftThreatText.db.profile.format) end,
set = function(i, v)
AloftThreatText.db.profile.format = Aloft:FixTagCasing(v)
AloftThreatText.textMethodData = nil
AloftThreatText.textMethod = nil
Aloft:DetermineDataSources()
AloftThreatText:UpdateAll()
end,
}
},
},
},
}
 
-- stitch the options in based on what optional dependencies are enabled; the TOC will have guaranteed load order if they are enabled
if (Aloft.Options.args.threatBar and Aloft.Options.args.threatBar.args) then
Aloft.Options.args.threatBar.args.threatText = AloftThreatText.options
else
AloftThreatText.options.order = nil -- reorder to take the place of the bar options (sort alphabetically)
Aloft.Options.args.threatText = AloftThreatText.options
end
 
-----------------------------------------------------------------------------
 
function AloftThreatText:UpdateTag()
local tag = self.db.profile.mode
--if (Aloft:IsLogEnbl("ThreatText", 3)) then Aloft:Log("ThreatText", "UpdateTag", 3, "tag " .. tostring(tag)) end
if not self.db.profile.enable then tag = "NONE" end
self.db.profile.format = threatTags[tag]
 
self.textMethodData = nil
self.textMethod = nil
 
Aloft:DetermineDataSources()
end
 
-----------------------------------------------------------------------------
 
end)
\ No newline at end of file
AloftOptions/AloftThreat/AloftThreatModuleOptions.lua New file
0,0 → 1,24
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftThreat =
{
type = 'toggle',
name = L["AloftThreat"],
desc = L["Display threat data, bars, and text on nameplates"],
get = function(i) return AloftModules.db.profile.AloftThreat end,
set = function(i, v) AloftModules.db.profile.AloftThreat = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftVisibility/AloftVisibilityOptions.lua New file
0,0 → 1,359
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftVisibilityOptions
if not L then return end
 
local oT = AloftLocale.AloftVisibilityTotems
if not oT then return end
 
local AloftVisibility = Aloft:GetModule("Visibility", true)
if not AloftVisibility then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.visibility =
{
type = 'group',
name = L["Visibility"],
desc = L["Extra visibility options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftVisibility:IsEnabled() or not AloftVisibility.db or not AloftVisibility.db.profile end,
args =
{
target =
{
type = 'toggle',
width = 'full',
name = L["Always Show Current Target"],
desc = L["Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("Alpha", true) and Aloft:GetModule("Alpha"):IsEnabled()) or not AloftVisibility:IsEnabled() or not AloftVisibility.db or not AloftVisibility.db.profile or not AloftVisibility.db.profile.useAlpha end,
get = function(i) return AloftVisibility.db.profile.target end,
set = function(i, v) AloftVisibility.db.profile.target = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 1,
},
friendlyPlayers =
{
type = 'select',
width = 'full',
name = L["Friendly Players"],
desc = L["Selects which friendly players to show"],
get = function(i) return AloftVisibility.db.profile.friendlyPlayers end,
set = function(i, v) AloftVisibility.db.profile.friendlyPlayers = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
values = { ["ALL"] = L["All"], ["GUILDONLY"] = L["Guild Only"], ["GROUPONLY"] = L["Group Only"], ["NONE"] = L["None"] },
order = 2,
},
showPet =
{
type = 'toggle',
width = 'full',
name = L["Show Pet"],
desc = L["Shows nameplates for your pets"],
get = function(i) return AloftVisibility.db.profile.showPet end,
set = function(i, v) AloftVisibility.db.profile.showPet = v AloftVisibility:Update() end,
order = 3,
},
showGroupPets =
{
type = 'toggle',
width = 'full',
name = L["Show Group Pets"],
desc = L["Shows nameplates for group pets"],
get = function(i) return AloftVisibility.db.profile.showGroupPets end,
set = function(i, v) AloftVisibility.db.profile.showGroupPets = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 4,
},
showFriendlyPets =
{
type = 'toggle',
width = 'full',
name = L["Show Friendly Pets"],
desc = L["Shows nameplates for friendly pets"],
get = function(i) return AloftVisibility.db.profile.showFriendlyPets end,
set = function(i, v) AloftVisibility.db.profile.showFriendlyPets = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 5,
},
showFriendlyNPCs =
{
type = 'toggle',
width = 'full',
name = L["Show Friendly NPCs"],
desc = L["Show friendly NPCs"],
get = function(i) return AloftVisibility.db.profile.showFriendlyNPCs end,
set = function(i, v) AloftVisibility.db.profile.showFriendlyNPCs= v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 6,
},
showFriendlyTotems =
{
type = 'toggle',
width = 'full',
name = L["Show Friendly Totems/Trap Snakes/Bloodworms"],
desc = L["Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"],
order = 7,
get = function(i) return AloftVisibility.db.profile.showFriendlyTotems end,
set = function(i, v) AloftVisibility.db.profile.showFriendlyTotems = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
},
showHostilePlayers =
{
type = 'toggle',
width = 'full',
name = L["Show Hostile Players"],
desc = L["Shows nameplates for hostile players"],
get = function(i) return AloftVisibility.db.profile.showHostilePlayers end,
set = function(i, v) AloftVisibility.db.profile.showHostilePlayers = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 8,
},
showHostilePets =
{
type = 'toggle',
width = 'full',
name = L["Show Hostile Pets"],
desc = L["Shows nameplates for hostile pets"],
get = function(i) return AloftVisibility.db.profile.showHostilePets end,
set = function(i, v) AloftVisibility.db.profile.showHostilePets = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 9,
},
showHostileNPCs =
{
type = 'toggle',
width = 'full',
name = L["Show Hostile NPCs"],
desc = L["Show hostile NPCs"],
get = function(i) return AloftVisibility.db.profile.showHostileNPCs end,
set = function(i, v) AloftVisibility.db.profile.showHostileNPCs = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 10,
},
showHostileTotems =
{
type = 'group',
name = L["Show Hostile Totems/Trap Snakes/Bloodworms"],
desc = L["Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftVisibility:IsEnabled() or not AloftVisibility.db or not AloftVisibility.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["All"],
name = L["All"],
order = 1,
get = function(i) return AloftVisibility.db.profile.showHostileTotems end,
set = function(i, v) AloftVisibility.db.profile.showHostileTotems = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
},
exceptionHeader =
{
type = "header",
name = L["Exceptions"],
desc = L["Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"],
order = 2,
},
},
-- NOTE: showHostileTotems is fleshed out at the bottom, based on data extracted via GetSpellInfo
},
showNeutralUnits =
{
type = 'toggle',
width = 'full',
name = L["Show Neutral Units"],
desc = L["Show neutral units"],
get = function(i) return AloftVisibility.db.profile.showNeutralUnits end,
set = function(i, v) AloftVisibility.db.profile.showNeutralUnits = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 12,
},
critters =
{
type = 'group',
name = L["Critters"],
desc = L["Visibility options for critters"],
order = 13,
disabled = function(i) return not Aloft:IsEnabled() or not AloftVisibility:IsEnabled() or not AloftVisibility.db or not AloftVisibility.db.profile or not AloftVisibility.db.profile.showNeutralUnits end,
args =
{
showCritters =
{
type = 'toggle',
width = 'full',
name = L["Show Critters"],
desc = L["Shows nameplates for critters"],
get = function(i) return AloftVisibility.db.profile.showCritters end,
set = function(i, v) AloftVisibility.db.profile.showCritters = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = 11
},
critterLevel =
{
type = 'range',
width = 'full',
name = L["Critter Level"],
desc = L["Assume neutral units below this level are 'critters'"],
min = 1,
max = 8,
step = 1,
get = function(i) return AloftVisibility.db.profile.critterLevel end,
set = function(i, v) AloftVisibility.db.profile.critterLevel = v Aloft:DetermineDataSources() AloftVisibility:Update() end
},
critterHealth =
{
type = 'range',
width = 'full',
name = L["Critter Health"],
desc = L["Assume neutral units below this health are 'critters'"],
min = 1,
max = 80,
step = 1,
get = function(i) return AloftVisibility.db.profile.critterHealth end,
set = function(i, v) AloftVisibility.db.profile.critterHealth = v Aloft:DetermineDataSources() AloftVisibility:Update() end
},
},
},
useAlpha =
{
type = 'toggle',
width = 'full',
name = L["Use Nameplate Alpha"],
desc = L["Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("Alpha", true) and Aloft:GetModule("Alpha"):IsEnabled()) or not AloftVisibility:IsEnabled() or not AloftVisibility.db or not AloftVisibility.db.profile end,
get = function(i) return AloftVisibility.db.profile.useAlpha end,
set = function(i, v) AloftVisibility.db.profile.useAlpha = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
order = -1,
},
unitNames =
{
type = 'group',
name = L["Hide Unit Names"],
desc = L["Hide nameplates by unit name"],
order = -3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftVisibility:IsEnabled() or not AloftVisibility.db or not AloftVisibility.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Hide nameplates by unit name"],
order = 1,
get = function(i) return AloftVisibility.db.profile.enableHideUnitNames end,
set = function(i, v)
AloftVisibility.db.profile.enableHideUnitNames = v
Aloft:DetermineDataSources() AloftVisibility:Update()
end,
},
target =
{
type = 'execute',
width = 'full',
name = L["Hide Current Target"],
desc = L["Add current target to list of unit names to hide"],
order = 2,
disabled = function(i) return not AloftVisibility.db.profile.enableHideUnitNames end,
func = function(i)
local name, _ = UnitName("target")
if name then
-- ChatFrame7:AddMessage("AloftVisibility.unitName.target.func(): " .. tostring(name))
AloftVisibility.db.profile.hideUnitNames[name] = name
Aloft:DetermineDataSources()
AloftVisibility:Update()
end
end,
},
input =
{
type = 'input',
width = 'full',
name = L["Hide Unit Name"],
desc = L["Add given name to list of unit names to hide"],
usage = L["Enter any unit name, then enter <return>"],
order = 3,
disabled = function(i) return not AloftVisibility.db.profile.enableHideUnitNames end,
get = function(i) return nil end,
set = function(i, v)
if v then
-- ChatFrame7:AddMessage("AloftVisibility.unitName.input.set(): " .. tostring(v))
AloftVisibility.db.profile.hideUnitNames[v] = v
Aloft:DetermineDataSources()
AloftVisibility:Update()
end
end,
},
delete = {
type = 'select',
width = 'full',
name = L["Delete Unit Name"],
desc = L["Select from list of unit names to delete"],
order = 4,
disabled = function(i) return not AloftVisibility.db.profile.enableHideUnitNames end,
get = function(i) return nil end,
set = function(i, v)
-- ChatFrame7:AddMessage("AloftVisibility.unitName.delete.set(): " .. tostring(v))
AloftVisibility.db.profile.hideUnitNames[v] = nil
Aloft:DetermineDataSources()
AloftVisibility:Update()
end,
values = function(i) return AloftVisibility.db.profile.hideUnitNames end, -- Ace3 apparently does not like empty tables
},
},
},
},
}
 
-- flesh out showHostileTotems, based on data extracted via GetSpellInfo
for name, _ in pairs(Aloft.TotemName) do
local order = 3
 
Aloft.Options.args.visibility.args.showHostileTotems.args[name] =
{
type = 'group',
name = name,
desc = name,
order = order,
inline = true,
args =
{
enable =
{
type = 'toggle',
-- width = 'normal',
name = L["Enable"],
desc = L["Enable"],
order = 2,
disabled = function(i) return AloftVisibility.db.profile.showHostileTotems end,
get = function(i) return AloftVisibility.db.profile.enableHostileTotem[i.arg] end,
set = function(i, v) AloftVisibility.db.profile.enableHostileTotem[i.arg] = v Aloft:DetermineDataSources() AloftVisibility:Update() end,
arg = name,
},
color =
{
type = 'color',
-- width = 'normal',
name = L["Color"],
desc = L["Color"],
order = 3,
disabled = function(i) return not AloftVisibility.db.profile.showHostileTotems and not AloftVisibility.db.profile.enableHostileTotem[i.arg] end,
get = function(i)
-- ChatFrame7:AddMessage("Aloft.Options.args.visibility.args.showHostileTotems.args: " .. tostring(i.arg))
return unpack(AloftVisibility.db.profile.hostileTotemColor[i.arg])
end,
set = function(i, r, g, b, a) AloftVisibility.db.profile.hostileTotemColor[i.arg] = { r, g, b, a } AloftVisibility:Update() end,
hasAlpha = true,
arg = name,
},
},
}
 
order = order + 1
end
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftVisibility/AloftVisibilityLocale.lua New file
0,0 → 1,625
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local oL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] oL["Visibility"] = "Visibility"
--[[ enUS ]] oL["Extra visibility options"] = "Extra visibility options"
 
--[[ enUS ]] oL["Always Show Current Target"] = "Always Show Current Target"
--[[ enUS ]] oL["Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"] = "Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"
 
--[[ enUS ]] oL["Show Hostile Players"] = "Show Hostile Players"
--[[ enUS ]] oL["Shows nameplates for hostile players"] = "Shows nameplates for hostile players"
--[[ enUS ]] oL["Show Hostile Pets"] = "Show Hostile Pets"
--[[ enUS ]] oL["Shows nameplates for hostile pets"] = "Shows nameplates for hostile pets"
--[[ enUS ]] oL["Show Hostile NPCs"] = "Show Hostile NPCs"
--[[ enUS ]] oL["Show hostile NPCs"] = "Show hostile NPCs"
 
--[[ enUS ]] oL["Friendly Players"] = "Friendly Players"
--[[ enUS ]] oL["Selects which friendly players to show"] = "Selects which friendly players to show"
--[[ enUS ]] oL["Show Pet"] = "Show Pet"
--[[ enUS ]] oL["Shows nameplates for your pets"] = "Shows nameplates for your pets"
--[[ enUS ]] oL["Show Group Pets"] = "Show Group Pets"
--[[ enUS ]] oL["Shows nameplates for group pets"] = "Shows nameplates for group pets"
--[[ enUS ]] oL["Show Friendly Pets"] = "Show Friendly Pets"
--[[ enUS ]] oL["Shows nameplates for friendly pets"] = "Shows nameplates for friendly pets"
--[[ enUS ]] oL["Show Friendly NPCs"] = "Show Friendly NPCs"
--[[ enUS ]] oL["Show friendly NPCs"] = "Show friendly NPCs"
 
--[[ enUS ]] oL["Critters"] = "Critters"
--[[ enUS ]] oL["Visibility options for critters"] = "Visibility options for critters"
--[[ enUS ]] oL["Critter Level"] = "Critter Level"
--[[ enUS ]] oL["Assume neutral units below this level are 'critters'"] = "Assume neutral units below this level are 'critters'"
--[[ enUS ]] oL["Critter Health"] = "Critter Health"
--[[ enUS ]] oL["Assume neutral units below this health are 'critters'"] = "Assume neutral units below this health are 'critters'"
--[[ enUS ]] oL["Show Critters"] = "Show Critters"
--[[ enUS ]] oL["Shows nameplates for critters"] = "Shows nameplates for critters"
 
--[[ enUS ]] oL["Show Neutral Units"] = "Show Neutral Units"
--[[ enUS ]] oL["Show neutral units"] = "Show neutral units"
 
--[[ enUS ]] oL["Enable"] = "Enable"
--[[ enUS ]] oL["Exceptions"] = "Exceptions"
--[[ enUS ]] oL["Enable Tremor Totem"] = "Enable Tremor Totem"
--[[ enUS ]] oL["Dedicated Tremor Totem Color"] = "Dedicated Tremor Totem Color"
--[[ enUS ]] oL["Enable Grounding Totem"] = "Enable Grounding Totem"
--[[ enUS ]] oL["Dedicated Grounding Totem Color"] = "Dedicated Grounding Totem Color"
--[[ enUS ]] oL["Enable Earthbind Totem"] = "Enable Earthbind Totem"
--[[ enUS ]] oL["Dedicated Earthbind Totem Color"] = "Dedicated Earthbind Totem Color"
--[[ enUS ]] oL["Enable Cleansing Totem"] = "Enable Cleansing Totem"
--[[ enUS ]] oL["Dedicated Cleansing Totem Color"] = "Dedicated Cleansing Totem Color"
--[[ enUS ]] oL["Enable Mana Tide Totem"] = "Enable Mana Tide Totem"
--[[ enUS ]] oL["Dedicated Mana Tide Totem Color"] = "Dedicated Mana Tide Totem Color"
 
--[[ enUS ]] oL["Show Hostile Totems/Trap Snakes/Bloodworms"] = "Show Hostile Totems/Trap Snakes/Bloodworms"
--[[ enUS ]] oL["Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"
--[[ enUS ]] oL["Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"
--[[ enUS ]] oL["Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"
--[[ enUS ]] oL["Sets the dedicated color for hostile tremor totem nameplates"] = "Sets the dedicated color for hostile tremor totem nameplates"
--[[ enUS ]] oL["Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"
--[[ enUS ]] oL["Sets the dedicated color for hostile grounding totem nameplates"] = "Sets the dedicated color for hostile grounding totem nameplates"
--[[ enUS ]] oL["Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"
--[[ enUS ]] oL["Sets the dedicated color for hostile earthbind totem nameplates"] = "Sets the dedicated color for hostile earthbind totem nameplates"
--[[ enUS ]] oL["Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"
--[[ enUS ]] oL["Sets the dedicated color for hostile cleansing totem nameplates"] = "Sets the dedicated color for hostile cleansing totem nameplates"
--[[ enUS ]] oL["Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"
--[[ enUS ]] oL["Sets the dedicated color for hostile mana tide totem nameplates"] = "Sets the dedicated color for hostile mana tide totem nameplates"
 
--[[ enUS ]] oL["Show Friendly Totems/Trap Snakes/Bloodworms"] = "Show Friendly Totems/Trap Snakes/Bloodworms"
--[[ enUS ]] oL["Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"
--[[ enUS ]] oL["Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"
--[[ enUS ]] oL["Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"
--[[ enUS ]] oL["Sets the dedicated color for friendly tremor totem nameplates"] = "Sets the dedicated color for friendly tremor totem nameplates"
--[[ enUS ]] oL["Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"
--[[ enUS ]] oL["Sets the dedicated color for friendly grounding totem nameplates"] = "Sets the dedicated color for friendly grounding totem nameplates"
--[[ enUS ]] oL["Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"
--[[ enUS ]] oL["Sets the dedicated color for friendly earthbind totem nameplates"] = "Sets the dedicated color for friendly earthbind totem nameplates"
 
--[[ enUS ]] oL["Use Nameplate Alpha"] = "Use Nameplate Alpha"
--[[ enUS ]] oL["Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"] = "Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"
 
--[[ enUS ]] oL["Hide Unit Names"] = "Hide Unit Names"
--[[ enUS ]] oL["Hide nameplates by unit name"] = "Hide nameplates by unit name"
--[[ enUS ]] oL["Hide Unit Name"] = "Hide Unit Name"
--[[ enUS ]] oL["Hide Current Target"] = "Hide Current Target"
--[[ enUS ]] oL["Add current target to list of unit names to hide"] = "Add current target to list of unit names to hide"
--[[ enUS ]] oL["Add given name to list of unit names to hide"] = "Add given name to list of unit names to hide"
--[[ enUS ]] oL["Enter any unit name, then enter <return>"] = "Enter any unit name, then enter <return>"
--[[ enUS ]] oL["Delete Unit Name"] = "Delete Unit Name"
--[[ enUS ]] oL["Select from list of unit names to delete"] = "Select from list of unit names to delete"
--[[ enUS ]] oL["Select a unit name to delete it from the list"] = "Select a unit name to delete it from the list"
 
--[[ enUS ]] oL["Color"] = "Color"
 
--[[ enUS ]] oL["All"] = "All"
--[[ enUS ]] oL["Group Only"] = "Group Only"
--[[ enUS ]] oL["Guild Only"] = "Guild Only"
--[[ enUS ]] oL["None"] = "None"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftVisibility"] = "AloftVisibility"
--[[ enUS ]] mL["Control the visibility of various types of nameplates"] = "Control the visibility of various types of nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "deDE") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
elseif (locale == "frFR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
--[[ frFR ]] oL["Visibility"] = "Visibiliteeeeeeeeeee"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
elseif (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] oL["Visibility"] = "표시"
--[[ koKR ]] oL["Extra visibility options"] = "추가 표시 설정"
 
--[[ koKR ]] oL["Always Show Current Target"] = "Always Show Current Target"
--[[ koKR ]] oL["Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"] = "Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"
 
--[[ koKR ]] oL["Show Hostile Players"] = "적대적 플레이어 표시"
--[[ koKR ]] oL["Shows nameplates for hostile players"] = "적대적 플레이어의 이름표를 표시합니다."
--[[ koKR ]] oL["Show Hostile Pets"] = "적대적 소환수 표시"
--[[ koKR ]] oL["Shows nameplates for hostile pets"] = "적대적 소환수의 이름표를 표시합니다."
--[[ koKR ]] oL["Show Hostile NPCs"] = "적대적 NPC 표시"
--[[ koKR ]] oL["Show hostile NPCs"] = "적대적 NPC를 표시합니다."
 
--[[ koKR ]] oL["Friendly Players"] = "우호적 플레이어"
--[[ koKR ]] oL["Selects which friendly players to show"] = "우호적 플레이어의 표시를 선택합니다."
--[[ koKR ]] oL["Show Pet"] = "소환수 표시"
--[[ koKR ]] oL["Shows nameplates for your pets"] = "소환수의 이름표를 표시합니다."
--[[ koKR ]] oL["Show Group Pets"] = "파티 소환수 표시"
--[[ koKR ]] oL["Shows nameplates for group pets"] = "파티 소환수의 이름표를 표시합니다."
--[[ koKR ]] oL["Show Friendly Pets"] = "우호적 소환수 표시"
--[[ koKR ]] oL["Shows nameplates for friendly pets"] = "우호적 소환수의 이름표를 표시합니다."
--[[ koKR ]] oL["Show Friendly NPCs"] = "우호적 NPC 표시"
--[[ koKR ]] oL["Show friendly NPCs"] = "우호적 NPC를 표시합니다."
 
--[[ koKR ]] oL["Critters"] = "Critters"
--[[ koKR ]] oL["Visibility options for critters"] = "Visibility options for critters"
--[[ koKR ]] oL["Critter Level"] = "Critter Level"
--[[ koKR ]] oL["Assume neutral units below this level are 'critters'"] = "Assume neutral units below this level are 'critters'"
--[[ koKR ]] oL["Critter Health"] = "Critter Health"
--[[ koKR ]] oL["Assume neutral units below this health are 'critters'"] = "Assume neutral units below this health are 'critters'"
--[[ koKR ]] oL["Show Critters"] = "동물 표시"
--[[ koKR ]] oL["Shows nameplates for critters"] = "동물에 대한 이름표를 표시합니다."
 
--[[ koKR ]] oL["Show Neutral Units"] = "중립적 대상 표시"
--[[ koKR ]] oL["Show neutral units"] = "중립적 대상을 표시합니다."
 
--[[ koKR ]] oL["Enable"] = "사용"
--[[ koKR ]] oL["Exceptions"] = "Exceptions"
--[[ koKR ]] oL["Enable Tremor Totem"] = "Enable Tremor Totem"
--[[ koKR ]] oL["Dedicated Tremor Totem Color"] = "Dedicated Tremor Totem Color"
--[[ koKR ]] oL["Enable Grounding Totem"] = "Enable Grounding Totem"
--[[ koKR ]] oL["Dedicated Grounding Totem Color"] = "Dedicated Grounding Totem Color"
--[[ koKR ]] oL["Enable Earthbind Totem"] = "Enable Earthbind Totem"
--[[ koKR ]] oL["Dedicated Earthbind Totem Color"] = "Dedicated Earthbind Totem Color"
--[[ koKR ]] oL["Enable Cleansing Totem"] = "Enable Cleansing Totem"
--[[ koKR ]] oL["Dedicated Cleansing Totem Color"] = "Dedicated Cleansing Totem Color"
--[[ koKR ]] oL["Enable Mana Tide Totem"] = "Enable Mana Tide Totem"
--[[ koKR ]] oL["Dedicated Mana Tide Totem Color"] = "Dedicated Mana Tide Totem Color"
 
--[[ koKR ]] oL["Show Hostile Totems/Trap Snakes/Bloodworms"] = "Show Hostile Totems/Trap Snakes/Bloodworms"
--[[ koKR ]] oL["Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"
--[[ koKR ]] oL["Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"
--[[ koKR ]] oL["Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"
--[[ koKR ]] oL["Sets the dedicated color for hostile tremor totem nameplates"] = "Sets the dedicated color for hostile tremor totem nameplates"
--[[ koKR ]] oL["Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"
--[[ koKR ]] oL["Sets the dedicated color for hostile grounding totem nameplates"] = "Sets the dedicated color for hostile grounding totem nameplates"
--[[ koKR ]] oL["Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"
--[[ koKR ]] oL["Sets the dedicated color for hostile earthbind totem nameplates"] = "Sets the dedicated color for hostile earthbind totem nameplates"
--[[ koKR ]] oL["Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"
--[[ koKR ]] oL["Sets the dedicated color for hostile cleansing totem nameplates"] = "Sets the dedicated color for hostile cleansing totem nameplates"
--[[ koKR ]] oL["Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"
--[[ koKR ]] oL["Sets the dedicated color for hostile mana tide totem nameplates"] = "Sets the dedicated color for hostile mana tide totem nameplates"
 
--[[ koKR ]] oL["Show Friendly Totems/Trap Snakes/Bloodworms"] = "Show Friendly Totems/Trap Snakes/Bloodworms"
--[[ koKR ]] oL["Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"
--[[ koKR ]] oL["Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"
--[[ koKR ]] oL["Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"
--[[ koKR ]] oL["Sets the dedicated color for friendly tremor totem nameplates"] = "Sets the dedicated color for friendly tremor totem nameplates"
--[[ koKR ]] oL["Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"
--[[ koKR ]] oL["Sets the dedicated color for friendly grounding totem nameplates"] = "Sets the dedicated color for friendly grounding totem nameplates"
--[[ koKR ]] oL["Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"
--[[ koKR ]] oL["Sets the dedicated color for friendly earthbind totem nameplates"] = "Sets the dedicated color for friendly earthbind totem nameplates"
 
--[[ koKR ]] oL["Use Nameplate Alpha In Combat"] = "Use Nameplate Alpha In Combat"
--[[ koKR ]] oL["Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"] = "Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"
 
--[[ koKR ]] oL["Hide Unit Names"] = "Hide Unit Names"
--[[ koKR ]] oL["Hide nameplates by unit name"] = "Hide nameplates by unit name"
--[[ koKR ]] oL["Hide Unit Name"] = "Hide Unit Name"
--[[ koKR ]] oL["Hide Current Target"] = "Hide Current Target"
--[[ koKR ]] oL["Add current target to list of unit names to hide"] = "Add current target to list of unit names to hide"
--[[ koKR ]] oL["Add given name to list of unit names to hide"] = "Add given name to list of unit names to hide"
--[[ koKR ]] oL["Enter any unit name, then enter <return>"] = "Enter any unit name, then enter <return>"
--[[ koKR ]] oL["Delete Unit Name"] = "Delete Unit Name"
--[[ koKR ]] oL["Select from list of unit names to delete"] = "Select from list of unit names to delete"
--[[ koKR ]] oL["Select a unit name to delete it from the list"] = "Select a unit name to delete it from the list"
 
--[[ koKR ]] oL["Color"] = "색상"
 
--[[ koKR ]] oL["All"] = "모두"
--[[ koKR ]] oL["Group Only"] = "파티"
--[[ koKR ]] oL["Guild Only"] = "길드"
--[[ koKR ]] oL["None"] = "없음"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftVisibility"] = "AloftVisibility"
--[[ koKR ]] mL["Control the visibility of various types of nameplates"] = "Control the visibility of various types of nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] oL["Visibility"] = "Видимость"
--[[ ruRU ]] oL["Extra visibility options"] = "Настройки дополнительной видимости"
 
--[[ ruRU ]] oL["Always Show Current Target"] = "Always Show Current Target"
--[[ ruRU ]] oL["Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"] = "Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"
 
--[[ ruRU ]] oL["Show Hostile Players"] = "Отображать враждебных игроков"
--[[ ruRU ]] oL["Shows nameplates for hostile players"] = "Отображает таблички для враждебных игроков"
--[[ ruRU ]] oL["Show Hostile Pets"] = "Отображать враждебных питомцев"
--[[ ruRU ]] oL["Shows nameplates for hostile pets"] = "Отображает таблички для враждебных питомцев"
--[[ ruRU ]] oL["Show Hostile NPCs"] = "Отображать враждебных NPC"
--[[ ruRU ]] oL["Show hostile NPCs"] = "Отображать враждебных NPC"
 
--[[ ruRU ]] oL["Friendly Players"] = "Дружественные игроки"
--[[ ruRU ]] oL["Selects which friendly players to show"] = "Выбирает, как отображать дружественных игроков"
--[[ ruRU ]] oL["Show Pet"] = "Отображать питомца"
--[[ ruRU ]] oL["Shows nameplates for your pets"] = "Отображает таблички для питомцев"
--[[ ruRU ]] oL["Show Group Pets"] = "Отображать питомцев группы"
--[[ ruRU ]] oL["Shows nameplates for group pets"] = "Отображает таблички для питомцев группы"
--[[ ruRU ]] oL["Show Friendly Pets"] = "Отображать дружественных питомцев"
--[[ ruRU ]] oL["Shows nameplates for friendly pets"] = "Отображает таблички для дружественных питомцев"
--[[ ruRU ]] oL["Show Friendly NPCs"] = "Отображать дружественных NPC"
--[[ ruRU ]] oL["Show friendly NPCs"] = "Отображать дружественных NPC"
 
--[[ ruRU ]] oL["Critters"] = "Существо"
--[[ ruRU ]] oL["Visibility options for critters"] = "Настройки вида для существ"
--[[ ruRU ]] oL["Critter Level"] = "Уровень существа"
--[[ ruRU ]] oL["Assume neutral units below this level are 'critters'"] = "Нейтральный объект ниже этого уровня предпологаемо будет - 'существо'"
--[[ ruRU ]] oL["Critter Health"] = "Здоровье спутника"
--[[ ruRU ]] oL["Assume neutral units below this health are 'critters'"] = "Нейтральный объект ниже этого уровня здаровья предпологаемо будет 'существо'"
--[[ ruRU ]] oL["Show Critters"] = "Отображать существа"
--[[ ruRU ]] oL["Shows nameplates for critters"] = "Отображает таблички для существ"
 
--[[ ruRU ]] oL["Show Neutral Units"] = "Отображать нейтральных"
--[[ ruRU ]] oL["Show neutral units"] = "Отображать нейтральных"
 
--[[ ruRU ]] oL["Enable"] = "Включить"
--[[ ruRU ]] oL["Exceptions"] = "Исключения"
--[[ ruRU ]] oL["Enable Tremor Totem"] = "Включить Тотем трепета"
--[[ ruRU ]] oL["Dedicated Tremor Totem Color"] = "Цвет выделения Тотема трепета"
--[[ ruRU ]] oL["Enable Grounding Totem"] = "Включить Тотем заземления"
--[[ ruRU ]] oL["Dedicated Grounding Totem Color"] = "Цвет выделения Тотема заземления"
--[[ ruRU ]] oL["Enable Earthbind Totem"] = "Включить Тотем оков земли"
--[[ ruRU ]] oL["Dedicated Earthbind Totem Color"] = "Цвет выделения Тотема оков земли"
--[[ ruRU ]] oL["Enable Cleansing Totem"] = "Enable Cleansing Totem"
--[[ ruRU ]] oL["Dedicated Cleansing Totem Color"] = "Dedicated Cleansing Totem Color"
--[[ ruRU ]] oL["Enable Mana Tide Totem"] = "Enable Mana Tide Totem"
--[[ ruRU ]] oL["Dedicated Mana Tide Totem Color"] = "Dedicated Mana Tide Totem Color"
 
--[[ ruRU ]] oL["Show Hostile Totems/Trap Snakes/Bloodworms"] = "Показывать враждебные тотемы/ловушки/змеи/кровочерви"
--[[ ruRU ]] oL["Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Показывать таблички враждебных тотемов/ловушкек/змеи/кровочервей (влияет на таблички только вне боя)"
--[[ ruRU ]] oL["Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Даже если таблички для враждебных тотемов/ловушкек/змеи/кровочервей скрыты, отображать (с цветовым выделением)"
--[[ ruRU ]] oL["Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"] = "Однозначно показывает таблички враждебного тотема трепета (с цветовым выделением)"
--[[ ruRU ]] oL["Sets the dedicated color for hostile tremor totem nameplates"] = "Установка цвета выделения таблички вреждебного тотема трепета"
--[[ ruRU ]] oL["Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"] = "Однозначно показывает таблички враждебного тотема заземления (с цветовым выделением)"
--[[ ruRU ]] oL["Sets the dedicated color for hostile grounding totem nameplates"] = "становка цвета выделения таблички вреждебного тотема заземления"
--[[ ruRU ]] oL["Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"] = "Однозначно показывает таблички враждебного тотема оков земли (с цветовым выделением)"
--[[ ruRU ]] oL["Sets the dedicated color for hostile earthbind totem nameplates"] = "становка цвета выделения таблички вреждебного тотема оков земли"
--[[ ruRU ]] oL["Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"
--[[ ruRU ]] oL["Sets the dedicated color for hostile cleansing totem nameplates"] = "Sets the dedicated color for hostile cleansing totem nameplates"
--[[ ruRU ]] oL["Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"
--[[ ruRU ]] oL["Sets the dedicated color for hostile mana tide totem nameplates"] = "Sets the dedicated color for hostile mana tide totem nameplates"
 
--[[ ruRU ]] oL["Show Friendly Totems/Trap Snakes/Bloodworms"] = "Показывать дружественные тотемы/ловушки/змеи/кровочерви"
--[[ ruRU ]] oL["Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Показывать таблички дружественных тотемов/ловушкек/змеи/кровочервей (влияет на таблички только вне боя)"
--[[ ruRU ]] oL["Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Даже если таблички для враждебных тотемов/ловушкек/змеи/кровочервей скрыты, отображать (с цветовым выделением)"
--[[ ruRU ]] oL["Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"] = "Однозначно показывает таблички дружественного тотема трепета (с цветовым выделением)"
--[[ ruRU ]] oL["Sets the dedicated color for friendly tremor totem nameplates"] = "Установка цвета выделения таблички дружественного тотема трепета"
--[[ ruRU ]] oL["Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"] = "Однозначно показывает таблички дружественного тотема заземления (с цветовым выделением)"
--[[ ruRU ]] oL["Sets the dedicated color for friendly grounding totem nameplates"] = "Установка цвета выделения таблички дружественного тотема заземления"
--[[ ruRU ]] oL["Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"] = "Однозначно показывает таблички дружественного тотема оков земли (с цветовым выделением)"
--[[ ruRU ]] oL["Sets the dedicated color for friendly earthbind totem nameplates"] = "Установка цвета выделения таблички дружественного eтотема оков земли"
 
--[[ ruRU ]] oL["Use Nameplate Alpha In Combat"] = "Use Nameplate Alpha In Combat"
--[[ ruRU ]] oL["Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"] = "Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"
 
--[[ ruRU ]] oL["Hide Unit Names"] = "Hide Unit Names"
--[[ ruRU ]] oL["Hide nameplates by unit name"] = "Hide nameplates by unit name"
--[[ ruRU ]] oL["Hide Unit Name"] = "Hide Unit Name"
--[[ ruRU ]] oL["Hide Current Target"] = "Hide Current Target"
--[[ ruRU ]] oL["Add current target to list of unit names to hide"] = "Add current target to list of unit names to hide"
--[[ ruRU ]] oL["Add given name to list of unit names to hide"] = "Add given name to list of unit names to hide"
--[[ ruRU ]] oL["Enter any unit name, then enter <return>"] = "Enter any unit name, then enter <return>"
--[[ ruRU ]] oL["Delete Unit Name"] = "Delete Unit Name"
--[[ ruRU ]] oL["Select from list of unit names to delete"] = "Select from list of unit names to delete"
--[[ ruRU ]] oL["Select a unit name to delete it from the list"] = "Select a unit name to delete it from the list"
 
--[[ ruRU ]] iL["Color"] = "Цвет"
 
--[[ ruRU ]] oL["All"] = "Все"
--[[ ruRU ]] oL["Group Only"] = "Только группа"
--[[ ruRU ]] oL["Guild Only"] = "Только гильдия"
--[[ ruRU ]] oL["None"] = "Нет"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftVisibility"] = "AloftVisibility"
--[[ ruRU ]] mL["Control the visibility of various types of nameplates"] = "Различные настройки отображения"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] oL["Visibility"] = "能见度"
--[[ zhCN ]] oL["Extra visibility options"] = "额外能见度相关设置"
 
--[[ zhCN ]] oL["Always Show Current Target"] = "Always Show Current Target"
--[[ zhCN ]] oL["Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"] = "Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"
 
--[[ zhCN ]] oL["Show Hostile Players"] = "显示敌对方玩家"
--[[ zhCN ]] oL["Shows nameplates for hostile players"] = "显示敌对方玩家的姓名板"
--[[ zhCN ]] oL["Show Hostile Pets"] = "显示敌对方宠物"
--[[ zhCN ]] oL["Shows nameplates for hostile pets"] = "显示敌对方宠物的姓名板"
--[[ zhCN ]] oL["Show Hostile NPCs"] = "显示敌对方NPC"
--[[ zhCN ]] oL["Show hostile NPCs"] = "显示敌对方NPC的姓名板"
 
--[[ zhCN ]] oL["Friendly Players"] = "显示友好方玩家"
--[[ zhCN ]] oL["Selects which friendly players to show"] = "选择显示哪些友好方玩家"
--[[ zhCN ]] oL["Show Pet"] = "显示宠物"
--[[ zhCN ]] oL["Shows nameplates for your pets"] = "显示你的宠物的姓名板"
--[[ zhCN ]] oL["Show Group Pets"] = "显示队友宠物"
--[[ zhCN ]] oL["Shows nameplates for group pets"] = "显示队友的宠物的姓名板"
--[[ zhCN ]] oL["Show Friendly Pets"] = "显示友好方宠物"
--[[ zhCN ]] oL["Shows nameplates for friendly pets"] = "显示友好方宠物的姓名板"
--[[ zhCN ]] oL["Show Friendly NPCs"] = "显示友好方NPC"
--[[ zhCN ]] oL["Show friendly NPCs"] = "显示友好方NPC的姓名板"
 
--[[ zhCN ]] oL["Critters"] = "Critters"
--[[ zhCN ]] oL["Visibility options for critters"] = "Visibility options for critters"
--[[ zhCN ]] oL["Critter Level"] = "Critter Level"
--[[ zhCN ]] oL["Assume neutral units below this level are 'critters'"] = "Assume neutral units below this level are 'critters'"
--[[ zhCN ]] oL["Critter Health"] = "Critter Health"
--[[ zhCN ]] oL["Assume neutral units below this health are 'critters'"] = "Assume neutral units below this health are 'critters'"
--[[ zhCN ]] oL["Show Critters"] = "显示小动物"
--[[ zhCN ]] oL["Shows nameplates for critters"] = "显示小动物的姓名板"
 
--[[ zhCN ]] oL["Show Neutral Units"] = "显示中立方单位"
--[[ zhCN ]] oL["Show neutral units"] = "显示中立方单位的姓名板"
 
--[[ zhCN ]] oL["Enable"] = "启用"
--[[ zhCN ]] oL["Exceptions"] = "Exceptions"
--[[ zhCN ]] oL["Enable Tremor Totem"] = "Enable Tremor Totem"
--[[ zhCN ]] oL["Dedicated Tremor Totem Color"] = "Dedicated Tremor Totem Color"
--[[ zhCN ]] oL["Enable Grounding Totem"] = "Enable Grounding Totem"
--[[ zhCN ]] oL["Dedicated Grounding Totem Color"] = "Dedicated Grounding Totem Color"
--[[ zhCN ]] oL["Enable Earthbind Totem"] = "Enable Earthbind Totem"
--[[ zhCN ]] oL["Dedicated Earthbind Totem Color"] = "Dedicated Earthbind Totem Color"
--[[ zhCN ]] oL["Enable Cleansing Totem"] = "Enable Cleansing Totem"
--[[ zhCN ]] oL["Dedicated Cleansing Totem Color"] = "Dedicated Cleansing Totem Color"
--[[ zhCN ]] oL["Enable Mana Tide Totem"] = "Enable Mana Tide Totem"
--[[ zhCN ]] oL["Dedicated Mana Tide Totem Color"] = "Dedicated Mana Tide Totem Color"
 
--[[ zhCN ]] oL["Show Hostile Totems/Trap Snakes/Bloodworms"] = "Show Hostile Totems/Trap Snakes/Bloodworms"
--[[ zhCN ]] oL["Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"
--[[ zhCN ]] oL["Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"
--[[ zhCN ]] oL["Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"
--[[ zhCN ]] oL["Sets the dedicated color for hostile tremor totem nameplates"] = "Sets the dedicated color for hostile tremor totem nameplates"
--[[ zhCN ]] oL["Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"
--[[ zhCN ]] oL["Sets the dedicated color for hostile grounding totem nameplates"] = "Sets the dedicated color for hostile grounding totem nameplates"
--[[ zhCN ]] oL["Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"
--[[ zhCN ]] oL["Sets the dedicated color for hostile earthbind totem nameplates"] = "Sets the dedicated color for hostile earthbind totem nameplates"
--[[ zhCN ]] oL["Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"
--[[ zhCN ]] oL["Sets the dedicated color for hostile cleansing totem nameplates"] = "Sets the dedicated color for hostile cleansing totem nameplates"
--[[ zhCN ]] oL["Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"
--[[ zhCN ]] oL["Sets the dedicated color for hostile mana tide totem nameplates"] = "Sets the dedicated color for hostile mana tide totem nameplates"
 
--[[ zhCN ]] oL["Show Friendly Totems/Trap Snakes/Bloodworms"] = "Show Friendly Totems/Trap Snakes/Bloodworms"
--[[ zhCN ]] oL["Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"
--[[ zhCN ]] oL["Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"
--[[ zhCN ]] oL["Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"
--[[ zhCN ]] oL["Sets the dedicated color for friendly tremor totem nameplates"] = "Sets the dedicated color for friendly tremor totem nameplates"
--[[ zhCN ]] oL["Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"
--[[ zhCN ]] oL["Sets the dedicated color for friendly grounding totem nameplates"] = "Sets the dedicated color for friendly grounding totem nameplates"
--[[ zhCN ]] oL["Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"
--[[ zhCN ]] oL["Sets the dedicated color for friendly earthbind totem nameplates"] = "Sets the dedicated color for friendly earthbind totem nameplates"
 
--[[ zhCN ]] oL["Use Nameplate Alpha In Combat"] = "Use Nameplate Alpha In Combat"
--[[ zhCN ]] oL["Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"] = "Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"
 
--[[ zhCN ]] oL["Hide Unit Names"] = "Hide Unit Names"
--[[ zhCN ]] oL["Hide nameplates by unit name"] = "Hide nameplates by unit name"
--[[ zhCN ]] oL["Hide Unit Name"] = "Hide Unit Name"
--[[ zhCN ]] oL["Hide Current Target"] = "Hide Current Target"
--[[ zhCN ]] oL["Add current target to list of unit names to hide"] = "Add current target to list of unit names to hide"
--[[ zhCN ]] oL["Add given name to list of unit names to hide"] = "Add given name to list of unit names to hide"
--[[ zhCN ]] oL["Enter any unit name, then enter <return>"] = "Enter any unit name, then enter <return>"
--[[ zhCN ]] oL["Delete Unit Name"] = "Delete Unit Name"
--[[ zhCN ]] oL["Select from list of unit names to delete"] = "Select from list of unit names to delete"
--[[ zhCN ]] oL["Select a unit name to delete it from the list"] = "Select a unit name to delete it from the list"
 
--[[ zhCN ]] oL["Color"] = "颜色"
 
--[[ zhCN ]] oL["All"] = "全部"
--[[ zhCN ]] oL["Group Only"] = "仅显示队友"
--[[ zhCN ]] oL["Guild Only"] = "仅显示公会成员"
--[[ zhCN ]] oL["None"] = "无"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftVisibility"] = "可见度"
--[[ zhCN ]] mL["Control the visibility of various types of nameplates"] = "Control the visibility of various types of nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] oL["Visibility"] = "能見度"
--[[ zhTW ]] oL["Extra visibility options"] = "額外能見度選項"
 
--[[ zhTW ]] oL["Always Show Current Target"] = "Always Show Current Target"
--[[ zhTW ]] oL["Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"] = "Always shows the current target nameplate (overrides other visibility options, requires use of alpha)"
 
--[[ zhTW ]] oL["Show Hostile Players"] = "顯示敵對玩家"
--[[ zhTW ]] oL["Shows nameplates for hostile players"] = "顯示敵對玩家的名牌"
--[[ zhTW ]] oL["Show Hostile Pets"] = "顯示敵對寵物"
--[[ zhTW ]] oL["Shows nameplates for hostile pets"] = "顯示敵對寵物的名牌"
--[[ zhTW ]] oL["Show Hostile NPCs"] = "顯示敵對NPC"
--[[ zhTW ]] oL["Show hostile NPCs"] = "顯示敵對NPC的名牌"
 
--[[ zhTW ]] oL["Friendly Players"] = "顯示友好玩家"
--[[ zhTW ]] oL["Selects which friendly players to show"] = "選擇顯示哪一些友好玩家"
--[[ zhTW ]] oL["Show Pet"] = "顯示寵物"
--[[ zhTW ]] oL["Shows nameplates for your pets"] = "顯示你的寵物的名牌"
--[[ zhTW ]] oL["Show Group Pets"] = "顯示團體寵物"
--[[ zhTW ]] oL["Shows nameplates for group pets"] = "顯示團體寵物的名牌"
--[[ zhTW ]] oL["Show Friendly Pets"] = "顯示友好寵物"
--[[ zhTW ]] oL["Shows nameplates for friendly pets"] = "顯示友好寵物的名牌"
--[[ zhTW ]] oL["Show Friendly NPCs"] = "顯示友好NPC"
--[[ zhTW ]] oL["Show friendly NPCs"] = "顯示友好NPC的名牌"
 
--[[ zhTW ]] oL["Critters"] = "Critters"
--[[ zhTW ]] oL["Visibility options for critters"] = "Visibility options for critters"
--[[ zhTW ]] oL["Critter Level"] = "Critter Level"
--[[ zhTW ]] oL["Assume neutral units below this level are 'critters'"] = "Assume neutral units below this level are 'critters'"
--[[ zhTW ]] oL["Critter Health"] = "Critter Health"
--[[ zhTW ]] oL["Assume neutral units below this health are 'critters'"] = "Assume neutral units below this health are 'critters'"
--[[ zhTW ]] oL["Show Critters"] = "顯示小動物"
--[[ zhTW ]] oL["Shows nameplates for critters"] = "顯示小動物的名牌"
 
--[[ zhTW ]] oL["Show Neutral Units"] = "顯示中立單位"
--[[ zhTW ]] oL["Show neutral units"] = "顯示中立單位的名牌"
 
--[[ zhTW ]] oL["Enable"] = "啟用"
--[[ zhTW ]] oL["Exceptions"] = "Exceptions"
--[[ zhTW ]] oL["Enable Tremor Totem"] = "Enable Tremor Totem"
--[[ zhTW ]] oL["Dedicated Tremor Totem Color"] = "Dedicated Tremor Totem Color"
--[[ zhTW ]] oL["Enable Grounding Totem"] = "Enable Grounding Totem"
--[[ zhTW ]] oL["Dedicated Grounding Totem Color"] = "Dedicated Grounding Totem Color"
--[[ zhTW ]] oL["Enable Earthbind Totem"] = "Enable Earthbind Totem"
--[[ zhTW ]] oL["Dedicated Earthbind Totem Color"] = "Dedicated Earthbind Totem Color"
--[[ zhTW ]] oL["Enable Cleansing Totem"] = "Enable Cleansing Totem"
--[[ zhTW ]] oL["Dedicated Cleansing Totem Color"] = "Dedicated Cleansing Totem Color"
--[[ zhTW ]] oL["Enable Mana Tide Totem"] = "Enable Mana Tide Totem"
--[[ zhTW ]] oL["Dedicated Mana Tide Totem Color"] = "Dedicated Mana Tide Totem Color"
 
--[[ zhTW ]] oL["Show Hostile Totems/Trap Snakes/Bloodworms"] = "Show Hostile Totems/Trap Snakes/Bloodworms"
--[[ zhTW ]] oL["Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Shows nameplates for hostile totems/trap snakes/bloodworms (only affects nameplates while out of combat)"
--[[ zhTW ]] oL["Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Even if nameplates for hostile totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"
--[[ zhTW ]] oL["Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile tremor totems (with a dedicated color)"
--[[ zhTW ]] oL["Sets the dedicated color for hostile tremor totem nameplates"] = "Sets the dedicated color for hostile tremor totem nameplates"
--[[ zhTW ]] oL["Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile grounding totems (with a dedicated color)"
--[[ zhTW ]] oL["Sets the dedicated color for hostile grounding totem nameplates"] = "Sets the dedicated color for hostile grounding totem nameplates"
--[[ zhTW ]] oL["Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile earthbind totems (with a dedicated color)"
--[[ zhTW ]] oL["Sets the dedicated color for hostile earthbind totem nameplates"] = "Sets the dedicated color for hostile earthbind totem nameplates"
--[[ zhTW ]] oL["Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile cleansing totems (with a dedicated color)"
--[[ zhTW ]] oL["Sets the dedicated color for hostile cleansing totem nameplates"] = "Sets the dedicated color for hostile cleansing totem nameplates"
--[[ zhTW ]] oL["Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"] = "Explicitly shows nameplates for hostile mana tide totems (with a dedicated color)"
--[[ zhTW ]] oL["Sets the dedicated color for hostile mana tide totem nameplates"] = "Sets the dedicated color for hostile mana tide totem nameplates"
 
--[[ zhTW ]] oL["Show Friendly Totems/Trap Snakes/Bloodworms"] = "Show Friendly Totems/Trap Snakes/Bloodworms"
--[[ zhTW ]] oL["Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"] = "Shows nameplates for friendly totems/trap snakes/bloodworms (only affects nameplates while out of combat)"
--[[ zhTW ]] oL["Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"] = "Even if nameplates for friendly totems/trap snakes/bloodworms are hidden, display these (with a dedicated color)"
--[[ zhTW ]] oL["Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly tremor totems (with a dedicated color)"
--[[ zhTW ]] oL["Sets the dedicated color for friendly tremor totem nameplates"] = "Sets the dedicated color for friendly tremor totem nameplates"
--[[ zhTW ]] oL["Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly grounding totems (with a dedicated color)"
--[[ zhTW ]] oL["Sets the dedicated color for friendly grounding totem nameplates"] = "Sets the dedicated color for friendly grounding totem nameplates"
--[[ zhTW ]] oL["Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"] = "Explicitly shows nameplates for friendly earthbind totems (with a dedicated color)"
--[[ zhTW ]] oL["Sets the dedicated color for friendly earthbind totem nameplates"] = "Sets the dedicated color for friendly earthbind totem nameplates"
 
--[[ zhTW ]] oL["Use Nameplate Alpha In Combat"] = "Use Nameplate Alpha In Combat"
--[[ zhTW ]] oL["Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"] = "Controls nameplate visibility in combat or when target nameplate is always shown by setting nameplate alpha to 0 (requires AloftAlpha module to be enabled at UI load)"
 
--[[ zhTW ]] oL["Hide Unit Names"] = "Hide Unit Names"
--[[ zhTW ]] oL["Hide nameplates by unit name"] = "Hide nameplates by unit name"
--[[ zhTW ]] oL["Hide Unit Name"] = "Hide Unit Name"
--[[ zhTW ]] oL["Hide Current Target"] = "Hide Current Target"
--[[ zhTW ]] oL["Add current target to list of unit names to hide"] = "Add current target to list of unit names to hide"
--[[ zhTW ]] oL["Add given name to list of unit names to hide"] = "Add given name to list of unit names to hide"
--[[ zhTW ]] oL["Enter any unit name, then enter <return>"] = "Enter any unit name, then enter <return>"
--[[ zhTW ]] oL["Delete Unit Name"] = "Delete Unit Name"
--[[ zhTW ]] oL["Select from list of unit names to delete"] = "Select from list of unit names to delete"
--[[ zhTW ]] oL["Select a unit name to delete it from the list"] = "Select a unit name to delete it from the list"
 
--[[ zhTW ]] oL["Color"] = "顏色"
 
--[[ zhTW ]] oL["All"] = "全部"
--[[ zhTW ]] oL["Group Only"] = "唯有團體"
--[[ zhTW ]] oL["Guild Only"] = "唯有公會"
--[[ zhTW ]] oL["None"] = "無"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftVisibility"] = "可見度"
--[[ zhTW ]] mL["Control the visibility of various types of nameplates"] = "Control the visibility of various types of nameplates"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftVisibility", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftVisibilityOptions = setmetatable(oL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
oL = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftVisibility/AloftVisibilityModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftVisibility =
{
type = 'toggle',
width = 'full',
name = L["AloftVisibility"],
desc = L["Control the visibility of various types of nameplates"],
get = function(i) return AloftModules.db.profile.AloftVisibility end,
set = function(i, v) AloftModules.db.profile.AloftVisibility = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftStateIcon/AloftStateIconOptions.lua New file
0,0 → 1,143
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftStateIcon
if not L then return end
 
local AloftStateIcon = Aloft:GetModule("StateIcon", true)
if not AloftStateIcon then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.stateIcon =
{
type = 'group',
name = L["State Icon"],
desc = L["State icon placement options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftStateIcon:IsEnabled() or not AloftStateIcon.db or not AloftStateIcon.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enable state icon display on the nameplate"],
order = 1,
get = function(i) return AloftStateIcon.db.profile.enable end,
set = function(i, v) AloftStateIcon.db.profile.enable = v AloftStateIcon:UpdateAll() end,
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the state icon alpha"],
order = 2,
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftStateIcon.db.profile.enable end,
get = function(i) return AloftStateIcon.db.profile.alpha end,
set = function(i, v) AloftStateIcon.db.profile.alpha = v AloftStateIcon:UpdateAll() end
},
reverse =
{
type = 'toggle',
width = 'full',
name = L["Reverse"],
desc = L["Reverse the state icon graphic horizontally"],
order = 3,
disabled = function(i) return not AloftStateIcon.db.profile.enable end,
get = function(i) return AloftStateIcon.db.profile.reverse end,
set = function(i, v) AloftStateIcon.db.profile.reverse = v AloftStateIcon:UpdateAll() end
},
height =
{
type = 'range',
width = 'full',
name = L["Height"],
desc = L["Height in pixels of the state icon"],
order = 4,
min = 4,
max = 64,
step = 1,
disabled = function(i) return not AloftStateIcon.db.profile.enable end,
get = function(i) return AloftStateIcon.db.profile.height end,
set = function(i, v) AloftStateIcon.db.profile.height = v AloftStateIcon:UpdateAll() end
},
width =
{
type = 'range',
width = 'full',
name = L["Width"],
desc = L["Width in pixels of the state icon"],
order = 5,
min = 4,
max = 72,
step = 1,
disabled = function(i) return not AloftStateIcon.db.profile.enable end,
get = function(i) return AloftStateIcon.db.profile.width end,
set = function(i, v) AloftStateIcon.db.profile.width = v AloftStateIcon:UpdateAll() end
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust state icon position"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftStateIcon:IsEnabled() or not AloftStateIcon.db or not AloftStateIcon.db.profile or not AloftStateIcon.db.profile.enable end,
args =
{
anchor = {
type = "select",
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the state icon"],
get = function(i) return AloftStateIcon.db.profile.point end,
set = function(i, v) AloftStateIcon.db.profile.point = v AloftStateIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = "select",
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the state icon"],
get = function(i) return AloftStateIcon.db.profile.relativeToPoint end,
set = function(i, v) AloftStateIcon.db.profile.relativeToPoint = v AloftStateIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the state icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftStateIcon.db.profile.offsetX end,
set = function(i, v) AloftStateIcon.db.profile.offsetX = v AloftStateIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the state icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftStateIcon.db.profile.offsetY end,
set = function(i, v) AloftStateIcon.db.profile.offsetY = v AloftStateIcon:UpdateAll() end
},
},
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftStateIcon/AloftStateIconLocale.lua New file
0,0 → 1,210
local Aloft = Aloft
if not Aloft then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] L["State Icon"] = "State Icon"
--[[ enUS ]] L["State icon placement options"] = "State icon placement options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Enable state icon display on the nameplate"] = "Enable state icon display on the nameplate"
--[[ enUS ]] L["Reverse"] = "Reverse"
--[[ enUS ]] L["Reverse the state icon graphic horizontally"] = "Reverse the state icon graphic horizontally"
--[[ enUS ]] L["Height"] = "Height"
--[[ enUS ]] L["Height in pixels of the state icon"] = "Height in pixels of the state icon"
--[[ enUS ]] L["Width"] = "Width"
--[[ enUS ]] L["Width in pixels of the state icon"] = "Width in pixels of the state icon"
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust state icon position"] = "Adjust state icon position"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the state icon"] = "X offset of the state icon"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the state icon"] = "Y offset of the state icon"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the state icon"] = "Sets the anchor for the state icon"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the state icon"] = "Sets the relative point on the health bar to anchor the state icon"
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Sets the state icon alpha"] = "Sets the state icon alpha"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["State Icon"] = "보스 아이콘"
--[[ koKR ]] L["State icon placement options"] = "보스 아이콘 배치 설정"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Enable state icon display on the nameplate"] = "Enable state icon display on the nameplate"
--[[ koKR ]] L["Reverse"] = "Reverse"
--[[ koKR ]] L["Reverse the state icon graphic horizontally"] = "Reverse the state icon graphic horizontally"
--[[ koKR ]] L["Height"] = "크기"
--[[ koKR ]] L["Height in pixels of the state icon"] = "Height in pixels of the state icon"
--[[ koKR ]] L["Width"] = "크기"
--[[ koKR ]] L["Width in pixels of the state icon"] = "Width in pixels of the state icon"
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust state icon position"] = "Adjust state icon position"
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the state icon"] = "X offset of the state icon"
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the state icon"] = "Y offset of the state icon"
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the state icon"] = "Sets the anchor for the state icon"
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the state icon"] = "Sets the relative point on the health bar to anchor the state icon"
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Sets the state icon alpha"] = "Sets the state icon alpha"
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["State Icon"] = "Иконка состояния"
--[[ ruRU ]] L["State icon placement options"] = "Настрокий положения иконки состояния"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Enable state icon display on the nameplate"] = "Включает отображение иконки состояния"
--[[ ruRU ]] L["Reverse"] = "Перевернуть"
--[[ ruRU ]] L["Reverse the state icon graphic horizontally"] = "Переварачивает иконку состояния по горизонтале"
--[[ ruRU ]] L["Height"] = "Высота"
--[[ ruRU ]] L["Height in pixels of the state icon"] = "Высота иконки состояния в пикселях"
--[[ ruRU ]] L["Width"] = "Ширина"
--[[ ruRU ]] L["Width in pixels of the state icon"] = "Ширина иконки состояния в пикселях"
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust state icon position"] = "Задать место иконки состояния"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the state icon"] = "Смещение значка состояния по Y"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the state icon"] = "Смещение значка состояния по Y"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the state icon"] = "Задает прикрепление значка состояния"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the state icon"] = "Задает точку для положения значка состояния относительно полоски здоровья"
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Sets the state icon alpha"] = "Задает прозрачность значка состояния"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["State Icon"] = "首领图标"
--[[ zhCN ]] L["State icon placement options"] = "首领图标位置相关设置"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Enable state icon display on the nameplate"] = "Enable state icon display on the nameplate"
--[[ zhCN ]] L["Reverse"] = "Reverse"
--[[ zhCN ]] L["Reverse the state icon graphic horizontally"] = "Reverse the state icon graphic horizontally"
--[[ zhCN ]] L["Height"] = "尺寸"
--[[ zhCN ]] L["Height in pixels of the state icon"] = "Height in pixels of the state icon"
--[[ zhCN ]] L["Width"] = "尺寸"
--[[ zhCN ]] L["Width in pixels of the state icon"] = "Width in pixels of the state icon"
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust state icon position"] = "Adjust state icon position"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the state icon"] = "X offset of the state icon"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the state icon"] = "Y offset of the state icon"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the state icon"] = "Sets the anchor for the state icon"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the state icon"] = "Sets the relative point on the health bar to anchor the state icon"
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Sets the state icon alpha"] = "Sets the state icon alpha"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["State Icon"] = "首領圖示"
--[[ zhTW ]] L["State icon placement options"] = "State icon placement options"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Enable state icon display on the nameplate"] = "Enable state icon display on the nameplate"
--[[ zhTW ]] L["Reverse"] = "Reverse"
--[[ zhTW ]] L["Reverse the state icon graphic horizontally"] = "Reverse the state icon graphic horizontally"
--[[ zhTW ]] L["Height"] = "大小"
--[[ zhTW ]] L["Height in pixels of the state icon"] = "Height in pixels of the state icon"
--[[ zhTW ]] L["Width"] = "大小"
--[[ zhTW ]] L["Width in pixels of the state icon"] = "Width in pixels of the state icon"
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust state icon position"] = "Adjust state icon position"
--[[ zhTW ]] L["X Offset"] = "X位移"
--[[ zhTW ]] L["X offset of the state icon"] = "X offset of the state icon"
--[[ zhTW ]] L["Y Offset"] = "Y位移"
--[[ zhTW ]] L["Y offset of the state icon"] = "Y offset of the state icon"
--[[ zhTW ]] L["Anchor"] = "定位點"
--[[ zhTW ]] L["Sets the anchor for the state icon"] = "Sets the anchor for the state icon"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the state icon"] = "Sets the relative point on the health bar to anchor the state icon"
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the state icon alpha"] = "Sets the state icon alpha"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftStateIcon = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
AloftOptions/AloftFrame/AloftFrameOptions.lua New file
0,0 → 1,489
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftFrame
if not L then return end
 
local AloftFrame = Aloft:GetModule("Frame")
if not AloftFrame then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.frame =
{
type = 'group',
name = L["Frame"],
desc = L["Frame options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftFrame:IsEnabled() or not AloftFrame.db or not AloftFrame.db.profile end,
args =
{
enableMouse =
{
type = 'toggle',
width = "full",
name = L["Enable Mouse"],
desc = L["Allows left click to target and right click to interact"],
order = 1,
get = function(i) return AloftFrame.db.profile.enableMouse end,
set = function(i, v) AloftFrame.db.profile.enableMouse = v AloftFrame:UpdateAll() end,
},
height =
{
type = 'range',
width = "full",
name = L["Height"],
desc = L["Sets the height of the frame"],
order = 2,
min = 1,
max = 128,
step = 1,
get = function(i) return AloftFrame.db.profile.height end,
set = function(i, v)
if AloftFrame.db.profile.height ~= v then
AloftFrame.db.profile.height = v
--AloftFrame.db.profile.packingHeight = v
AloftFrame:UpdateAll()
end
end,
},
width =
{
type = 'range',
width = "full",
name = L["Width"],
desc = L["Sets the width of the frame"],
order = 3,
min = 40,
max = 256,
step = 1,
get = function(i) return AloftFrame.db.profile.width end,
set = function(i, v)
if AloftFrame.db.profile.width ~= v then
AloftFrame.db.profile.width = v
--AloftFrame.db.profile.packingWidth = v
AloftFrame:UpdateAll()
end
end,
},
packingHeight =
{
type = 'range',
width = "full",
name = L["Packing Height"],
desc = L["Sets the minimum vertical distance between frames"],
order = 4,
min = -10,
max = 160,
step = 1,
get = function(i) return AloftFrame.db.profile.packingHeight end,
set = function(i, v) AloftFrame.db.profile.packingHeight = v AloftFrame:UpdateAll() end,
},
packingWidth =
{
type = 'range',
width = "full",
name = L["Packing Width"],
desc = L["Sets the minimum horizontal distance between frames"],
order = 5,
min = -10,
max = 100,
step = 1,
get = function(i) return AloftFrame.db.profile.packingWidth end,
set = function(i, v) AloftFrame.db.profile.packingWidth = v AloftFrame:UpdateAll() end,
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust layout base and background position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftFrame:IsEnabled() or not AloftFrame.db or not AloftFrame.db.profile end,
order = 6,
args =
{
offsetX =
{
type = 'range',
width = "full",
name = L["X Offset"],
desc = L["X offset of the layout base and background"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftFrame.db.profile.offsetX end,
set = function(i, v) AloftFrame.db.profile.offsetX = v AloftFrame:UpdateAll() end
},
offsetY =
{
type = 'range',
width = "full",
name = L["Y Offset"],
desc = L["Y offset of the layout base and background"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftFrame.db.profile.offsetY end,
set = function(i, v) AloftFrame.db.profile.offsetY = v AloftFrame:UpdateAll() end
},
},
},
border = {
type = 'group',
name = L["Border"],
desc = L["Border options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftFrame:IsEnabled() or not AloftFrame.db or not AloftFrame.db.profile end,
order = 7,
args =
{
targetOnly =
{
type = 'toggle',
width = "full",
name = L["Target Only"],
desc = L["Enables the border on the current target only"],
order = 1,
get = function(i) return AloftFrame.db.profile.targetOnly end,
set = function(i, v) AloftFrame.db.profile.targetOnly = v Aloft:DetermineDataSources() AloftFrame:UpdateAll() end,
disabled = function(i) return AloftFrame.db.profile.border == "None" end,
},
style =
{
type = 'select',
width = "full",
name = L["Border Style"],
desc = L["Sets the style of the nameplate border"],
order = 2,
get = function(i)
for k, v in pairs(Aloft.Options.args.frame.args.border.args.style.values) do
if v == AloftFrame.db.profile.border then
return k
end
end
end,
set = function(i, v)
AloftFrame.db.profile.border = Aloft.Options.args.frame.args.border.args.style.values[v]
AloftFrame: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 AloftFrame.db.profile.borderEdgeSize end,
set = function(i, v) AloftFrame.db.profile.borderEdgeSize = v AloftFrame: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 AloftFrame.db.profile.borderInset end,
set = function(i, v) AloftFrame.db.profile.borderInset = v AloftFrame:UpdateAll() end
},
color =
{
type = 'color',
width = "full",
name = L["Border Color"],
desc = L["Sets the border color of the nameplate"],
order = 3,
get = function(i) return unpack(AloftFrame.db.profile.borderColor) end,
set = function(i, r, g, b, a) AloftFrame.db.profile.borderColor = { r, g, b, a } AloftFrame:UpdateAll() end,
disabled = function(i) return AloftFrame.db.profile.border == "None" end,
hasAlpha = true,
},
},
},
background = {
type = 'group',
name = L["Background"],
desc = L["Background options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftFrame:IsEnabled() or not AloftFrame.db or not AloftFrame.db.profile end,
order = 8,
args =
{
alpha =
{
type = 'range',
width = "full",
name = L["Background Alpha"],
desc = L["Sets the alpha for the background of the nameplates"],
min = 0,
max = 1,
step = 0.01,
get = function(i) return AloftFrame.db.profile.backgroundAlpha end,
set = function(i, v)
local oldShow = (AloftFrame.db.profile.backgroundAlpha ~= 0)
AloftFrame.db.profile.backgroundAlpha = v
local newShow = (v ~= 0)
if oldShow ~= newShow then
Aloft:DetermineDataSources()
end
AloftFrame:UpdateAll()
end,
},
style =
{
type = 'select',
width = "full",
name = L["Background Style"],
desc = L["Sets the style of the nameplate background"],
get = function(i)
for k, v in pairs(Aloft.Options.args.frame.args.background.args.style.values) do
if v == AloftFrame.db.profile.background then
return k
end
end
end,
set = function(i, v)
AloftFrame.db.profile.background = Aloft.Options.args.frame.args.background.args.style.values[v]
AloftFrame:UpdateAll()
end,
values = SML:List("background"),
},
colors =
{
type = 'group',
name = L["Background Colors"],
desc = L["Customize colors"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftFrame:IsEnabled() or not AloftFrame.db or not AloftFrame.db.profile end,
args =
{
colorByClass =
{
type = 'toggle',
width = "full",
name = L["Color by Class"],
desc = L["Sets the background color according to class"],
get = function(i) return AloftFrame.db.profile.colorByClass end,
set = function(i, v) AloftFrame.db.profile.colorByClass = v Aloft:DetermineDataSources() AloftFrame:UpdateAll() end,
order = 1
},
colorHostileByClass =
{
type = 'toggle',
width = "full",
name = L["Color Hostile by Class"],
desc = L["Sets the background color of hostile players according to class"],
get = function(i) return AloftFrame.db.profile.colorHostileByClass end,
set = function(i, v) AloftFrame.db.profile.colorHostileByClass = v Aloft:DetermineDataSources() AloftFrame:UpdateAll() end,
order = 2
},
setAll =
{
type = 'color',
width = "full",
name = L["Set All"],
desc = L["Sets the background color for all types"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.friendlyPlayer) end,
set = function(i, r, g, b)
AloftFrame.db.profile.backgroundColors.friendlyPlayer = { r, g, b }
AloftFrame.db.profile.backgroundColors.friendlyPet = { r, g, b }
AloftFrame.db.profile.backgroundColors.friendlyNPC = { r, g, b }
AloftFrame.db.profile.backgroundColors.friendlyBoss = { r, g, b }
AloftFrame.db.profile.backgroundColors.hostilePlayer = { r, g, b }
AloftFrame.db.profile.backgroundColors.hostilePet = { r, g, b }
AloftFrame.db.profile.backgroundColors.hostileNPC = { r, g, b }
AloftFrame.db.profile.backgroundColors.hostileBoss = { r, g, b }
AloftFrame.db.profile.backgroundColors.neutral = { r, g, b }
AloftFrame.db.profile.backgroundColors.pet = { r, g, b }
AloftFrame.db.profile.backgroundColors.groupPet = { r, g, b }
AloftFrame.db.profile.backgroundColors.unknown = { r, g, b }
Aloft:DetermineDataSources()
AloftFrame:UpdateAll() end,
order = 3
},
setAllFriendly =
{
type = 'color',
width = "full",
name = L["Set All Friendly"],
desc = L["Sets the background color for all friendly types"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.friendlyPlayer) end,
set = function(i, r, g, b)
AloftFrame.db.profile.backgroundColors.friendlyPlayer = { r, g, b }
AloftFrame.db.profile.backgroundColors.friendlyPet = { r, g, b }
AloftFrame.db.profile.backgroundColors.friendlyNPC = { r, g, b }
AloftFrame.db.profile.backgroundColors.friendlyBoss = { r, g, b }
AloftFrame.db.profile.backgroundColors.pet = { r, g, b }
AloftFrame.db.profile.backgroundColors.groupPet = { r, g, b }
Aloft:DetermineDataSources()
AloftFrame:UpdateAll() end,
order = 4
},
setAllHostile =
{
type = 'color',
width = "full",
name = L["Set All Hostile"],
desc = L["Sets the background color for all hostile types"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.hostileNPC) end,
set = function(i, r, g, b)
AloftFrame.db.profile.backgroundColors.hostilePlayer = { r, g, b }
AloftFrame.db.profile.backgroundColors.hostilePet = { r, g, b }
AloftFrame.db.profile.backgroundColors.hostileNPC = { r, g, b }
AloftFrame.db.profile.backgroundColors.hostileBoss = { r, g, b }
Aloft:DetermineDataSources()
AloftFrame:UpdateAll() end,
order = 5
},
friendlyPlayer =
{
type = 'color',
width = "full",
name = L["Friendly Players"],
desc = L["Sets the background color for friendly players"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.friendlyPlayer) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.friendlyPlayer = { r, g, b } AloftFrame:UpdateAll() end
},
friendlyPet =
{
type = 'color',
width = "full",
name = L["Friendly Pets"],
desc = L["Sets the background color for friendly pets"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.friendlyPet) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.friendlyPet = { r, g, b } Aloft:DetermineDataSources() AloftFrame:UpdateAll() end
},
friendlyNPC =
{
type = 'color',
width = "full",
name = L["Friendly NPCs"],
desc = L["Sets the background color for friendly NPCs"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.friendlyNPC) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.friendlyNPC = { r, g, b } Aloft:DetermineDataSources() AloftFrame:UpdateAll() end
},
friendlyBoss =
{
type = 'color',
width = "full",
name = L["Friendly Boss"],
desc = L["Sets the background color for friendly NPC Bosses"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.friendlyBoss) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.friendlyBoss = { r, g, b } AloftFrame:UpdateAll() end
},
hostilePlayer =
{
type = 'color',
width = "full",
name = L["Hostile Players"],
desc = L["Sets the background color for hostile players"],
disabled = function(i) return AloftFrame.db.profile.colorHostileByClass end,
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.hostilePlayer) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.hostilePlayer = { r, g, b } Aloft:DetermineDataSources() AloftFrame:UpdateAll() end
},
hostilePet =
{
type = 'color',
width = "full",
name = L["Hostile Pets"],
desc = L["Sets the background color for hostile pets"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.hostilePet) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.hostilePet = { r, g, b } Aloft:DetermineDataSources() AloftFrame:UpdateAll() end
},
hostileNPC =
{
type = 'color',
width = "full",
name = L["Hostile NPCs"],
desc = L["Sets the background color for hostile units"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.hostileNPC) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.hostileNPC = { r, g, b } Aloft:DetermineDataSources() AloftFrame:UpdateAll() end
},
hostileBoss =
{
type = 'color',
width = "full",
name = L["Hostile Boss"],
desc = L["Sets the background color for hostile boss units"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.hostileBoss) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.hostileBoss = { r, g, b } AloftFrame:UpdateAll() end
},
neutral =
{
type = 'color',
width = "full",
name = L["Neutral Units"],
desc = L["Sets the background color for neutral units"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.neutral) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.neutral = { r, g, b } AloftFrame:UpdateAll() end
},
pet =
{
type = 'color',
width = "full",
name = L["Pet"],
desc = L["Sets the background color for your pet"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.pet) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.pet = { r, g, b } AloftFrame:UpdateAll() end
},
groupPet =
{
type = 'color',
width = "full",
name = L["Group Pets"],
desc = L["Sets the background color for group pets"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.groupPet) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.groupPet = { r, g, b } Aloft:DetermineDataSources() AloftFrame:UpdateAll() end
},
unknown =
{
type = 'color',
name = L["Unknown"],
desc = L["Sets the background color for unknown units"],
get = function(i) return unpack(AloftFrame.db.profile.backgroundColors.unknown) end,
set = function(i, r, g, b) AloftFrame.db.profile.backgroundColors.unknown = { r, g, b } Aloft:DetermineDataSources() AloftFrame:UpdateAll() end
},
advanced =
{
type = 'group',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
args =
{
format =
{
type = 'input',
width = "full",
name = L["Color Format"],
desc = L["Color tag"],
usage = L["<Any tag string>"],
get = function(i) return Aloft:HighlightTagSyntax(AloftFrame.db.profile.colorFormat) end,
set = function(i, v)
AloftFrame.db.profile.colorFormat = Aloft:FixTagCasing(v)
AloftFrame.colorMethodData = nil
AloftFrame.colorMethod = nil
Aloft:DetermineDataSources()
AloftFrame:UpdateAll()
end,
disabled = function(i) return not Aloft:IsEnabled() or not AloftFrame:IsEnabled() or not AloftFrame.db or not AloftFrame.db.profile end,
}
},
},
}
},
},
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftFrame/AloftFrameLocale.lua New file
0,0 → 1,504
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Enable Mouse"] = "Enable Mouse"
--[[ enUS ]] L["Allows left click to target and right click to interact"] = "Allows left click to target and right click to interact"
 
--[[ enUS ]] L["Frame"] = "Frame"
--[[ enUS ]] L["Frame options"] = "Frame options"
--[[ enUS ]] L["Width"] = "Width"
--[[ enUS ]] L["Sets the width of the frame"] = "Sets the width of the frame"
--[[ enUS ]] L["Height"] = "Height"
--[[ enUS ]] L["Sets the height of the frame"] = "Sets the height of the frame"
 
--[[ enUS ]] L["Packing Width"] = "Packing Width"
--[[ enUS ]] L["Sets the minimum horizontal distance between frames"] = "Sets the minimum horizontal distance between frames"
--[[ enUS ]] L["Packing Height"] = "Packing Height"
--[[ enUS ]] L["Sets the minimum vertical distance between frames"] = "Sets the minimum vertical distance between frames"
 
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust layout base and background position"] = "Adjust layout base and background position"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the layout base and background"] = "X offset of the layout base and background"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the layout base and background"] = "Y offset of the layout base and background"
 
--[[ enUS ]] L["Background"] = "Background"
--[[ enUS ]] L["Background options"] = "Background options"
--[[ enUS ]] L["Background Alpha"] = "Background Alpha"
--[[ enUS ]] L["Sets the alpha for the background of the nameplates"] = "Sets the alpha for the background of the nameplates"
--[[ enUS ]] L["Background Colors"] = "Background Colors"
--[[ enUS ]] L["Customize colors"] = "Customize colors"
 
--[[ enUS ]] L["Color by Class"] = "Color by Class"
--[[ enUS ]] L["Sets the background color according to class"] = "Sets the background color according to class"
--[[ enUS ]] L["Color Hostile by Class"] = "Color Hostile by Class"
--[[ enUS ]] L["Sets the background color of hostile players according to class"] = "Sets the background color of hostile players according to class"
--[[ enUS ]] L["Set All"] = "Set All"
--[[ enUS ]] L["Sets the background color for all types"] = "Sets the background color for all types"
 
--[[ enUS ]] L["Set All Friendly"] = "Set All Friendly"
--[[ enUS ]] L["Sets the background color for all friendly types"] = "Sets the background color for all friendly types"
--[[ enUS ]] L["Set All Hostile"] = "Set All Hostile"
--[[ enUS ]] L["Sets the background color for all hostile types"] = "Sets the background color for all hostile types"
--[[ enUS ]] L["Unknown"] = "Unknown"
--[[ enUS ]] L["Sets the background color for unknown units"] = "Sets the background color for unknown units"
 
--[[ enUS ]] L["Pet"] = "Pet"
--[[ enUS ]] L["Sets the background color for your pet"] = "Sets the background color for your pet"
--[[ enUS ]] L["Friendly Players"] = "Friendly Players"
--[[ enUS ]] L["Sets the background color for friendly players"] = "Sets the background color for friendly players"
--[[ enUS ]] L["Friendly Pets"] = "Friendly Pets"
--[[ enUS ]] L["Sets the background color for friendly pets"] = "Sets the background color for friendly pets"
--[[ enUS ]] L["Friendly NPCs"] = "Friendly NPCs"
--[[ enUS ]] L["Sets the background color for friendly NPC Bosses"] = "Sets the background color for friendly NPC Bosses"
--[[ enUS ]] L["Friendly Boss"] = "Friendly Boss"
--[[ enUS ]] L["Sets the background color for friendly NPCs"] = "Sets the background color for friendly NPCs"
--[[ enUS ]] L["Hostile Players"] = "Hostile Players"
--[[ enUS ]] L["Sets the background color for hostile players"] = "Sets the background color for hostile players"
--[[ enUS ]] L["Hostile Pets"] = "Hostile Pets"
--[[ enUS ]] L["Sets the background color for hostile pets"] = "Sets the background color for hostile pets"
--[[ enUS ]] L["Hostile NPCs"] = "Hostile NPCs"
--[[ enUS ]] L["Sets the background color for hostile units"] = "Sets the background color for hostile units"
--[[ enUS ]] L["Hostile Boss"] = "Hostile Boss"
--[[ enUS ]] L["Sets the background color for hostile boss units"] = "Sets the background color for hostile boss units"
--[[ enUS ]] L["Neutral Units"] = "Neutral Units"
--[[ enUS ]] L["Sets the background color for neutral units"] = "Sets the background color for neutral units"
--[[ enUS ]] L["Group Pets"] = "Group Pets"
--[[ enUS ]] L["Sets the background color for group pets"] = "Sets the background color for group pets"
 
--[[ enUS ]] L["Advanced"] = "Advanced"
--[[ enUS ]] L["Options for expert users"] = "Options for expert users"
--[[ enUS ]] L["Color Format"] = "Color Format"
--[[ enUS ]] L["Color tag"] = "Color tag"
--[[ enUS ]] L["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] L["Border"] = "Border"
--[[ enUS ]] L["Border options"] = "Border options"
--[[ enUS ]] L["Target Only"] = "Target Only"
--[[ enUS ]] L["Enables the border on the current target only"] = "Enables the border on the current target only"
--[[ enUS ]] L["Border Edge Size"] = "Border Edge Size"
--[[ enUS ]] L["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ enUS ]] L["Border Inset"] = "Border Inset"
--[[ enUS ]] L["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ enUS ]] L["Border Color"] = "Border Color"
--[[ enUS ]] L["Sets the border color of the nameplate"] = "Sets the border color of the nameplate"
--[[ enUS ]] L["Border Style"] = "Border Style"
--[[ enUS ]] L["Sets the style of the nameplate border"] = "Sets the style of the nameplate border"
--[[ enUS ]] L["Background Style"] = "Background Style"
--[[ enUS ]] L["Sets the style of the nameplate background"] = "Sets the style of the nameplate background"
 
--[[ enUS ]] L["NONE"] = "None"
--[[ enUS ]] L["STANDARD"] = "Standard"
--[[ enUS ]] L["SQUARE"] = "Square"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Enable Mouse"] = "마우스 사용"
--[[ koKR ]] L["Allows left click to target and right click to interact"] = "행동을 위한 우클릭과 대상에 좌클릭을 허용합니다."
 
--[[ koKR ]] L["Frame"] = "프레임"
--[[ koKR ]] L["Frame options"] = "프레임 설정입니다."
--[[ koKR ]] L["Width"] = "너비"
--[[ koKR ]] L["Sets the width of the frame"] = "프레임의 너비를 설정합니다."
--[[ koKR ]] L["Height"] = "높이"
--[[ koKR ]] L["Sets the height of the frame"] = "프레임의 높이를 설정합니다."
 
--[[ koKR ]] L["Packing Width"] = "패킹 넓이"
--[[ koKR ]] L["Sets the minimum horizontal distance between frames"] = "프레임 사이의 최소 수평 거리를 설정합니다."
--[[ koKR ]] L["Packing Height"] = "패킹 높이"
--[[ koKR ]] L["Sets the minimum vertical distance between frames"] = "프레임 사이의 최소 수직 거리를 설정합니다."
 
--[[ koKR ]] L["Position"] = "Position"
--[[ koKR ]] L["Adjust layout base and background position"] = "Adjust layout base and background position"
--[[ koKR ]] L["X Offset"] = "X Offset"
--[[ koKR ]] L["X offset of the layout base and background"] = "X offset of the layout base and background"
--[[ koKR ]] L["Y Offset"] = "Y Offset"
--[[ koKR ]] L["Y offset of the layout base and background"] = "Y offset of the layout base and background"
 
--[[ koKR ]] L["Background"] = "Background"
--[[ koKR ]] L["Background options"] = "Background options"
--[[ koKR ]] L["Background Alpha"] = "배경 투명도"
--[[ koKR ]] L["Sets the alpha for the background of the nameplates"] = "이름표의 배경에 대한 투명도를 설정합니다."
--[[ koKR ]] L["Background Colors"] = "배경 색상"
--[[ koKR ]] L["Customize colors"] = "사용자 색상"
 
--[[ koKR ]] L["Color by Class"] = "직업별 색상"
--[[ koKR ]] L["Sets the background color according to class"] = "직업별 색상을 배경 색상으로 설정합니다."
--[[ koKR ]] L["Color Hostile by Class"] = "적대적 직업별 색상"
--[[ koKR ]] L["Sets the background color of hostile players according to class"] = "직업별 색상을 적대적 플레이어의 배경 색상으로 설정합니다."
--[[ koKR ]] L["Set All"] = "전체 설정"
--[[ koKR ]] L["Sets the background color for all types"] = "전체의 배경 색상을 설정합니다."
 
--[[ koKR ]] L["Set All Friendly"] = "전체 우호적 설정"
--[[ koKR ]] L["Sets the background color for all friendly types"] = "전체 우호적 대상에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Set All Hostile"] = "전체 적대적 설정"
--[[ koKR ]] L["Sets the background color for all hostile types"] = "전체 적대적 대상에 대한 배경 색상을 설정합니다."
 
--[[ koKR ]] L["Pet"] = "소환수"
--[[ koKR ]] L["Sets the background color for your pet"] = "소환수에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Friendly Players"] = "우호적 플레이어"
--[[ koKR ]] L["Sets the background color for friendly players"] = "우호적 플레이어에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Friendly Pets"] = "우호적 소환수"
--[[ koKR ]] L["Sets the background color for friendly pets"] = "우호적 소환수에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Friendly NPCs"] = "우호적 NPC"
--[[ koKR ]] L["Sets the background color for friendly NPC Bosses"] = "우호적 NPC 보스에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Friendly Boss"] = "우호적 보스"
--[[ koKR ]] L["Sets the background color for friendly NPCs"] = "우호적 NPC에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Hostile Players"] = "적대적 플레이어"
--[[ koKR ]] L["Sets the background color for hostile players"] = "적대적 플레이어에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Hostile Pets"] = "적대적 소환수"
--[[ koKR ]] L["Sets the background color for hostile pets"] = "적대적 소환수에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Hostile NPCs"] = "적대적 NPC"
--[[ koKR ]] L["Sets the background color for hostile units"] = "적대적 대상에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Hostile Boss"] = "적대적 보스"
--[[ koKR ]] L["Sets the background color for hostile boss units"] = "적대적 보스에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Neutral Units"] = "중립적 대상"
--[[ koKR ]] L["Sets the background color for neutral units"] = "중립적 대상에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Group Pets"] = "파티 소환수"
--[[ koKR ]] L["Sets the background color for group pets"] = "파티 소환수에 대한 배경 색상을 설정합니다."
--[[ koKR ]] L["Unknown"] = "Unknown"
--[[ koKR ]] L["Sets the background color for unknown units"] = "Sets the background color for unknown units"
 
--[[ koKR ]] L["Advanced"] = "고급"
--[[ koKR ]] L["Options for expert users"] = "고급 사용자를 위한 설정입니다."
--[[ koKR ]] L["Color Format"] = "색상 형식"
--[[ koKR ]] L["Color tag"] = "색상 태그"
--[[ koKR ]] L["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] L["Border"] = "Border"
--[[ koKR ]] L["Border options"] = "Border options"
--[[ koKR ]] L["Target Only"] = "Target Only"
--[[ koKR ]] L["Enables the border on the current target only"] = "Enables the border on the current target only"
--[[ koKR ]] L["Border Edge Size"] = "Border Edge Size"
--[[ koKR ]] L["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ koKR ]] L["Border Inset"] = "Border Inset"
--[[ koKR ]] L["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ koKR ]] L["Border Color"] = "테두리 색상"
--[[ koKR ]] L["Sets the border color of the nameplate"] = "이름표의 테두리 색상을 설정합니다."
--[[ koKR ]] L["Border Style"] = "테두리 스타일"
--[[ koKR ]] L["Sets the style of the nameplate border"] = "이름표 테두리의 스타일을 설정합니다."
--[[ koKR ]] L["Background Style"] = "배경 유형"
--[[ koKR ]] L["Sets the style of the nameplate background"] = "이름표 배경의 유형을 설정합니다."
 
--[[ koKR ]] L["NONE"] = "없음"
--[[ koKR ]] L["STANDARD"] = "기본형"
--[[ koKR ]] L["SQUARE"] = "사각형"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Enable Mouse"] = "Включить мышь"
--[[ ruRU ]] L["Allows left click to target and right click to interact"] = "Позволяет кликом левой кнопки выделять и кликом правой кнопки взаимодействовать"
 
--[[ ruRU ]] L["Frame"] = "Фрейм"
--[[ ruRU ]] L["Frame options"] = "Настройки фрейма"
--[[ ruRU ]] L["Width"] = "Ширина"
--[[ ruRU ]] L["Sets the width of the frame"] = "Задает ширину фрейма"
--[[ ruRU ]] L["Height"] = "Высота"
--[[ ruRU ]] L["Sets the height of the frame"] = "Задает высоту фрейма"
 
--[[ ruRU ]] L["Packing Width"] = "Ширина размещения"
--[[ ruRU ]] L["Sets the minimum horizontal distance between frames"] = "Задает минимальное расстояние между двумя фреймами по горизонтали"
--[[ ruRU ]] L["Packing Height"] = "Высота размещения"
--[[ ruRU ]] L["Sets the minimum vertical distance between frames"] = "Задает минимальное расстояние между двумя фреймами по вертикали"
 
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust layout base and background position"] = "Регулировка расположения основного слоя и фона"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the layout base and background"] = "Смещение основного слоя и фона по Х"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the layout base and background"] = "Смещение основного слоя и фона по Y"
 
--[[ ruRU ]] L["Background"] = "Фон"
--[[ ruRU ]] L["Background options"] = "Опции фона"
--[[ ruRU ]] L["Background Alpha"] = "Прозрачность фона"
--[[ ruRU ]] L["Sets the alpha for the background of the nameplates"] = "Задает прозрачность фона табличек"
--[[ ruRU ]] L["Background Colors"] = "Цвета фона"
--[[ ruRU ]] L["Customize colors"] = "Настройка цветов"
 
--[[ ruRU ]] L["Color by Class"] = "Окрашивать в цвет класса"
--[[ ruRU ]] L["Sets the background color according to class"] = "Задает цвет фона в зависимости от класса"
--[[ ruRU ]] L["Color Hostile by Class"] = "Окрашивать враждебных в цвет класса"
--[[ ruRU ]] L["Sets the background color of hostile players according to class"] = "Задает цвет фона в зависимости от класса враждебного игрока"
--[[ ruRU ]] L["Set All"] = "Задать все"
--[[ ruRU ]] L["Sets the background color for all types"] = "Задает цвет фона для всех"
 
--[[ ruRU ]] L["Set All Friendly"] = "Задать всех дружественными"
--[[ ruRU ]] L["Sets the background color for all friendly types"] = "Задает цвет фона для всех дружелюбных"
--[[ ruRU ]] L["Set All Hostile"] = "Задать всех враждебными"
--[[ ruRU ]] L["Sets the background color for all hostile types"] = "Задает цвет фона для всех враждебных"
 
--[[ ruRU ]] L["Pet"] = "Питомец"
--[[ ruRU ]] L["Sets the background color for your pet"] = "Задает цвет фона для вашего питомца"
--[[ ruRU ]] L["Friendly Players"] = "Дружественные игроки"
--[[ ruRU ]] L["Sets the background color for friendly players"] = "Задает цвет фона для дружественных игроков"
--[[ ruRU ]] L["Friendly Pets"] = "Дружественные питомцы"
--[[ ruRU ]] L["Sets the background color for friendly pets"] = "Задает цвет фона для дружественных питомцев"
--[[ ruRU ]] L["Friendly NPCs"] = "Дружественные NPC"
--[[ ruRU ]] L["Sets the background color for friendly NPC Bosses"] = "Задает цвет фона для дружественных НИПов боссов"
--[[ ruRU ]] L["Friendly Boss"] = "Дружественный босс"
--[[ ruRU ]] L["Sets the background color for friendly NPCs"] = "Задает цвет фона для дружественных НИПов"
--[[ ruRU ]] L["Hostile Players"] = "Враждебные игроки"
--[[ ruRU ]] L["Sets the background color for hostile players"] = "Задает цвет фона для враждебных игроков"
--[[ ruRU ]] L["Hostile Pets"] = "Враждебные питомцы"
--[[ ruRU ]] L["Sets the background color for hostile pets"] = "Задает цвет фона для враждебных питомцев"
--[[ ruRU ]] L["Hostile NPCs"] = "Враждебные NPC"
--[[ ruRU ]] L["Sets the background color for hostile units"] = "Задает цвет фона для враждебных"
--[[ ruRU ]] L["Hostile Boss"] = "Враждебный босс"
--[[ ruRU ]] L["Sets the background color for hostile boss units"] = "Задает цвет фона для враждебных боссов"
--[[ ruRU ]] L["Neutral Units"] = "Нейтриальные цели"
--[[ ruRU ]] L["Sets the background color for neutral units"] = "Задает цвет фона для нейтральных"
--[[ ruRU ]] L["Group Pets"] = "Питомцы группы"
--[[ ruRU ]] L["Sets the background color for group pets"] = "Задает цвет фона для питомцев группы"
--[[ ruRU ]] L["Unknown"] = "Unknown"
--[[ ruRU ]] L["Sets the background color for unknown units"] = "Sets the background color for unknown units"
 
--[[ ruRU ]] L["Advanced"] = "Дополнительно"
--[[ ruRU ]] L["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] L["Color Format"] = "Формат цвета"
--[[ ruRU ]] L["Color tag"] = "Формат цвета"
--[[ ruRU ]] L["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] L["Border"] = "Края"
--[[ ruRU ]] L["Border options"] = "Настройки краев"
--[[ ruRU ]] L["Target Only"] = "Только цель"
--[[ ruRU ]] L["Enables the border on the current target only"] = "Включить края только для текущей цели"
--[[ ruRU ]] L["Border Edge Size"] = "Border Edge Size"
--[[ ruRU ]] L["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ ruRU ]] L["Border Inset"] = "Border Inset"
--[[ ruRU ]] L["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ ruRU ]] L["Border Color"] = "Цвет рамки"
--[[ ruRU ]] L["Sets the border color of the nameplate"] = "Задает цвет рамки таблички"
--[[ ruRU ]] L["Border Style"] = "Стиль рамки"
--[[ ruRU ]] L["Sets the style of the nameplate border"] = "Задает стиль для рамки таблички"
--[[ ruRU ]] L["Background Style"] = "Стиль фона"
--[[ ruRU ]] L["Sets the style of the nameplate background"] = "Задает стиль для фона таблички"
 
--[[ ruRU ]] L["NONE"] = "Нету"
--[[ ruRU ]] L["STANDARD"] = "Стандарт"
--[[ ruRU ]] L["SQUARE"] = "Квадрат"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Enable Mouse"] = "启用鼠标"
--[[ zhCN ]] L["Allows left click to target and right click to interact"] = "设定左键点击为选择目标,右键点击则为弹出选单"
 
--[[ zhCN ]] L["Frame"] = "框架"
--[[ zhCN ]] L["Frame options"] = "框架相关设置"
--[[ zhCN ]] L["Width"] = "宽度"
--[[ zhCN ]] L["Sets the width of the frame"] = "设定框架的宽度"
--[[ zhCN ]] L["Height"] = "高度"
--[[ zhCN ]] L["Sets the height of the frame"] = "设定框架的高度"
 
--[[ zhCN ]] L["Packing Width"] = "间隔宽度"
--[[ zhCN ]] L["Sets the minimum horizontal distance between frames"] = "设定框架之间的最小水平间隔"
--[[ zhCN ]] L["Packing Height"] = "间隔高度"
--[[ zhCN ]] L["Sets the minimum vertical distance between frames"] = "设定框架之间的最小垂直间隔"
 
--[[ zhCN ]] L["Position"] = "Position"
--[[ zhCN ]] L["Adjust layout base and background position"] = "Adjust layout base and background position"
--[[ zhCN ]] L["X Offset"] = "X Offset"
--[[ zhCN ]] L["X offset of the layout base and background"] = "X offset of the layout base and background"
--[[ zhCN ]] L["Y Offset"] = "Y Offset"
--[[ zhCN ]] L["Y offset of the layout base and background"] = "Y offset of the layout base and background"
 
--[[ zhCN ]] L["Background"] = "Background"
--[[ zhCN ]] L["Background options"] = "Background options"
--[[ zhCN ]] L["Background Alpha"] = "背景透明度"
--[[ zhCN ]] L["Sets the alpha for the background of the nameplates"] = "设定姓名板的背景透明度"
--[[ zhCN ]] L["Background Colors"] = "背景颜色"
--[[ zhCN ]] L["Customize colors"] = "自定义颜色"
 
--[[ zhCN ]] L["Color by Class"] = "根据职业显示颜色"
--[[ zhCN ]] L["Sets the background color according to class"] = "背景颜色使用职业代表色"
--[[ zhCN ]] L["Color Hostile by Class"] = "敌对方单位根据职业显示颜色"
--[[ zhCN ]] L["Sets the background color of hostile players according to class"] = "敌对方玩家的背景颜色使用职业代表色"
--[[ zhCN ]] L["Set All"] = "设定全部"
--[[ zhCN ]] L["Sets the background color for all types"] = "设定所有单位的背景颜色"
 
--[[ zhCN ]] L["Set All Friendly"] = "设定全部友好方单位"
--[[ zhCN ]] L["Sets the background color for all friendly types"] = "设定全部友好方单位的背景颜色"
--[[ zhCN ]] L["Set All Hostile"] = "设定全部敌对方单位"
--[[ zhCN ]] L["Sets the background color for all hostile types"] = "设定全部敌对方单位的背景颜色"
 
--[[ zhCN ]] L["Pet"] = "宠物"
--[[ zhCN ]] L["Sets the background color for your pet"] = "设定你的宠物的背景颜色"
--[[ zhCN ]] L["Friendly Players"] = "友好方玩家"
--[[ zhCN ]] L["Sets the background color for friendly players"] = "设定友好方玩家的背景颜色"
--[[ zhCN ]] L["Friendly Pets"] = "友好方宠物"
--[[ zhCN ]] L["Sets the background color for friendly pets"] = "设定友好方宠物的背景颜色"
--[[ zhCN ]] L["Friendly NPCs"] = "友好方NPC"
--[[ zhCN ]] L["Sets the background color for friendly NPC Bosses"] = "设定友好方首领的背景颜色"
--[[ zhCN ]] L["Friendly Boss"] = "友好方首领"
--[[ zhCN ]] L["Sets the background color for friendly NPCs"] = "设定友好NPC的背景颜色"
--[[ zhCN ]] L["Hostile Players"] = "敌对方玩家"
--[[ zhCN ]] L["Sets the background color for hostile players"] = "设定敌对方玩家的背景颜色"
--[[ zhCN ]] L["Hostile Pets"] = "敌对方宠物"
--[[ zhCN ]] L["Sets the background color for hostile pets"] = "设定敌对方宠物的背景颜色"
--[[ zhCN ]] L["Hostile NPCs"] = "敌对方NPC"
--[[ zhCN ]] L["Sets the background color for hostile units"] = "设定敌对方NPC的背景颜色"
--[[ zhCN ]] L["Hostile Boss"] = "敌对方首领"
--[[ zhCN ]] L["Sets the background color for hostile boss units"] = "设定敌对方首领的背景颜色"
--[[ zhCN ]] L["Neutral Units"] = "中立方单位"
--[[ zhCN ]] L["Sets the background color for neutral units"] = "设定中立方单位的背景颜色"
--[[ zhCN ]] L["Group Pets"] = "队友宠物"
--[[ zhCN ]] L["Sets the background color for group pets"] = "设定队友宠物的背景颜色"
--[[ zhCN ]] L["Unknown"] = "Unknown"
--[[ zhCN ]] L["Sets the background color for unknown units"] = "Sets the background color for unknown units"
 
--[[ zhCN ]] L["Advanced"] = "高级"
--[[ zhCN ]] L["Options for expert users"] = "高级设置"
--[[ zhCN ]] L["Color Format"] = "颜色格式"
--[[ zhCN ]] L["Color tag"] = "颜色标签"
--[[ zhCN ]] L["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] L["Border"] = "Border"
--[[ zhCN ]] L["Border options"] = "Border options"
--[[ zhCN ]] L["Target Only"] = "Target Only"
--[[ zhCN ]] L["Enables the border on the current target only"] = "Enables the border on the current target only"
--[[ zhCN ]] L["Border Edge Size"] = "Border Edge Size"
--[[ zhCN ]] L["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ zhCN ]] L["Border Inset"] = "Border Inset"
--[[ zhCN ]] L["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ zhCN ]] L["Border Color"] = "边框颜色"
--[[ zhCN ]] L["Sets the border color of the nameplate"] = "姓名板边框颜色"
--[[ zhCN ]] L["Border Style"] = "边框样式"
--[[ zhCN ]] L["Sets the style of the nameplate border"] = "设定姓名板边框样式"
--[[ zhCN ]] L["Background Style"] = "背景样式"
--[[ zhCN ]] L["Sets the style of the nameplate background"] = "设定姓名牌背景样式"
 
--[[ zhCN ]] L["NONE"] = "无"
--[[ zhCN ]] L["STANDARD"] = "标准"
--[[ zhCN ]] L["SQUARE"] = "正方形"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Enable Mouse"] = "啟用滑鼠"
--[[ zhTW ]] L["Allows left click to target and right click to interact"] = "允許左擊選擇目標,右擊彈出選單"
 
--[[ zhTW ]] L["Frame"] = "框架"
--[[ zhTW ]] L["Frame options"] = "框架選項"
--[[ zhTW ]] L["Width"] = "寬度"
--[[ zhTW ]] L["Sets the width of the frame"] = "框架寬度"
--[[ zhTW ]] L["Height"] = "高度"
--[[ zhTW ]] L["Sets the height of the frame"] = "框架高度"
 
--[[ zhTW ]] L["Packing Width"] = "間隔寬度"
--[[ zhTW ]] L["Sets the minimum horizontal distance between frames"] = "框架最小水平間隔"
--[[ zhTW ]] L["Packing Height"] = "間隔高度"
--[[ zhTW ]] L["Sets the minimum vertical distance between frames"] = "框架最小垂直間隔"
 
--[[ zhTW ]] L["Position"] = "Position"
--[[ zhTW ]] L["Adjust layout base and background position"] = "Adjust layout base and background position"
--[[ zhTW ]] L["X Offset"] = "X Offset"
--[[ zhTW ]] L["X offset of the layout base and background"] = "X offset of the layout base and background"
--[[ zhTW ]] L["Y Offset"] = "Y Offset"
--[[ zhTW ]] L["Y offset of the layout base and background"] = "Y offset of the layout base and background"
 
--[[ zhTW ]] L["Background"] = "Background"
--[[ zhTW ]] L["Background options"] = "Background options"
--[[ zhTW ]] L["Background Alpha"] = "背景透明度"
--[[ zhTW ]] L["Sets the alpha for the background of the nameplates"] = "名牌背景透明度"
--[[ zhTW ]] L["Background Colors"] = "背景顏色"
--[[ zhTW ]] L["Customize colors"] = "自定顏色"
 
--[[ zhTW ]] L["Color by Class"] = "根據職業上色"
--[[ zhTW ]] L["Sets the background color according to class"] = "背景顏色使用職業顏色"
--[[ zhTW ]] L["Color Hostile by Class"] = "敵對單位根據職業上色"
--[[ zhTW ]] L["Sets the background color of hostile players according to class"] = "敵對玩家的背景顏色使用職業顏色"
--[[ zhTW ]] L["Set All"] = "設定全部"
--[[ zhTW ]] L["Sets the background color for all types"] = "設定全部單位的背景顏色"
 
--[[ zhTW ]] L["Set All Friendly"] = "設定全部友好"
--[[ zhTW ]] L["Sets the background color for all friendly types"] = "設定全部友好單位的背景顏色"
--[[ zhTW ]] L["Set All Hostile"] = "設定全部敵對"
--[[ zhTW ]] L["Sets the background color for all hostile types"] = "設定全部敵對單位的背景顏色"
 
--[[ zhTW ]] L["Pet"] = "寵物"
--[[ zhTW ]] L["Sets the background color for your pet"] = "寵物的背景顏色"
--[[ zhTW ]] L["Friendly Players"] = "友好玩家"
--[[ zhTW ]] L["Sets the background color for friendly players"] = "友好玩家的背景顏色"
--[[ zhTW ]] L["Friendly Pets"] = "友好寵物"
--[[ zhTW ]] L["Sets the background color for friendly pets"] = "友好寵物的背景顏色"
--[[ zhTW ]] L["Friendly NPCs"] = "友好NPC"
--[[ zhTW ]] L["Sets the background color for friendly NPC Bosses"] = "友好NPC的背景顏色"
--[[ zhTW ]] L["Friendly Boss"] = "友好首領"
--[[ zhTW ]] L["Sets the background color for friendly NPCs"] = "友好首領的背景顏色"
--[[ zhTW ]] L["Hostile Players"] = "敵對玩家"
--[[ zhTW ]] L["Sets the background color for hostile players"] = "敵對玩家的背景顏色"
--[[ zhTW ]] L["Hostile Pets"] = "敵對寵物"
--[[ zhTW ]] L["Sets the background color for hostile pets"] = "敵對寵物的背景顏色"
--[[ zhTW ]] L["Hostile NPCs"] = "敵對NPC"
--[[ zhTW ]] L["Sets the background color for hostile units"] = "敵對NPC的背景顏色"
--[[ zhTW ]] L["Hostile Boss"] = "敵對玩家"
--[[ zhTW ]] L["Sets the background color for hostile boss units"] = "敵對首領的背景顏色"
--[[ zhTW ]] L["Neutral Units"] = "中立單位"
--[[ zhTW ]] L["Sets the background color for neutral units"] = "中立單位的背景顏色"
--[[ zhTW ]] L["Group Pets"] = "團體寵物"
--[[ zhTW ]] L["Sets the background color for group pets"] = "團體寵物的背景顏色"
--[[ zhTW ]] L["Unknown"] = "Unknown"
--[[ zhTW ]] L["Sets the background color for unknown units"] = "Sets the background color for unknown units"
 
--[[ zhTW ]] L["Advanced"] = "進階"
--[[ zhTW ]] L["Options for expert users"] = "進階選項"
--[[ zhTW ]] L["Color Format"] = "顏色格式"
--[[ zhTW ]] L["Color tag"] = "顏色標籤"
--[[ zhTW ]] L["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] L["Border"] = "Border"
--[[ zhTW ]] L["Border options"] = "Border options"
--[[ zhTW ]] L["Target Only"] = "Target Only"
--[[ zhTW ]] L["Enables the border on the current target only"] = "Enables the border on the current target only"
--[[ zhTW ]] L["Border Edge Size"] = "Border Edge Size"
--[[ zhTW ]] L["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ zhTW ]] L["Border Inset"] = "Border Inset"
--[[ zhTW ]] L["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ zhTW ]] L["Border Color"] = "邊框顏色"
--[[ zhTW ]] L["Sets the border color of the nameplate"] = "名牌邊框顏色"
--[[ zhTW ]] L["Border Style"] = "邊框樣式"
--[[ zhTW ]] L["Sets the style of the nameplate border"] = "名牌邊框樣式"
--[[ zhTW ]] L["Background Style"] = "背景樣式"
--[[ zhTW ]] L["Sets the style of the nameplate background"] = "設定名牌背景樣式"
 
--[[ zhTW ]] L["NONE"] = "無"
--[[ zhTW ]] L["STANDARD"] = "標準"
--[[ zhTW ]] L["SQUARE"] = "正方形"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftFrame = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
\ No newline at end of file
AloftOptions/AloftClassData/AloftClassDataOptions.lua New file
0,0 → 1,27
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftClassDataOptions
if not L then return end
 
local AloftClassData = Aloft:GetModule("ClassData")
if not AloftClassData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.class =
{
type = 'toggle',
width = 'full',
name = L["Save Class Data"],
desc = L["Stores player class information between sessions"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftClassData:IsEnabled() or not AloftClassData.db or not AloftClassData.db.profile end,
get = function(i) return AloftClassData.db.profile.save end,
set = AloftClassData.SetSaveData
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftClassData/AloftClassDataLocale.lua New file
0,0 → 1,65
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftClassData
if not L then return end
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Save Class Data"] = "Save Class Data"
--[[ enUS ]] L["Stores player class information between sessions"] = "Stores player class information between sessions"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Save Class Data"] = "직업 데이터 저장"
--[[ koKR ]] L["Stores player class information between sessions"] = "접속 간 플레이어 직업 정보를 저장합니다."
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Save Class Data"] = "Записать информацию о классах"
--[[ ruRU ]] L["Stores player class information between sessions"] = "Сохранять данные о классах игроков между сессиями"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Save Class Data"] = "储存职业信息"
--[[ zhCN ]] L["Stores player class information between sessions"] = "在两次登录的间隔储存职业信息"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Save Class Data"] = "儲存職業資料"
--[[ zhTW ]] L["Stores player class information between sessions"] = "儲存職業資料"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftClassDataOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
AloftOptions/AloftComment/AloftCommentDataOptions.lua New file
0,0 → 1,79
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftComment", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCommentDataOptions
if not L then return end
 
local AloftCommentData = Aloft:GetModule("CommentData", true)
if not AloftCommentData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.comment =
{
type = 'group',
name = L["Comments"],
desc = L["Comment options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCommentData:IsEnabled() or not AloftCommentData.db or not AloftCommentData.db.profile end,
args =
{
save =
{
type = 'toggle',
width = 'full',
name = L["Save Comment Data"],
desc = L["Stores comment data between sessions"],
get = function(i) return AloftCommentData.db.profile.save end,
order = 1,
set = AloftCommentData.SetSaveData,
},
auto =
{
type = 'toggle',
width = 'full',
name = L["Automatic Comments"],
desc = L["Automatically set comments from tooltip tags"],
order = 2,
get = function(i) return AloftCommentData.db.profile.auto end,
set = function(i, v)
AloftCommentData.db.profile.auto = v
AloftCommentData:RegisterEvents()
end,
},
includeHostile =
{
type = 'toggle',
width = 'full',
name = L["Include Hostile Units"],
desc = L["Include hostile units when automatically gathering comments"],
order = 3,
disabled = function(i) return not AloftCommentData.db.profile.auto end,
get = function(i) return AloftCommentData.db.profile.includeHostile end,
set = function(i, v) AloftCommentData.db.profile.includeHostile = v end,
},
clear =
{
type = 'execute',
width = 'full',
name = L["Reset Comments"],
desc = L["Empties the comment database"],
func = function(i) AloftCommentData:ClearAllData() end,
order = -1,
confirm = function(i) return L["You are about to empty your comment database.\nThis action cannot be undone. Proceed?"] end,
},
}
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftComment/AloftCommentLocale.lua New file
0,0 → 1,519
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local oL = { }
 
local tL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftComment", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] oL["Comments"] = "Comments"
--[[ enUS ]] oL["Comment options"] = "Comment options"
 
--[[ enUS ]] oL["Save Comment Data"] = "Save Comment Data"
--[[ enUS ]] oL["Stores comment data between sessions"] = "Stores comment data between sessions"
 
--[[ enUS ]] oL["Automatic Comments"] = "Automatic Comments"
--[[ enUS ]] oL["Automatically set comments from tooltip tags"] = "Automatically set comments from tooltip tags"
 
--[[ enUS ]] oL["Include Hostile Units"] = "Include Hostile Units"
--[[ enUS ]] oL["Include hostile units when automatically gathering comments"] = "Include hostile units when automatically gathering comments"
 
--[[ enUS ]] oL["Reset Comments"] = "Reset Comments"
--[[ enUS ]] oL["Empties the comment database"] = "Empties the comment database"
 
--[[ enUS ]] oL["You are about to empty your comment database.\nThis action cannot be undone. Proceed?"] = "You are about to empty your comment database.\nThis action cannot be undone. Proceed?"
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] tL["Comment Text"] = "Comment Text"
--[[ enUS ]] tL["Comment text options"] = "Comment text options"
--[[ enUS ]] tL["Enable"] = "Enable"
--[[ enUS ]] tL["Show comments on nameplates"] = "Show comments on nameplates"
--[[ enUS ]] tL["Font"] = "Font"
--[[ enUS ]] tL["Sets the font for comment text"] = "Sets the font for comment text"
 
--[[ enUS ]] tL["Set Comment"] = "Set Comment"
--[[ enUS ]] tL["Sets the comment for your current target"] = "Sets the comment for your current target"
--[[ enUS ]] tL["<Any String>"] = "<Any String>"
 
--[[ enUS ]] tL["Typeface"] = "Typeface"
--[[ enUS ]] tL["Comment typeface options"] = "Comment typeface options"
--[[ enUS ]] tL["Font Size"] = "Font Size"
--[[ enUS ]] tL["Sets the font height of the comment text"] = "Sets the font height of the comment text"
--[[ enUS ]] tL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] tL["Show font shadow on comment text"] = "Show font shadow on comment text"
--[[ enUS ]] tL["Outline"] = "Outline"
--[[ enUS ]] tL["Sets the outline for comment text"] = "Sets the outline for comment text"
 
--[[ enUS ]] tL["Position"] = "Position"
--[[ enUS ]] tL["Adjust comment tag position"] = "Adjust comment tag position"
--[[ enUS ]] tL["Anchor"] = "Anchor"
--[[ enUS ]] tL["Sets the anchor for the comment text"] = "Sets the anchor for the comment text"
--[[ enUS ]] tL["Anchor To"] = "Anchor To"
--[[ enUS ]] tL["Sets the relative point on the health bar to anchor the comment text"] = "Sets the relative point on the health bar to anchor the comment text"
--[[ enUS ]] tL["X Offset"] = "X Offset"
--[[ enUS ]] tL["X offset of the comment text"] = "X offset of the comment text"
--[[ enUS ]] tL["Y Offset"] = "Y Offset"
--[[ enUS ]] tL["Y offset of the comment text"] = "Y offset of the comment text"
--[[ enUS ]] tL["Alpha"] = "Alpha"
--[[ enUS ]] tL["Sets the alpha of the comment text"] = "Sets the alpha of the comment text"
--[[ enUS ]] tL["Color"] = "Color"
--[[ enUS ]] tL["Sets the comment text color"] = "Sets the comment text color"
 
--[[ enUS ]] tL["None"] = "None"
--[[ enUS ]] tL["Normal"] = "Normal"
--[[ enUS ]] tL["Thick"] = "Thick"
 
--[[ enUS ]] tL["NoSetComment"] = "|cffff0000You must have a target to set a comment|r"
--[[ enUS ]] tL["CommentAdded"] = "Added |cff00ff00%s|r -> |cff00ff00%s|r"
 
--[[ enUS ]] tL["Advanced"] = "Advanced"
--[[ enUS ]] tL["Options for expert users"] = "Options for expert users"
--[[ enUS ]] tL["Format"] = "Format"
--[[ enUS ]] tL["Comment tag"] = "Comment tag"
--[[ enUS ]] tL["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] tL["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] tL["TOP"] = "TOP"
--[[ enUS ]] tL["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] tL["LEFT"] = "LEFT"
--[[ enUS ]] tL["CENTER"] = "CENTER"
--[[ enUS ]] tL["RIGHT"] = "RIGHT"
--[[ enUS ]] tL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] tL["BOTTOM"] = "BOTTOM"
--[[ enUS ]] tL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftComment"] = "AloftComment"
--[[ enUS ]] mL["Gather and display comment text on nameplates"] = "Gather and display comment text on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftComment", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] oL["Comments"] = "메모"
--[[ koKR ]] oL["Comment options"] = "메모 설정"
 
--[[ koKR ]] oL["Save Comment Data"] = "메모 데이터 저장"
--[[ koKR ]] oL["Stores comment data between sessions"] = "접속 간 메모 데이터를 저장합니다."
 
--[[ koKR ]] oL["Automatic Comments"] = "자동 메모"
--[[ koKR ]] oL["Automatically set comments from tooltip tags"] = "자동으로 툴팁 태그를 메모에 설정합니다."
 
--[[ koKR ]] oL["Include Hostile Units"] = "적대적 대상 포함"
--[[ koKR ]] oL["Include hostile units when automatically gathering comments"] = "자동 메모 설정 시 적대적 대상도 포함시킵니다."
 
--[[ koKR ]] oL["Reset Comments"] = "메모 초기화"
--[[ koKR ]] oL["Empties the comment database"] = "메모 데이터를 삭제합니다."
 
--[[ koKR ]] oL["You are about to empty your comment database.\nThis action cannot be undone. Proceed?"] = "당신의 메모 데이터를 삭제합니다.\n이 동작은 되돌릴 수 없습니다. 계속 하시겠습니까?"
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] tL["Comment Text"] = "메모 글자"
--[[ koKR ]] tL["Comment text options"] = "메모 글자 설정"
--[[ koKR ]] tL["Enable"] = "사용"
--[[ koKR ]] tL["Show comments on nameplates"] = "이름표에 메모를 표시합니다."
--[[ koKR ]] tL["Font"] = "글꼴"
--[[ koKR ]] tL["Sets the font for comment text"] = "메모 글자의 글꼴을 설정합니다."
 
--[[ koKR ]] tL["Set Comment"] = "메모 설정"
--[[ koKR ]] tL["Sets the comment for your current target"] = "현재 대상에 대한 메모를 설정합니다."
--[[ koKR ]] tL["<Any String>"] = "<문자열>"
 
--[[ koKR ]] tL["Typeface"] = "서체"
--[[ koKR ]] tL["Comment typeface options"] = "메모 서체 설정"
--[[ koKR ]] tL["Font Size"] = "글꼴 크기"
--[[ koKR ]] tL["Sets the font height of the comment text"] = "메모 글자의 글꼴 높이를 설정합니다."
--[[ koKR ]] tL["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] tL["Show font shadow on comment text"] = "메모 글자에 그림자를 표시합니다."
--[[ koKR ]] tL["Outline"] = "테두리"
--[[ koKR ]] tL["Sets the outline for comment text"] = "메모 글자에 테두리를 설정합니다."
 
--[[ koKR ]] tL["Position"] = "위치"
--[[ koKR ]] tL["Adjust comment tag position"] = "메모 태그의 위치를 조절합니다."
--[[ koKR ]] tL["Anchor"] = "앵커"
--[[ koKR ]] tL["Sets the anchor for the comment text"] = "메모 글자의 앵커를 설정합니다."
--[[ koKR ]] tL["Anchor To"] = "앵커 위치"
--[[ koKR ]] tL["Sets the relative point on the health bar to anchor the comment text"] = "생명력바에서 메모 글자의 앵커 위치를 설정합니다."
--[[ koKR ]] tL["X Offset"] = "X 좌표"
--[[ koKR ]] tL["X offset of the comment text"] = "메모 글자의 X 좌표입니다."
--[[ koKR ]] tL["Y Offset"] = "Y 좌표"
--[[ koKR ]] tL["Y offset of the comment text"] = "메모 글자의 Y 좌표입니다."
--[[ koKR ]] tL["Alpha"] = "투명도"
--[[ koKR ]] tL["Sets the alpha of the comment text"] = "메모 글자의 투명도를 설정합니다."
--[[ koKR ]] tL["Color"] = "색상"
--[[ koKR ]] tL["Sets the comment text color"] = "메모 글자의 색상을 설정합니다."
 
--[[ koKR ]] tL["None"] = "없음"
--[[ koKR ]] tL["Normal"] = "기본"
--[[ koKR ]] tL["Thick"] = "굵게"
 
--[[ koKR ]] tL["NoSetComment"] = "|cffff0000메모를 설정하려면 대상이 있어야 합니다.|r"
--[[ koKR ]] tL["CommentAdded"] = "|cff00ff00%s|r -> |cff00ff00%s|r 추가됨"
 
--[[ koKR ]] tL["Advanced"] = "고급"
--[[ koKR ]] tL["Options for expert users"] = "고급 사용자를 위한 설정"
--[[ koKR ]] tL["Format"] = "형식"
--[[ koKR ]] tL["Comment tag"] = "메모 태그"
--[[ koKR ]] tL["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] tL["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] tL["TOP"] = "상단"
--[[ koKR ]] tL["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] tL["LEFT"] = "좌측"
--[[ koKR ]] tL["CENTER"] = "가운데"
--[[ koKR ]] tL["RIGHT"] = "우측"
--[[ koKR ]] tL["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] tL["BOTTOM"] = "하단"
--[[ koKR ]] tL["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftComment"] = "AloftComment"
--[[ koKR ]] mL["Gather and display comment text on nameplates"] = "Gather and display comment text on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftComment", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] oL["Comments"] = "Комментарии"
--[[ ruRU ]] oL["Comment options"] = "Настройка комментариев"
 
--[[ ruRU ]] oL["Save Comment Data"] = "Записать данные комментариев"
--[[ ruRU ]] oL["Stores comment data between sessions"] = "Сохранять базу комментариев между сессиями"
 
--[[ ruRU ]] oL["Automatic Comments"] = "Автоматические комментарии"
--[[ ruRU ]] oL["Automatically set comments from tooltip tags"] = "Автоматически задавать комментарии из подсказок"
 
--[[ ruRU ]] oL["Include Hostile Units"] = "Включая враждебных"
--[[ ruRU ]] oL["Include hostile units when automatically gathering comments"] = "Включать враждебные цели при автоматическом сборе комментариев"
 
--[[ ruRU ]] oL["Reset Comments"] = "Сбросить комментарии"
--[[ ruRU ]] oL["Empties the comment database"] = "Очищает базу данных комментариев"
 
--[[ ruRU ]] oL["You are about to empty your comment database.\nThis action cannot be undone. Proceed?"] = "Вы хотите сбросить базу комментариев.\nРезультат будет необратим. Продолжить?"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] tL["Comment Text"] = "Текст комментария"
--[[ ruRU ]] tL["Comment text options"] = "Настройки текста комментария"
--[[ ruRU ]] tL["Enable"] = "Включить"
--[[ ruRU ]] tL["Show comments on nameplates"] = "Отображать комментарии на табличках"
--[[ ruRU ]] tL["Font"] = "Шрифт"
--[[ ruRU ]] tL["Sets the font for comment text"] = "Задает шрифт для текста заклинания"
 
--[[ ruRU ]] tL["Set Comment"] = "Задать комментарий"
--[[ ruRU ]] tL["Sets the comment for your current target"] = "Задает комментарий для текущей цели"
--[[ ruRU ]] tL["<Any String>"] = "<Любая строка>"
 
--[[ ruRU ]] tL["Typeface"] = "Шрифт"
--[[ ruRU ]] tL["Comment typeface options"] = "Настройка шрифта комментариев"
--[[ ruRU ]] tL["Font Size"] = "Размер шрифта"
--[[ ruRU ]] tL["Sets the font height of the comment text"] = "Задает высоту шрифта для текста комментария"
--[[ ruRU ]] tL["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] tL["Show font shadow on comment text"] = "Отображать тень для текста комментария"
--[[ ruRU ]] tL["Outline"] = "Контур"
--[[ ruRU ]] tL["Sets the outline for comment text"] = "Задает окантовку для текста комментария"
 
--[[ ruRU ]] tL["Position"] = "Позиция"
--[[ ruRU ]] tL["Adjust comment tag position"] = "Задать место комментария"
--[[ ruRU ]] tL["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] tL["Sets the anchor for the comment text"] = "Задает прикрепление текста комментария"
--[[ ruRU ]] tL["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] tL["Sets the relative point on the health bar to anchor the comment text"] = "Задает точку для положения текста комментария относительно полоски здоровья"
--[[ ruRU ]] tL["X Offset"] = "Смещение по X"
--[[ ruRU ]] tL["X offset of the comment text"] = "Смещение текста комментария по X"
--[[ ruRU ]] tL["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] tL["Y offset of the comment text"] = "Смещение текста комментария по Y"
--[[ ruRU ]] tL["Alpha"] = "Прозрачность"
--[[ ruRU ]] tL["Sets the alpha of the comment text"] = "Задает прозрачность текста комментария"
--[[ ruRU ]] tL["Color"] = "Цвет"
--[[ ruRU ]] tL["Sets the comment text color"] = "Задает цвет текста комментариев"
 
--[[ ruRU ]] tL["None"] = "Нет"
--[[ ruRU ]] tL["Normal"] = "Обычный"
--[[ ruRU ]] tL["Thick"] = "Жирный"
 
--[[ ruRU ]] tL["NoSetComment"] = "|cffff0000У вас должна быть цель чтобы установить комментарии|r"
--[[ ruRU ]] tL["CommentAdded"] = "Добавлено |cff00ff00%s|r -> |cff00ff00%s|r"
 
--[[ ruRU ]] tL["Advanced"] = "Дополнительно"
--[[ ruRU ]] tL["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] tL["Format"] = "Формат"
--[[ ruRU ]] tL["Comment tag"] = "Вид комментария"
--[[ ruRU ]] tL["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] tL["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] tL["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] tL["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] tL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] tL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] tL["RIGHT"] = "СПРАВА"
--[[ ruRU ]] tL["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] tL["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] tL["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftComment"] = "AloftComment"
--[[ ruRU ]] mL["Gather and display comment text on nameplates"] = "Отображает текст/комментарии"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftComment", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] oL["Comments"] = "备注"
--[[ zhCN ]] oL["Comment options"] = "备注选项"
 
--[[ zhCN ]] oL["Save Comment Data"] = "储存备注信息"
--[[ zhCN ]] oL["Stores comment data between sessions"] = "在两次登录的间隔储存备注信息"
 
--[[ zhCN ]] oL["Automatic Comments"] = "自动备注"
--[[ zhCN ]] oL["Automatically set comments from tooltip tags"] = "将提示信息自动转为备注"
 
--[[ zhCN ]] oL["Include Hostile Units"] = "包括敌对方单位"
--[[ zhCN ]] oL["Include hostile units when automatically gathering comments"] = "自动设定备注信息包括敌对方单位"
 
--[[ zhCN ]] oL["Reset Comments"] = "重置备注"
--[[ zhCN ]] oL["Empties the comment database"] = "清空备注信息库"
 
--[[ zhCN ]] oL["You are about to empty your comment database.\nThis action cannot be undone. Proceed?"] = "你是否真得要清空备注信息库?"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] tL["Comment Text"] = "备注文字"
--[[ zhCN ]] tL["Comment text options"] = "备注文字相关设置"
--[[ zhCN ]] tL["Enable"] = "启用"
--[[ zhCN ]] tL["Show comments on nameplates"] = "在姓名板上显示备注文字"
--[[ zhCN ]] tL["Font"] = "字体"
--[[ zhCN ]] tL["Sets the font for comment text"] = "设定备注文字的字体"
 
--[[ zhCN ]] tL["Set Comment"] = "设定备注"
--[[ zhCN ]] tL["Sets the comment for your current target"] = "为你的当前目标设定备注"
--[[ zhCN ]] tL["<Any String>"] = "<任意文字>"
 
--[[ zhCN ]] tL["Typeface"] = "式样"
--[[ zhCN ]] tL["Comment typeface options"] = "备注文字式样设置"
--[[ zhCN ]] tL["Font Size"] = "字号"
--[[ zhCN ]] tL["Sets the font height of the comment text"] = "设定备注文字的字号"
--[[ zhCN ]] tL["Font Shadow"] = "字体阴影"
--[[ zhCN ]] tL["Show font shadow on comment text"] = "显示备注文字的字体阴影"
--[[ zhCN ]] tL["Outline"] = "轮廓"
--[[ zhCN ]] tL["Sets the outline for comment text"] = "设定备注文字的字体輪廓"
 
--[[ zhCN ]] tL["Position"] = "位置"
--[[ zhCN ]] tL["Adjust comment tag position"] = "调整备注标签的位置"
--[[ zhCN ]] tL["Anchor"] = "锚点"
--[[ zhCN ]] tL["Sets the anchor for the comment text"] = "设定备注文字的锚点"
--[[ zhCN ]] tL["Anchor To"] = "固定在"
--[[ zhCN ]] tL["Sets the relative point on the health bar to anchor the comment text"] = "设定备注文字固定在生命值显示条的相对位置"
--[[ zhCN ]] tL["X Offset"] = "X轴偏移"
--[[ zhCN ]] tL["X offset of the comment text"] = "设定备注文字的X轴偏移量"
--[[ zhCN ]] tL["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] tL["Y offset of the comment text"] = "设定备注文字的Y轴偏移量"
--[[ zhCN ]] tL["Alpha"] = "透明度"
--[[ zhCN ]] tL["Sets the alpha of the comment text"] = "设定备注文字的透明度"
--[[ zhCN ]] tL["Color"] = "颜色"
--[[ zhCN ]] tL["Sets the comment text color"] = "设定备注文字的颜色"
 
--[[ zhCN ]] tL["None"] = "无"
--[[ zhCN ]] tL["Normal"] = "正常"
--[[ zhCN ]] tL["Thick"] = "粗"
 
--[[ zhCN ]] tL["NoSetComment"] = "|cffff0000要设定备注,你需要一个目标|r"
--[[ zhCN ]] tL["CommentAdded"] = "增加: |cff00ff00%s|r -> |cff00ff00%s|r"
 
--[[ zhCN ]] tL["Advanced"] = "高级"
--[[ zhCN ]] tL["Options for expert users"] = "高级设置"
--[[ zhCN ]] tL["Format"] = "格式"
--[[ zhCN ]] tL["Comment tag"] = "备注标签"
--[[ zhCN ]] tL["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] tL["TOPLEFT"] = "左上"
--[[ zhCN ]] tL["TOP"] = "上"
--[[ zhCN ]] tL["TOPRIGHT"] = "右上"
--[[ zhCN ]] tL["LEFT"] = "å·¦"
--[[ zhCN ]] tL["CENTER"] = "中"
--[[ zhCN ]] tL["RIGHT"] = "右"
--[[ zhCN ]] tL["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] tL["BOTTOM"] = "下"
--[[ zhCN ]] tL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftComment"] = "注释"
--[[ zhCN ]] mL["Gather and display comment text on nameplates"] = "在姓名板上显示特定文字"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftComment", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] oL["Comments"] = "備註"
--[[ zhTW ]] oL["Comment options"] = "備註選項"
 
--[[ zhTW ]] oL["Save Comment Data"] = "儲存備註資料"
--[[ zhTW ]] oL["Stores comment data between sessions"] = "儲存備註資料"
 
--[[ zhTW ]] oL["Automatic Comments"] = "自動備註"
--[[ zhTW ]] oL["Automatically set comments from tooltip tags"] = "由提示訊息自動設定備註"
 
--[[ zhTW ]] oL["Include Hostile Units"] = "包括敵對單位"
--[[ zhTW ]] oL["Include hostile units when automatically gathering comments"] = "自動設定備註包括敵對單位"
 
--[[ zhTW ]] oL["Reset Comments"] = "重設備註"
--[[ zhTW ]] oL["Empties the comment database"] = "清空備註資料庫"
 
--[[ zhTW ]] oL["You are about to empty your comment database.\nThis action cannot be undone. Proceed?"] = "你是否真的清空備註資料庫?"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] tL["Comment Text"] = "備註文字"
--[[ zhTW ]] tL["Comment text options"] = "備註文字選項"
--[[ zhTW ]] tL["Enable"] = "啟用"
--[[ zhTW ]] tL["Show comments on nameplates"] = "在名牌顯示備註"
--[[ zhTW ]] tL["Font"] = "字型"
--[[ zhTW ]] tL["Sets the font for comment text"] = "備註文字字型"
 
--[[ zhTW ]] tL["Set Comment"] = "設定備註"
--[[ zhTW ]] tL["Sets the comment for your current target"] = "設定目前目標的備註"
--[[ zhTW ]] tL["<Any String>"] = "<任何文字>"
 
--[[ zhTW ]] tL["Typeface"] = "字體"
--[[ zhTW ]] tL["Comment typeface options"] = "備註文字字體選項"
--[[ zhTW ]] tL["Font Size"] = "字型大小"
--[[ zhTW ]] tL["Sets the font height of the comment text"] = "備註文字字型大小"
--[[ zhTW ]] tL["Font Shadow"] = "字型陰影"
--[[ zhTW ]] tL["Show font shadow on comment text"] = "備註文字字型陰影"
--[[ zhTW ]] tL["Outline"] = "輪廓"
--[[ zhTW ]] tL["Sets the outline for comment text"] = "備註文字字型輪廓"
 
--[[ zhTW ]] tL["Position"] = "位置"
--[[ zhTW ]] tL["Adjust comment tag position"] = "備註標籤位置"
--[[ zhTW ]] tL["Anchor"] = "定位點"
--[[ zhTW ]] tL["Sets the anchor for the comment text"] = "備註文字定位點"
--[[ zhTW ]] tL["Anchor To"] = "固定在"
--[[ zhTW ]] tL["Sets the relative point on the health bar to anchor the comment text"] = "備註文字固定在生命力條的位置"
--[[ zhTW ]] tL["X Offset"] = "X位移"
--[[ zhTW ]] tL["X offset of the comment text"] = "備註文字X位移"
--[[ zhTW ]] tL["Y Offset"] = "Y位移"
--[[ zhTW ]] tL["Y offset of the comment text"] = "備註文字Y位移"
--[[ zhTW ]] tL["Alpha"] = "透明度"
--[[ zhTW ]] tL["Sets the alpha of the comment text"] = "備註文字透明度"
--[[ zhTW ]] tL["Color"] = "顏色"
--[[ zhTW ]] tL["Sets the comment text color"] = "備註文字顏色"
 
--[[ zhTW ]] tL["None"] = "無"
--[[ zhTW ]] tL["Normal"] = "正常"
--[[ zhTW ]] tL["Thick"] = "粗"
 
--[[ zhTW ]] tL["NoSetComment"] = "|cffff0000你需要一個目標設定備註|r"
--[[ zhTW ]] tL["CommentAdded"] = "增加: |cff00ff00%s|r -> |cff00ff00%s|r"
 
--[[ zhTW ]] tL["Advanced"] = "進階"
--[[ zhTW ]] tL["Options for expert users"] = "進階選項"
--[[ zhTW ]] tL["Format"] = "格式"
--[[ zhTW ]] tL["Comment tag"] = "備註標籤"
--[[ zhTW ]] tL["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] tL["TOPLEFT"] = "左上"
--[[ zhTW ]] tL["TOP"] = "上"
--[[ zhTW ]] tL["TOPRIGHT"] = "右上"
--[[ zhTW ]] tL["LEFT"] = "å·¦"
--[[ zhTW ]] tL["CENTER"] = "中"
--[[ zhTW ]] tL["RIGHT"] = "右"
--[[ zhTW ]] tL["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] tL["BOTTOM"] = "下"
--[[ zhTW ]] tL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftComment"] = "注釋"
--[[ zhTW ]] mL["Gather and display comment text on nameplates"] = "在名牌上顯示特定文字"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftComment", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCommentDataOptions = setmetatable(oL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
oL = nil
 
AloftLocale.AloftCommentTextOptions = setmetatable(tL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
tL = nil
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
AloftOptions/AloftComment/AloftCommentTextOptions.lua New file
0,0 → 1,229
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftComment", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCommentTextOptions
if not L then return end
 
local AloftCommentText = Aloft:GetModule("CommentText", true)
if not AloftCommentText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.comment =
{
type = 'group',
name = L["Comment Text"],
desc = L["Comment text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCommentText:IsEnabled() or not AloftCommentText.db or not AloftCommentText.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show comments on nameplates"],
get = function(i) return AloftCommentText.db.profile.enable end,
set = function(i, v) AloftCommentText.db.profile.enable = v AloftCommentText:UpdateTag() AloftCommentText:UpdateAll() end,
order = 1
},
setComment =
{
type = 'input',
width = 'full',
name = L["Set Comment"],
desc = L["Sets the comment for your current target"],
usage = L["<Any String>"],
disabled = function(i) return not AloftCommentText.db.profile.enable end,
get = function(i) return "" end,
set = function(i, v)
local setFor = Aloft:GetModule("CommentData"):SetCommentForTarget(v)
if setFor then
Aloft:Print(string.format(L["CommentAdded"], setFor, v))
else
Aloft:Print(L["NoSetComment"])
end
end,
order = 2
},
typeface =
{
type = "group",
name = L["Typeface"],
desc = L["Comment typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCommentText:IsEnabled() or not AloftCommentText.db or not AloftCommentText.db.profile or not AloftCommentText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for comment text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.comment.args.typeface.args.font.values) do
if v == AloftCommentText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftCommentText.db.profile.font = Aloft.Options.args.comment.args.typeface.args.font.values[v]
AloftCommentText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the comment text"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftCommentText.db.profile.fontSize end,
set = function(i, value) AloftCommentText.db.profile.fontSize = value AloftCommentText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on comment text"],
get = function(i) return AloftCommentText.db.profile.shadow end,
set = function(i, v) AloftCommentText.db.profile.shadow = v AloftCommentText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the outline for comment text"],
get = function(i) return AloftCommentText.db.profile.outline end,
set = function(i, value) AloftCommentText.db.profile.outline = value AloftCommentText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust comment tag position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCommentText:IsEnabled() or not AloftCommentText.db or not AloftCommentText.db.profile or not AloftCommentText.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the comment text"],
get = function(i) return AloftCommentText.db.profile.point end,
set = function(i, v) AloftCommentText.db.profile.point = v AloftCommentText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the comment text"],
get = function(i) return AloftCommentText.db.profile.relativeToPoint end,
set = function(i, v) AloftCommentText.db.profile.relativeToPoint = v AloftCommentText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the comment text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCommentText.db.profile.offsetX end,
set = function(i, v) AloftCommentText.db.profile.offsetX = v AloftCommentText:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the comment text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCommentText.db.profile.offsetY end,
set = function(i, v) AloftCommentText.db.profile.offsetY = v AloftCommentText:UpdateAll() end
},
},
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the alpha of the comment text"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftCommentText.db.profile.enable end,
get = function(i) return AloftCommentText.db.profile.alpha end,
set = function(i, v) AloftCommentText.db.profile.alpha = v AloftCommentText:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the comment text color"],
disabled = function(i) return not AloftCommentText.db.profile.enable end,
get = function(i) return unpack(AloftCommentText.db.profile.color) end,
set = function(i, r, g, b, a) AloftCommentText.db.profile.color = { r, g, b, a } AloftCommentText:UpdateAll() end,
},
advanced =
{
type = 'group',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftCommentText:IsEnabled() or not AloftCommentText.db or not AloftCommentText.db.profile or not AloftCommentText.db.profile.enable end,
args =
{
format =
{
type = 'input',
width = 'full',
name = L["Format"],
desc = L["Comment tag"],
usage = L["<Any tag string>"],
get = function(i) return Aloft:HighlightTagSyntax(AloftCommentText.db.profile.format) end,
set = function(i, v)
AloftCommentText.db.profile.format = Aloft:FixTagCasing(v)
AloftCommentText.textMethodData = nil
AloftCommentText.textMethod = nil
Aloft:DetermineDataSources()
AloftCommentText:UpdateAll()
end,
disabled = function(i) return not Aloft:IsEnabled() or not AloftCommentText:IsEnabled() or not AloftCommentText.db or not AloftCommentText.db.profile or not AloftCommentText.db.profile.enable end,
}
},
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftComment/AloftCommentModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftComment =
{
type = 'toggle',
width = 'full',
name = L["AloftComment"],
desc = L["Gather and display comment text on nameplates"],
get = function(i) return AloftModules.db.profile.AloftComment end,
set = function(i, v) AloftModules.db.profile.AloftComment = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftRaceData/AloftRaceDataOptions.lua New file
0,0 → 1,27
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftRaceDataOptions
if not L then return end
 
local AloftRaceData = Aloft:GetModule("RaceData", true)
if not AloftRaceData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.race =
{
type = 'toggle',
width = 'full',
name = L["Save Race Data"],
desc = L["Stores race information between sessions"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftRaceData:IsEnabled() or not AloftRaceData.db or not AloftRaceData.db.profile end,
get = function(i) return AloftRaceData.db.profile.save end,
set = AloftRaceData.SetSaveData
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftRaceData/AloftRaceDataLocale.lua New file
0,0 → 1,62
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local oL = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] oL["Save Race Data"] = "Save Race Data"
--[[ enUS ]] oL["Stores race information between sessions"] = "Stores race information between sessions"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] oL["Save Race Data"] = "종족 데이터 저장"
--[[ koKR ]] oL["Stores race information between sessions"] = "접속 간 종족 정보를 저장합니다."
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] oL["Save Race Data"] = "Записать данные о расах"
--[[ ruRU ]] oL["Stores race information between sessions"] = "Сохранять данные о расе между сессиями"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
--[[ zhCN ]] oL["Save Race Data"] = "储存种族信息"
--[[ zhCN ]] oL["Stores race information between sessions"] = "在两次登录的间隔储存种族信息"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] oL["Save Race Data"] = "儲存種族資料"
--[[ zhTW ]] oL["Stores race information between sessions"] = "儲存種族資料"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftRaceDataOptions = setmetatable(oL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
oL = nil
AloftOptions/AloftGuild/AloftGuildDataOptions.lua New file
0,0 → 1,35
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftGuildDataOptions
if not L then return end
 
local AloftGuildData = Aloft:GetModule("GuildData", true)
if not AloftGuildData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.guild =
{
type = 'toggle',
width = 'full',
name = L["Save Guild Data"],
desc = L["Stores guild information between sessions"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftGuildData:IsEnabled() or not AloftGuildData.db or not AloftGuildData.db.profile end,
get = function(i) return AloftGuildData.db.profile.save end,
set = AloftGuildData.SetSaveData,
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftGuild/AloftShortGuildDataOptions.lua New file
0,0 → 1,35
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftShortGuildDataOptions
if not L then return end
 
local AloftShortGuildData = Aloft:GetModule("ShortGuildData", true)
if not AloftShortGuildData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.shortGuild =
{
type = 'execute',
width = 'full',
name = L["Reset Short Guilds"],
desc = L["Empties the custom short guild database"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftShortGuildData:IsEnabled() end,
func = function(i) AloftShortGuildData:ClearAllData() end,
confirm = function(i) return L["You are about to empty your guild short name database.\nThis action cannot be undone. Proceed?"] end,
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftGuild/AloftGuildLocale.lua New file
0,0 → 1,558
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local dL = { }
 
local tL = { }
 
local oL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] dL["Save Guild Data"] = "Save Guild Data"
--[[ enUS ]] dL["Stores guild information between sessions"] = "Stores guild information between sessions"
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] tL["Guild Text"] = "Guild Text"
--[[ enUS ]] tL["Guild text options"] = "Guild text options"
--[[ enUS ]] tL["Enable"] = "Enable"
--[[ enUS ]] tL["Show guild information on nameplates"] = "Show guild information on nameplates"
 
--[[ enUS ]] tL["Attach to Name"] = "Attach to Name"
--[[ enUS ]] tL["Attaches guild text to name"] = "Attaches guild text to name"
--[[ enUS ]] tL["Attach Format"] = "Attach Format"
--[[ enUS ]] tL["Selects the text format to use"] = "Selects the text format to use"
 
--[[ enUS ]] tL["HYPHEN"] = "Name - Guild"
--[[ enUS ]] tL["SLASH"] = "Name / Guild"
--[[ enUS ]] tL["BRACKET"] = "Name (Guild)"
--[[ enUS ]] tL["COLON"] = "Name : Guild"
 
--[[ enUS ]] tL["Short"] = "Short"
--[[ enUS ]] tL["Use short guild names"] = "Use short guild names"
--[[ enUS ]] tL["Set Short Name"] = "Set Short Name"
--[[ enUS ]] tL["<Any String>"] = "<Any String>"
--[[ enUS ]] tL["Sets the short name for your current target"] = "Sets the short name for your current target"
--[[ enUS ]] tL["Show Own"] = "Show Own"
--[[ enUS ]] tL["Show the guild names of your own guild members"] = "Show the guild names of your own guild members"
 
--[[ enUS ]] tL["Typeface"] = "Typeface"
--[[ enUS ]] tL["Guild text typeface options"] = "Guild text typeface options"
--[[ enUS ]] tL["Font"] = "Font"
--[[ enUS ]] tL["Sets the font for guild text"] = "Sets the font for guild text"
--[[ enUS ]] tL["Font Size"] = "Font Size"
--[[ enUS ]] tL["Sets the font height of the guild text"] = "Sets the font height of the guild text"
--[[ enUS ]] tL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] tL["Show font shadow on guild text"] = "Show font shadow on guild text"
--[[ enUS ]] tL["Outline"] = "Outline"
--[[ enUS ]] tL["Sets the outline for guild text"] = "Sets the outline for guild text"
 
--[[ enUS ]] tL["Position"] = "Position"
--[[ enUS ]] tL["Adjust guild text position"] = "Adjust guild text position"
--[[ enUS ]] tL["Anchor"] = "Anchor"
--[[ enUS ]] tL["Sets the anchor for the guild text"] = "Sets the anchor for the guild text"
--[[ enUS ]] tL["Anchor To"] = "Anchor To"
--[[ enUS ]] tL["Sets the relative point on the health bar to anchor the guild text"] = "Sets the relative point on the health bar to anchor the guild text"
--[[ enUS ]] tL["X Offset"] = "X Offset"
--[[ enUS ]] tL["X offset of the guild text"] = "X offset of the guild text"
--[[ enUS ]] tL["Y Offset"] = "Y Offset"
--[[ enUS ]] tL["Y offset of the guild text"] = "Y offset of the guild text"
--[[ enUS ]] tL["Alpha"] = "Alpha"
--[[ enUS ]] tL["Sets the alpha of the guild text"] = "Sets the alpha of the guild text"
--[[ enUS ]] tL["Color"] = "Color"
--[[ enUS ]] tL["Sets the guild text color"] = "Sets the guild text color"
 
--[[ enUS ]] tL["None"] = "None"
--[[ enUS ]] tL["Normal"] = "Normal"
--[[ enUS ]] tL["Thick"] = "Thick"
 
--[[ enUS ]] tL["NoSetShortName"] = "|cffff0000You must have a target to set the short name|r"
--[[ enUS ]] tL["ShortNameAdded"] = "Added |cff00ff00%s|r -> |cff00ff00%s|r"
 
--[[ enUS ]] tL["Advanced"] = "Advanced"
--[[ enUS ]] tL["Options for expert users"] = "Options for expert users"
--[[ enUS ]] tL["Format"] = "Format"
--[[ enUS ]] tL["Guild tag"] = "Guild tag"
--[[ enUS ]] tL["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] tL["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] tL["TOP"] = "TOP"
--[[ enUS ]] tL["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] tL["LEFT"] = "LEFT"
--[[ enUS ]] tL["CENTER"] = "CENTER"
--[[ enUS ]] tL["RIGHT"] = "RIGHT"
--[[ enUS ]] tL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] tL["BOTTOM"] = "BOTTOM"
--[[ enUS ]] tL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] oL["Reset Short Guilds"] = "Reset Short Guilds"
--[[ enUS ]] oL["Empties the custom short guild database"] = "Empties the custom short guild database"
 
--[[ enUS ]] oL["You are about to empty your guild short name database.\nThis action cannot be undone. Proceed?"] = "You are about to empty your guild short name database.\nThis action cannot be undone. Proceed?"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftGuild"] = "AloftGuild"
--[[ enUS ]] mL["Gather and display player guild names on nameplates"] = "Gather and display player guild names on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] dL["Save Guild Data"] = "길드 데이터 저장"
--[[ koKR ]] dL["Stores guild information between sessions"] = "접속 간 길드 정보를 저장하니다."
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] tL["Guild Text"] = "길드정보"
--[[ koKR ]] tL["Guild text options"] = "길드정보 설정"
--[[ koKR ]] tL["Enable"] = "사용"
--[[ koKR ]] tL["Show guild information on nameplates"] = "이름표에 길드정보를 표시합니다."
 
--[[ koKR ]] tL["Attach to Name"] = "이름에 첨부"
--[[ koKR ]] tL["Attaches guild text to name"] = "이름에 길드 정보를 추가합니다."
--[[ koKR ]] tL["Attach Format"] = "첨부 형식"
--[[ koKR ]] tL["Selects the text format to use"] = "사용할 정보 형식을 선택합니다."
 
--[[ koKR ]] tL["HYPHEN"] = "이름 - 길드"
--[[ koKR ]] tL["SLASH"] = "이름 / 길드"
--[[ koKR ]] tL["BRACKET"] = "이름 (길드)"
--[[ koKR ]] tL["COLON"] = "이름 : 길드"
 
--[[ koKR ]] tL["Short"] = "간략형"
--[[ koKR ]] tL["Use short guild names"] = "짧은 길드명을 사용합니다."
--[[ koKR ]] tL["Set Short Name"] = "짧은 이름 설정"
--[[ koKR ]] tL["<Any String>"] = "<문자열>"
--[[ koKR ]] tL["Sets the short name for your current target"] = "현재 대상에 대해 짧은 이름을 설정합니다."
--[[ koKR ]] tL["Show Own"] = "자신 표시"
--[[ koKR ]] tL["Show the guild names of your own guild members"] = "길드원의 길드명을 표시합니다."
 
--[[ koKR ]] tL["Typeface"] = "서체"
--[[ koKR ]] tL["Guild text typeface options"] = "길드정보 서체 설정"
--[[ koKR ]] tL["Font"] = "글꼴"
--[[ koKR ]] tL["Sets the font for guild text"] = "길드 정보의 글꼴을 설정합니다."
--[[ koKR ]] tL["Font Size"] = "글꼴 크기"
--[[ koKR ]] tL["Sets the font height of the guild text"] = "길드 정보 글꼴의 높이를 설정합니다."
--[[ koKR ]] tL["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] tL["Show font shadow on guild text"] = "길드 정보 글꼴의 그림자를 표시합니다."
--[[ koKR ]] tL["Outline"] = "테두리"
--[[ koKR ]] tL["Sets the outline for guild text"] = "길드 정보에 테두리를 설정합니다."
 
--[[ koKR ]] tL["Position"] = "위치"
--[[ koKR ]] tL["Adjust guild text position"] = "길드 정보 위치 조절"
--[[ koKR ]] tL["Anchor"] = "앵커"
--[[ koKR ]] tL["Sets the anchor for the guild text"] = "길드 정보의 앵커를 설정합니다."
--[[ koKR ]] tL["Anchor To"] = "앵커 위치"
--[[ koKR ]] tL["Sets the relative point on the health bar to anchor the guild text"] = "생명력바에서 길드 정보의 앵커 위치를 설정합니다."
--[[ koKR ]] tL["X Offset"] = "X 좌표"
--[[ koKR ]] tL["X offset of the guild text"] = "길드 정보의 X 좌표 입니다."
--[[ koKR ]] tL["Y Offset"] = "Y 좌표"
--[[ koKR ]] tL["Y offset of the guild text"] = "길드 정보의 Y 좌표 입니다."
--[[ koKR ]] tL["Alpha"] = "투명도"
--[[ koKR ]] tL["Sets the alpha of the guild text"] = "길드 정보의 투명도를 설정합니다."
--[[ koKR ]] tL["Color"] = "색상"
--[[ koKR ]] tL["Sets the guild text color"] = "길드 정보의 색상을 설정합니다."
 
--[[ koKR ]] tL["None"] = "없음"
--[[ koKR ]] tL["Normal"] = "보통"
--[[ koKR ]] tL["Thick"] = "굵게"
 
--[[ koKR ]] tL["NoSetShortName"] = "|cffff0000대상에 지정된 짧은 이름이 없습니다.|r"
--[[ koKR ]] tL["ShortNameAdded"] = "|cff00ff00%s|r -> |cff00ff00%s|r 추가됨"
 
--[[ koKR ]] tL["Advanced"] = "고급"
--[[ koKR ]] tL["Options for expert users"] = "고급 사용자를 위한 설정입니다."
--[[ koKR ]] tL["Format"] = "형식"
--[[ koKR ]] tL["Guild tag"] = "길드 태그"
--[[ koKR ]] tL["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] tL["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] tL["TOP"] = "상단"
--[[ koKR ]] tL["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] tL["LEFT"] = "좌측"
--[[ koKR ]] tL["CENTER"] = "가운데"
--[[ koKR ]] tL["RIGHT"] = "우측"
--[[ koKR ]] tL["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] tL["BOTTOM"] = "하단"
--[[ koKR ]] tL["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] oL["Reset Short Guilds"] = "짧은 길드 초기화"
--[[ koKR ]] oL["Empties the custom short guild database"] = "사용자의 짧은 길드 데이터베이스를 삭제합니다."
 
--[[ koKR ]] oL["You are about to empty your guild short name database.\nThis action cannot be undone. Proceed?"] = "당신의 짧은 길드명 데이터를 삭제합니다.\n이 동작은 되돌릴 수 없습니다. 계속 하시겠습니까?"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftGuild"] = "AloftGuild"
--[[ koKR ]] mL["Gather and display player guild names on nameplates"] = "Gather and display player guild names on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] dL["Save Guild Data"] = "Записать данные о гильдиях"
--[[ ruRU ]] dL["Stores guild information between sessions"] = "Сохранять данные о гильдии между сессиями"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] tL["Guild Text"] = "Текст гильдии"
--[[ ruRU ]] tL["Guild text options"] = "Настройки текста гильдии"
--[[ ruRU ]] tL["Enable"] = "Включить"
--[[ ruRU ]] tL["Show guild information on nameplates"] = "Отображать информацию о гильдии на табличках"
 
--[[ ruRU ]] tL["Attach to Name"] = "Присоединить к имени"
--[[ ruRU ]] tL["Attaches guild text to name"] = "Присоединяет гильд-текст к имени"
--[[ ruRU ]] tL["Attach Format"] = "Способ прикрепления"
--[[ ruRU ]] tL["Selects the text format to use"] = "Выбирает, какой формат использовать для текста"
 
--[[ ruRU ]] tL["HYPHEN"] = "Имя - Гильдия"
--[[ ruRU ]] tL["SLASH"] = "Имя / Гильдия"
--[[ ruRU ]] tL["BRACKET"] = "Имя (Гильдия)"
--[[ ruRU ]] tL["COLON"] = "Имя : Гильдия"
 
--[[ ruRU ]] tL["Short"] = "Сокращенное"
--[[ ruRU ]] tL["Use short guild names"] = "Укорачивать имена гильдий"
--[[ ruRU ]] tL["Set Short Name"] = "Задать короткое имя"
--[[ ruRU ]] tL["<Any String>"] = "<Любая строка>"
--[[ ruRU ]] tL["Sets the short name for your current target"] = "Задает сокращенное имя для текущей цели"
--[[ ruRU ]] tL["Show Own"] = "Отображать себя"
--[[ ruRU ]] tL["Show the guild names of your own guild members"] = "Отображать имя гильдии для членов вашей гильдии"
 
--[[ ruRU ]] tL["Typeface"] = "Шрифт"
--[[ ruRU ]] tL["Guild text typeface options"] = "Опции шрифта текста гильдии"
--[[ ruRU ]] tL["Font"] = "Шрифт"
--[[ ruRU ]] tL["Sets the font for guild text"] = "Задает шрифт для текста гильдии"
--[[ ruRU ]] tL["Font Size"] = "Размер шрифта"
--[[ ruRU ]] tL["Sets the font height of the guild text"] = "Задает высоту шрифта для текста гильдии"
--[[ ruRU ]] tL["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] tL["Show font shadow on guild text"] = "Отображать тень для текста гильдии"
--[[ ruRU ]] tL["Outline"] = "Контур"
--[[ ruRU ]] tL["Sets the outline for guild text"] = "Задает окантовку для текста гильдии"
 
--[[ ruRU ]] tL["Position"] = "Позиция"
--[[ ruRU ]] tL["Adjust guild text position"] = "Задать место текста гильдии"
--[[ ruRU ]] tL["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] tL["Sets the anchor for the guild text"] = "Задает прикрепление текста гильдии"
--[[ ruRU ]] tL["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] tL["Sets the relative point on the health bar to anchor the guild text"] = "Задает точку для положения текста гильдии относительно полоски здоровья"
--[[ ruRU ]] tL["X Offset"] = "Смещение по X"
--[[ ruRU ]] tL["X offset of the guild text"] = "Смещение гильд-текста по X"
--[[ ruRU ]] tL["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] tL["Y offset of the guild text"] = "Смещение гильд-текста по Y"
--[[ ruRU ]] tL["Alpha"] = "Прозрачность"
--[[ ruRU ]] tL["Sets the alpha of the guild text"] = "Задает прозрачность текста гильдии"
--[[ ruRU ]] tL["Color"] = "Цвет"
--[[ ruRU ]] tL["Sets the guild text color"] = "Задает цвет текста гильдии"
 
--[[ ruRU ]] tL["None"] = "Нет"
--[[ ruRU ]] tL["Normal"] = "Обычно"
--[[ ruRU ]] tL["Thick"] = "Жирный"
 
--[[ ruRU ]] tL["NoSetShortName"] = "|cffff0000У вас должна быть цель чтобы установить сокращение имени|r"
--[[ ruRU ]] tL["ShortNameAdded"] = "Добавлено |cff00ff00%s|r -> |cff00ff00%s|r"
 
--[[ ruRU ]] tL["Advanced"] = "Дополнительно"
--[[ ruRU ]] tL["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] tL["Format"] = "Формат"
--[[ ruRU ]] tL["Guild tag"] = "Вид гильдии"
--[[ ruRU ]] tL["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] tL["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] tL["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] tL["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] tL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] tL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] tL["RIGHT"] = "СПРАВА"
--[[ ruRU ]] tL["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] tL["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] tL["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] oL["Reset Short Guilds"] = "Сброс сокращений для гильдий"
--[[ ruRU ]] oL["Empties the custom short guild database"] = "Очищает базу данных сокращенных названий гильдий"
 
--[[ ruRU ]] oL["You are about to empty your guild short name database.\nThis action cannot be undone. Proceed?"] = "Вы хотите сбросить базу сокращенных имен гильдий.\nРезультат будет необратим. Продолжить?"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftGuild"] = "AloftGuild"
--[[ ruRU ]] mL["Gather and display player guild names on nameplates"] = "Отображает название гильдии игрока"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] dL["Save Guild Data"] = "储存公会信息"
--[[ zhCN ]] dL["Stores guild information between sessions"] = "在两次登录的间隔储存公会信息"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] tL["Guild Text"] = "公会名称文字"
--[[ zhCN ]] tL["Guild text options"] = "公会名称文字相关设置"
--[[ zhCN ]] tL["Enable"] = "启用"
--[[ zhCN ]] tL["Show guild information on nameplates"] = "在姓名板上显示公会信息"
 
--[[ zhCN ]] tL["Attach to Name"] = "依附姓名"
--[[ zhCN ]] tL["Attaches guild text to name"] = "公会名称文字依附姓名"
--[[ zhCN ]] tL["Attach Format"] = "依附格式"
--[[ zhCN ]] tL["Selects the text format to use"] = "选择文字的"
 
--[[ zhCN ]] tL["HYPHEN"] = "名字 - 公会"
--[[ zhCN ]] tL["SLASH"] = "名字 / 公会"
--[[ zhCN ]] tL["BRACKET"] = "名字 (公会)"
--[[ zhCN ]] tL["COLON"] = "名字 : 公会"
 
--[[ zhCN ]] tL["Short"] = "缩写"
--[[ zhCN ]] tL["Use short guild names"] = "使用公会名称的缩写"
--[[ zhCN ]] tL["Set Short Name"] = "设定公会名称缩写"
--[[ zhCN ]] tL["<Any String>"] = "<任意文字>"
--[[ zhCN ]] tL["Sets the short name for your current target"] = "设定当前目标公会名称的缩写"
--[[ zhCN ]] tL["Show Own"] = "显示自己"
--[[ zhCN ]] tL["Show the guild names of your own guild members"] = "设定自己公会名称的缩写"
 
--[[ zhCN ]] tL["Typeface"] = "式样"
--[[ zhCN ]] tL["Guild text typeface options"] = "公会名称文字式样设置"
--[[ zhCN ]] tL["Font"] = "字体"
--[[ zhCN ]] tL["Sets the font for guild text"] = "设定公会名称文字的字体"
--[[ zhCN ]] tL["Font Size"] = "字号"
--[[ zhCN ]] tL["Sets the font height of the guild text"] = "设定公会名称文字的字号"
--[[ zhCN ]] tL["Font Shadow"] = "字体阴影"
--[[ zhCN ]] tL["Show font shadow on guild text"] = "显示公会名称文字的字体阴影"
--[[ zhCN ]] tL["Outline"] = "轮廓"
--[[ zhCN ]] tL["Sets the outline for guild text"] = "设定公会名称文字的轮廓"
 
--[[ zhCN ]] tL["Position"] = "位置"
--[[ zhCN ]] tL["Adjust guild text position"] = "调整设定公会名称文字的位置"
--[[ zhCN ]] tL["Anchor"] = "锚点"
--[[ zhCN ]] tL["Sets the anchor for the guild text"] = "设定公会名称文字的锚点"
--[[ zhCN ]] tL["Anchor To"] = "固定在"
--[[ zhCN ]] tL["Sets the relative point on the health bar to anchor the guild text"] = "设定公会名称文字的固定在生命值显示条的相对位置"
--[[ zhCN ]] tL["X Offset"] = "X轴偏移"
--[[ zhCN ]] tL["X offset of the guild text"] = "公会名称文字的X轴偏移量"
--[[ zhCN ]] tL["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] tL["Y offset of the guild text"] = "公会名称文字的Y轴偏移量"
--[[ zhCN ]] tL["Alpha"] = "透明度"
--[[ zhCN ]] tL["Sets the alpha of the guild text"] = "设定公会名称文字的透明度"
--[[ zhCN ]] tL["Color"] = "颜色"
--[[ zhCN ]] tL["Sets the guild text color"] = "设定公会名称文字的颜色"
 
--[[ zhCN ]] tL["None"] = "无"
--[[ zhCN ]] tL["Normal"] = "正常"
--[[ zhCN ]] tL["Thick"] = "粗"
 
--[[ zhCN ]] tL["NoSetShortName"] = "|cffff0000要设定公会简称,你首先需要一个目标|r"
--[[ zhCN ]] tL["ShortNameAdded"] = "增加: |cff00ff00%s|r -> |cff00ff00%s|r"
 
--[[ zhCN ]] tL["Advanced"] = "高级"
--[[ zhCN ]] tL["Options for expert users"] = "高级设置"
--[[ zhCN ]] tL["Format"] = "格式"
--[[ zhCN ]] tL["Guild tag"] = "公会标签"
--[[ zhCN ]] tL["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] tL["TOPLEFT"] = "左上"
--[[ zhCN ]] tL["TOP"] = "上"
--[[ zhCN ]] tL["TOPRIGHT"] = "右上"
--[[ zhCN ]] tL["LEFT"] = "å·¦"
--[[ zhCN ]] tL["CENTER"] = "中"
--[[ zhCN ]] tL["RIGHT"] = "右"
--[[ zhCN ]] tL["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] tL["BOTTOM"] = "下"
--[[ zhCN ]] tL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] oL["Reset Short Guilds"] = "重置公会简称"
--[[ zhCN ]] oL["Empties the custom short guild database"] = "清空公会简称的信息库。"
 
--[[ zhCN ]] oL["You are about to empty your guild short name database.\nThis action cannot be undone. Proceed?"] = "你是否真要清空公会简称信息库?"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftGuild"] = "公会"
--[[ zhCN ]] mL["Gather and display player guild names on nameplates"] = "在姓名板上显示玩家的公会名"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] dL["Save Guild Data"] = "儲存公會資料"
--[[ zhTW ]] dL["Stores guild information between sessions"] = "儲存公會資料"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] tL["Guild Text"] = "公會文字"
--[[ zhTW ]] tL["Guild text options"] = "公會文字選項"
--[[ zhTW ]] tL["Enable"] = "啟用"
--[[ zhTW ]] tL["Show guild information on nameplates"] = "在名牌顯示公會資訊"
 
--[[ zhTW ]] tL["Attach to Name"] = "依附名字"
--[[ zhTW ]] tL["Attaches guild text to name"] = "公會文字依附名字"
--[[ zhTW ]] tL["Attach Format"] = "依附格式"
--[[ zhTW ]] tL["Selects the text format to use"] = "選擇文字格式"
 
--[[ zhTW ]] tL["HYPHEN"] = "名字 - 公會"
--[[ zhTW ]] tL["SLASH"] = "名字 / 公會"
--[[ zhTW ]] tL["BRACKET"] = "名字 (公會)"
--[[ zhTW ]] tL["COLON"] = "名字 : 公會"
 
--[[ zhTW ]] tL["Short"] = "簡短"
--[[ zhTW ]] tL["Use short guild names"] = "使用簡短公會名字"
--[[ zhTW ]] tL["Set Short Name"] = "設定簡短公會名字"
--[[ zhTW ]] tL["<Any String>"] = "<任何文字>"
--[[ zhTW ]] tL["Sets the short name for your current target"] = "設定目前目標的簡短公會名字"
--[[ zhTW ]] tL["Show Own"] = "設定自己"
--[[ zhTW ]] tL["Show the guild names of your own guild members"] = "設定自己的簡短公會名字"
 
--[[ zhTW ]] tL["Typeface"] = "字體"
--[[ zhTW ]] tL["Guild text typeface options"] = "公會文字字體選項"
--[[ zhTW ]] tL["Font"] = "字型"
--[[ zhTW ]] tL["Sets the font for guild text"] = "公會文字字型"
--[[ zhTW ]] tL["Font Size"] = "字型大小"
--[[ zhTW ]] tL["Sets the font height of the guild text"] = "公會文字字型大小"
--[[ zhTW ]] tL["Font Shadow"] = "字型陰影"
--[[ zhTW ]] tL["Show font shadow on guild text"] = "公會文字字型陰影"
--[[ zhTW ]] tL["Outline"] = "輪廓"
--[[ zhTW ]] tL["Sets the outline for guild text"] = "公會文字字型輪廓"
 
--[[ zhTW ]] tL["Position"] = "位置"
--[[ zhTW ]] tL["Adjust guild text position"] = "公會文字位置"
--[[ zhTW ]] tL["Anchor"] = "定位點"
--[[ zhTW ]] tL["Sets the anchor for the guild text"] = "公會文字定位點"
--[[ zhTW ]] tL["Anchor To"] = "固定在"
--[[ zhTW ]] tL["Sets the relative point on the health bar to anchor the guild text"] = "公會文字固定在生命力條的位置"
--[[ zhTW ]] tL["X Offset"] = "X位移"
--[[ zhTW ]] tL["X offset of the guild text"] = "公會文字X位移"
--[[ zhTW ]] tL["Y Offset"] = "Y位移"
--[[ zhTW ]] tL["Y offset of the guild text"] = "公會文字Y位移"
--[[ zhTW ]] tL["Alpha"] = "透明度"
--[[ zhTW ]] tL["Sets the alpha of the guild text"] = "公會文字透明度"
--[[ zhTW ]] tL["Color"] = "顏色"
--[[ zhTW ]] tL["Sets the guild text color"] = "公會文字顏色"
 
--[[ zhTW ]] tL["None"] = "無"
--[[ zhTW ]] tL["Normal"] = "正常"
--[[ zhTW ]] tL["Thick"] = "粗"
 
--[[ zhTW ]] tL["NoSetShortName"] = "|cffff0000你需要一個目標設定簡短公會名字|r"
--[[ zhTW ]] tL["ShortNameAdded"] = "增加: |cff00ff00%s|r -> |cff00ff00%s|r"
 
--[[ zhTW ]] tL["Advanced"] = "進階"
--[[ zhTW ]] tL["Options for expert users"] = "進階選項"
--[[ zhTW ]] tL["Format"] = "格式"
--[[ zhTW ]] tL["Guild tag"] = "公會標籤"
--[[ zhTW ]] tL["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] tL["TOPLEFT"] = "左上"
--[[ zhTW ]] tL["TOP"] = "上"
--[[ zhTW ]] tL["TOPRIGHT"] = "右上"
--[[ zhTW ]] tL["LEFT"] = "å·¦"
--[[ zhTW ]] tL["CENTER"] = "中"
--[[ zhTW ]] tL["RIGHT"] = "右"
--[[ zhTW ]] tL["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] tL["BOTTOM"] = "下"
--[[ zhTW ]] tL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] oL["Reset Short Guilds"] = "重設簡短公會名字"
--[[ zhTW ]] oL["Empties the custom short guild database"] = "清空簡短公會名字資料庫"
 
--[[ zhTW ]] oL["You are about to empty your guild short name database.\nThis action cannot be undone. Proceed?"] = "你是否真的清空簡短公會名字資料庫?"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftGuild"] = "公會"
--[[ zhTW ]] mL["Gather and display player guild names on nameplates"] = "在名牌上顯示玩家的公會名"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftGuildDataOptions = setmetatable(dL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
dL = nil
 
AloftLocale.AloftGuildTextOptions = setmetatable(tL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
tL = nil
 
AloftLocale.AloftShortGuildDataOptions = setmetatable(oL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
oL = nil
 
-----------------------------------------------------------------------------
 
end)
 
AloftOptions/AloftGuild/AloftGuildTextOptions.lua New file
0,0 → 1,316
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftGuild", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftGuildTextOptions
if not L then return end
 
local AloftGuildText = Aloft:GetModule("GuildText", true)
if not AloftGuildText then return end
 
local AloftNameText = Aloft:GetModule("NameText", true) -- always enabled
if not AloftNameText then return end -- always enabled
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
local attachFormats =
{
["HYPHEN"] = { "[Guild:Prefix(\" - \"):HideGuild]", "[ShortGuild:Prefix(\" - \"):HideGuild]", "[Guild:Prefix(\" - \")]", "[ShortGuild:Prefix(\" - \")]" },
["BRACKET"] = { "[Guild:HideGuild:Surround(\" (\", \")\")]", "[ShortGuild:HideGuild:Surround(\" (\", \")\")]", "[Guild:Surround(\" (\", \")\")]", "[ShortGuild:Surround(\" (\", \")\")]" },
["SLASH"] = { "[Guild:Prefix(\" / \"):HideGuild]", "[ShortGuild:Prefix(\" / \"):HideGuild]", "[Guild:Prefix(\" / \")]", "[ShortGuild:Prefix(\" / \")]" },
["COLON"] = { "[Guild:Prefix(\" : \"):HideGuild]", "[ShortGuild:Prefix(\" : \"):HideGuild]", "[Guild:Prefix(\" : \")]", "[ShortGuild:Prefix(\" : \")]" },
}
 
local formats = { "[Guild:HideGuild]", "[ShortGuild:HideGuild]", "[Guild]", "[ShortGuild]" }
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.guildText =
{
type = 'group',
name = L["Guild Text"],
desc = L["Guild text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftGuildText:IsEnabled() or not AloftGuildText.db or not AloftGuildText.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show guild information on nameplates"],
get = function(i) return AloftGuildText.db.profile.enable end,
set = function(i, v) AloftGuildText.db.profile.enable = v AloftGuildText:UpdateAttachedText() Aloft:DetermineDataSources() AloftGuildText:UpdateAll() AloftNameText:UpdateAll() end,
order = 1
},
attachToName =
{
type = 'toggle',
width = 'full',
name = L["Attach to Name"],
desc = L["Attaches guild text to name"],
disabled = function(i) return not AloftGuildText.db.profile.enable end,
get = function(i) return AloftGuildText.db.profile.attachToName end,
set = function(i, v) AloftGuildText.db.profile.attachToName = v AloftGuildText:UpdateAttachedText() Aloft:DetermineDataSources() AloftGuildText:UpdateAll() AloftNameText:UpdateAll() end,
order = 2
},
attachFormat =
{
type = 'select',
width = 'full',
name = L["Attach Format"],
desc = L["Selects the text format to use"],
disabled = function(i) return not AloftGuildText.db.profile.enable or not AloftGuildText.db.profile.attachToName end,
get = function(i) return AloftGuildText.db.profile.attachFormat end,
set = function(i, v) AloftGuildText.db.profile.attachFormat = v AloftGuildText:UpdateAttachedText() Aloft:DetermineDataSources() AloftGuildText:UpdateAll() AloftNameText:UpdateAll() end,
values = { HYPHEN = L["HYPHEN"], SLASH = L["SLASH"], BRACKET = L["BRACKET"], COLON = L["COLON"] },
order = 3
},
short =
{
type = 'toggle',
width = 'full',
name = L["Short"],
desc = L["Use short guild names"],
disabled = function(i) return not AloftGuildText.db.profile.enable end,
get = function(i) return AloftGuildText.db.profile.useShort end,
set = function(i, v) AloftGuildText.db.profile.useShort = v AloftGuildText:UpdateAttachedText() Aloft:DetermineDataSources() AloftGuildText:UpdateAll() AloftNameText:UpdateAll() end,
order = 4
},
setShort =
{
type = 'input',
width = 'full',
name = L["Set Short Name"],
desc = L["Sets the short name for your current target"],
usage = L["<Any String>"],
disabled = function(i) return not AloftGuildText.db.profile.enable or not AloftGuildText.db.profile.useShort end,
get = function(i) return "" end,
set = function(i, v)
if UnitExists("target") then
local targetGuild = GetGuildInfo("target") or ""
Aloft:GetModule("ShortGuildData"):AddData(targetGuild, v)
Aloft:Print(string.format(L["ShortNameAdded"], targetGuild, v))
else
Aloft:Print(L["NoSetShortName"])
end
end,
order = 5
},
showOwn =
{
type = 'toggle',
width = 'full',
name = L["Show Own"],
desc = L["Show the guild names of your own guild members"],
disabled = function(i) return not AloftGuildText.db.profile.enable end,
get = function(i) return AloftGuildText.db.profile.showOwn end,
set = function(i, v) AloftGuildText.db.profile.showOwn = v AloftGuildText:UpdateAttachedText() Aloft:DetermineDataSources() AloftGuildText:UpdateAll() AloftNameText:UpdateAll() end,
order = 6
},
typeface =
{
type = "group",
name = L["Typeface"],
desc = L["Guild text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftGuildText:IsEnabled() or not AloftGuildText.db or not AloftGuildText.db.profile or not AloftGuildText.db.profile.enable or AloftGuildText.db.profile.attachToName end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for guild text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.guildText.args.typeface.args.font.values) do
if v == AloftGuildText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftGuildText.db.profile.font = Aloft.Options.args.guildText.args.typeface.args.font.values[v]
AloftGuildText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the guild text"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftGuildText.db.profile.fontSize end,
set = function(i, value) AloftGuildText.db.profile.fontSize = value AloftGuildText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on guild text"],
get = function(i) return AloftGuildText.db.profile.shadow end,
set = function(i, v) AloftGuildText.db.profile.shadow = v AloftGuildText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the outline for guild text"],
get = function(i) return AloftGuildText.db.profile.outline end,
set = function(i, value) AloftGuildText.db.profile.outline = value AloftGuildText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust guild text position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftGuildText:IsEnabled() or not AloftGuildText.db or not AloftGuildText.db.profile or not AloftGuildText.db.profile.enable or AloftGuildText.db.profile.attachToName end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the guild text"],
get = function(i) return AloftGuildText.db.profile.point end,
set = function(i, v) AloftGuildText.db.profile.point = v AloftGuildText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the guild text"],
get = function(i) return AloftGuildText.db.profile.relativeToPoint end,
set = function(i, v) AloftGuildText.db.profile.relativeToPoint = v AloftGuildText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the guild text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftGuildText.db.profile.offsetX end,
set = function(i, v) AloftGuildText.db.profile.offsetX = v AloftGuildText:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the guild text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftGuildText.db.profile.offsetY end,
set = function(i, v) AloftGuildText.db.profile.offsetY = v AloftGuildText:UpdateAll() end
},
},
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the alpha of the guild text"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftGuildText.db.profile.enable or AloftGuildText.db.profile.attachToName end,
get = function(i) return AloftGuildText.db.profile.alpha end,
set = function(i, v) AloftGuildText.db.profile.alpha = v AloftGuildText:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the guild text color"],
disabled = function(i) return not AloftGuildText.db.profile.enable or AloftGuildText.db.profile.attachToName end,
get = function(i) return unpack(AloftGuildText.db.profile.color) end,
set = function(i, r, g, b, a) AloftGuildText.db.profile.color = { r, g, b, a } AloftGuildText:UpdateAll() end,
},
advanced =
{
type = 'group',
width = 'full',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftGuildText:IsEnabled() or not AloftGuildText.db or not AloftGuildText.db.profile or not AloftGuildText.db.profile.enable or AloftGuildText.db.profile.attachToName end,
args =
{
format =
{
type = 'input',
width = 'full',
name = L["Format"],
desc = L["Guild tag"],
usage = L["<Any tag string>"],
get = function(i) return Aloft:HighlightTagSyntax(AloftGuildText.db.profile.format) end,
set = function(i, v)
AloftGuildText.db.profile.format = Aloft:FixTagCasing(v)
AloftGuildText.textMethodData = nil
AloftGuildText.textMethod = nil
Aloft:DetermineDataSources()
AloftGuildText:UpdateAll()
end,
}
},
},
},
}
 
-----------------------------------------------------------------------------
 
function AloftGuildText:GetAttachFormatIndex()
local attachFormatIndex = 1
if self.db.profile.useShort then attachFormatIndex = 2 end
if self.db.profile.showOwn then attachFormatIndex = attachFormatIndex+2 end
return attachFormatIndex
end
 
function AloftGuildText:UpdateAttachedText()
self.db.profile.format = formats[self:GetAttachFormatIndex()]
self.textMethodData = nil
self.textMethod = nil
AloftNameText:UpdateFormatTag()
end
 
-----------------------------------------------------------------------------
 
function AloftGuildText:NameTextTagModifier()
if not self.db.profile.enable or not self.db.profile.attachToName then return end
AloftNameText.db.profile.format = AloftNameText.db.profile.format .. attachFormats[self.db.profile.attachFormat][self:GetAttachFormatIndex()]
end
 
AloftNameText:RegisterFormatTagModifier(1, AloftGuildText.NameTextTagModifier, AloftGuildText)
 
-----------------------------------------------------------------------------
 
end)
 
AloftOptions/AloftGuild/AloftGuildModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftGuild =
{
type = 'toggle',
width = 'full',
name = L["AloftGuild"],
desc = L["Gather and display player guild names on nameplates"],
get = function(i) return AloftModules.db.profile.AloftGuild end,
set = function(i, v) AloftModules.db.profile.AloftGuild = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftCreatureTypeData/AloftCreatureTypeDataOptions.lua New file
0,0 → 1,27
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCreatureTypeDataOptions
if not L then return end
 
local AloftCreatureTypeData = Aloft:GetModule("CreatureTypeData", true)
if not AloftCreatureTypeData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.creatureType =
{
type = 'toggle',
width = 'full',
name = L["Save Creature Type Data"],
desc = L["Stores creature type information between sessions"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCreatureTypeData:IsEnabled() or not AloftCreatureTypeData.db or not AloftCreatureTypeData.db.profile end,
get = function(i) return AloftCreatureTypeData.db.profile.save end,
set = AloftCreatureTypeData.SetSaveData
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftCreatureTypeData/AloftCreatureTypeDataLocale.lua New file
0,0 → 1,62
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local oL = { }
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] oL["Save Creature Type Data"] = "Save Creature Type Data"
--[[ enUS ]] oL["Stores creature type information between sessions"] = "Stores creature type information between sessions"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] oL["Save Creature Type Data"] = "몹 종류 데이터를 저장합니다."
--[[ koKR ]] oL["Stores creature type information between sessions"] = "접속 간 몹 종류 정보를 저장합니다."
 
-----------------------------------------------------------------------------
 
elseif (GetLocale() == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] oL["Save Creature Type Data"] = "Записать данные о типах существ"
--[[ ruRU ]] oL["Stores creature type information between sessions"] = "Сохранять данные о типах существ между сессиями"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] oL["Save Creature Type Data"] = "保存生物类型资料"
--[[ zhCN ]] oL["Stores creature type information between sessions"] = "在每次连接之间保存生物类型数据"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] oL["Save Creature Type Data"] = "存儲生物類別訊息"
--[[ zhTW ]] oL["Stores creature type information between sessions"] = "在兩次登錄間隔儲存生物類型信息"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCreatureTypeDataOptions = setmetatable(oL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
oL = nil
AloftOptions/AloftHighlight/AloftHighlightOptions.lua New file
0,0 → 1,70
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftHighlight
if not L then return end
 
local AloftHighlight = Aloft:GetModule("Highlight", true)
if not AloftHighlight then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.healthBar.args.highlight =
{
type = 'group',
name = L["Highlight"],
desc = L["Mouseover highlight options"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftHighlight:IsEnabled() or not AloftHighlight.db or not AloftHighlight.db.profile end,
args =
{
color =
{
type = 'color',
width = "full",
name = L["Color"],
desc = L["Sets the highlight color"],
get = function(i) return unpack(AloftHighlight.db.profile.color) end,
set = function(i, r, g, b, a) AloftHighlight.db.profile.color = { r, g, b, a } AloftHighlight:UpdateAll() end,
hasAlpha = true
},
texture =
{
type = "select",
width = "full",
name = L["Texture"],
desc = L["Sets the highlight texture"],
get = function(i)
for k, v in pairs(Aloft.Options.args.healthBar.args.highlight.args.texture.values) do
if v == AloftHighlight.db.profile.texture then
return k
end
end
end,
set = function(i, v)
AloftHighlight.db.profile.texture = Aloft.Options.args.healthBar.args.highlight.args.texture.values[v]
Aloft:DetermineDataSources()
AloftHighlight:UpdateAll()
end,
values = SML:List("statusbar"),
},
mode =
{
type = "select",
width = "full",
name = L["Blend Mode"],
desc = L["Sets the blend mode for the highlight texture"],
get = function(i) return AloftHighlight.db.profile.blendMode end,
set = function(i, v) AloftHighlight.db.profile.blendMode = v AloftHighlight:UpdateAll() end,
values = { ["BLEND"] = L["BLEND"], ["ADD"] = L["ADD"] },
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftHighlight/AloftHighlightLocale.lua New file
0,0 → 1,109
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Highlight"] = "Highlight"
--[[ enUS ]] L["Mouseover highlight options"] = "Mouseover highlight options"
--[[ enUS ]] L["Color"] = "Color"
--[[ enUS ]] L["Sets the highlight color"] = "Sets the highlight color"
--[[ enUS ]] L["Texture"] = "Texture"
--[[ enUS ]] L["Sets the highlight texture"] = "Sets the highlight texture"
--[[ enUS ]] L["Blend Mode"] = "Blend Mode"
--[[ enUS ]] L["Sets the blend mode for the highlight texture"] = "Sets the blend mode for the highlight texture"
 
--[[ enUS ]] L["BLEND"] = "BLEND"
--[[ enUS ]] L["ADD"] = "ADD"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Highlight"] = "강조"
--[[ koKR ]] L["Mouseover highlight options"] = "마우스 오버 시 강조 설정"
--[[ koKR ]] L["Color"] = "색상"
--[[ koKR ]] L["Sets the highlight color"] = "강조 색상을 설정합니다."
--[[ koKR ]] L["Texture"] = "텍스쳐"
--[[ koKR ]] L["Sets the highlight texture"] = "강조 텍스쳐를 설정합니다."
--[[ koKR ]] L["Blend Mode"] = "혼합 모드"
--[[ koKR ]] L["Sets the blend mode for the highlight texture"] = "강조 텍스쳐에 혼합 모드를 설정합니다."
 
--[[ koKR ]] L["BLEND"] = "혼합"
--[[ koKR ]] L["ADD"] = "추가"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Highlight"] = "Подсветка"
--[[ ruRU ]] L["Mouseover highlight options"] = "Настроки подсветки для цели под курсором"
--[[ ruRU ]] L["Color"] = "Цвет"
--[[ ruRU ]] L["Sets the highlight color"] = "Задает цвета подсветки"
--[[ ruRU ]] L["Texture"] = "Текстура"
--[[ ruRU ]] L["Sets the highlight texture"] = "Задает текстуры подсветки"
--[[ ruRU ]] L["Blend Mode"] = "Режим смешивания"
--[[ ruRU ]] L["Sets the blend mode for the highlight texture"] = "Задает режим смешения для текстуры подсветки"
 
--[[ ruRU ]] L["BLEND"] = "СМЕШИВАТЬ"
--[[ ruRU ]] L["ADD"] = "ДОБАВИТЬ"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Highlight"] = "高亮"
--[[ zhCN ]] L["Mouseover highlight options"] = "鼠标悬浮目标高亮相关设置"
--[[ zhCN ]] L["Color"] = "颜色"
--[[ zhCN ]] L["Sets the highlight color"] = "设定高亮的颜色"
--[[ zhCN ]] L["Texture"] = "材质"
--[[ zhCN ]] L["Sets the highlight texture"] = "设定高亮的材质"
--[[ zhCN ]] L["Blend Mode"] = "渲染模式"
--[[ zhCN ]] L["Sets the blend mode for the highlight texture"] = "设定高亮的材质渲染模式"
 
--[[ zhCN ]] L["BLEND"] = "渲染"
--[[ zhCN ]] L["ADD"] = "增加"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Highlight"] = "高亮"
--[[ zhTW ]] L["Mouseover highlight options"] = "滑鼠目標高亮選項"
--[[ zhTW ]] L["Color"] = "顏色"
--[[ zhTW ]] L["Sets the highlight color"] = "高亮的顏色"
--[[ zhTW ]] L["Texture"] = "紋理"
--[[ zhTW ]] L["Sets the highlight texture"] = "高亮的紋理"
--[[ zhTW ]] L["Blend Mode"] = "交融模式"
--[[ zhTW ]] L["Sets the blend mode for the highlight texture"] = "高亮的紋理的交融模式"
 
--[[ zhTW ]] L["BLEND"] = "混合"
--[[ zhTW ]] L["ADD"] = "增加"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftHighlight = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
\ No newline at end of file
AloftOptions/AloftGlow/AloftGlowOptions.lua New file
0,0 → 1,303
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftGlow
if not L then return end
 
local AloftGlow = Aloft:GetModule("Glow")
if not AloftGlow then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.glow =
{
type = 'group',
name = L["Nameplate Glow"],
desc = L["Health bar will be highlighted when unit is attacking player"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftGlow:IsEnabled() or not AloftGlow.db or not AloftGlow.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enable glow"],
order = 1,
get = function(i) return AloftGlow.db.profile.enable end,
set = function(i, v) AloftGlow.db.profile.enable = v AloftGlow:UpdateAll() end,
},
healthbar =
{
type = 'toggle',
width = 'full',
name = L["Use Health Bar"],
desc = L["Indicate aggro status via health bar color (instead of glow)"],
order = 2,
disabled = function(i) return not AloftGlow.db.profile.enable end,
get = function(i) return AloftGlow.db.profile.healthbar end,
set = function(i, v) AloftGlow.db.profile.healthbar = v AloftGlow:UpdateAll() end,
},
invert =
{
type = 'toggle',
width = 'full',
name = L["Invert"],
desc = L["Invert glow (disable on targets with aggro, enable on targets without aggro)"],
order = 3,
disabled = function(i) return not AloftGlow.db.profile.enable end,
get = function(i) return AloftGlow.db.profile.invert end,
set = function(i, v) AloftGlow.db.profile.invert = v AloftGlow:UpdateAll() end,
},
combatOnly =
{
type = 'toggle',
width = 'full',
name = L["Invert Only In Combat"],
desc = L["Display inverted glow only while in combat"],
order = 4,
disabled = function(i) return not AloftGlow.db.profile.enable or not AloftGlow.db.profile.invert end,
get = function(i) return AloftGlow.db.profile.combatOnly end,
set = function(i, v) AloftGlow.db.profile.combatOnly = v AloftGlow:UpdateAll() end,
},
invertTankOnly =
{
type = 'toggle',
width = 'full',
name = L["Invert Only While Tanking"],
desc = L["Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"],
order = 5,
disabled = function(i) return not AloftGlow.db.profile.enable or not AloftGlow.db.profile.invert end,
get = function(i) return AloftGlow.db.profile.invertTankOnly end,
set = function(i, v) AloftGlow.db.profile.invertTankOnly = v AloftGlow:UpdateAll() end,
},
explicit =
{
type = 'toggle',
width = 'full',
name = L["Explicit Low Threat Indicator"],
desc = L["Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"],
order = 6,
disabled = function(i) return not AloftGlow.db.profile.enable or not AloftGlow.db.profile.override end,
get = function(i) return AloftGlow.db.profile.explicit end,
set = function(i, v) AloftGlow.db.profile.explicit = v AloftGlow:UpdateAll() end,
},
explicitCombatOnly =
{
type = 'toggle',
width = 'full',
name = L["Explicit Low Threat Indicator Only In Combat"],
desc = L["Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"],
order = 7,
disabled = function(i) return not AloftGlow.db.profile.enable or not AloftGlow.db.profile.override or not AloftGlow.db.profile.explicit end,
get = function(i) return AloftGlow.db.profile.explicitCombatOnly end,
set = function(i, v) AloftGlow.db.profile.explicitCombatOnly = v AloftGlow:UpdateAll() end,
},
recentlyDamagedOnly =
{
type = 'toggle',
width = 'full',
name = L["Recently Damaged Only"],
desc = L["Treat the player as 'in combat' only with 'recently damaged' targets"],
order = 8,
disabled = function(i) return not AloftGlow.db.profile.enable or not Aloft:GetModule("RecentlyDamagedData", true) or not Aloft:GetModule("RecentlyDamagedData"):IsEnabled() end,
get = function(i) return AloftGlow.db.profile.recentlyDamagedOnly end,
set = function(i, v) AloftGlow.db.profile.recentlyDamagedOnly = v AloftGlow:RegisterEvents() AloftGlow:UpdateAll() end,
},
interval =
{
type = 'range',
width = 'full',
name = L["Glow Update Interval"],
desc = L["The amount of time, in seconds, between glow updates (0.0 is as fast as possible)"],
order = 9,
min = 0.0,
max = 5.0,
step = 0.01,
disabled = function(i) return not AloftGlow.db.profile.enable end,
get = function(i) return AloftGlow.db.profile.interval end,
set = function(i, v) AloftGlow.db.profile.interval = v AloftGlow:UpdateAll() end,
},
override =
{
type = 'toggle',
width = 'full',
name = L["Override Color"],
desc = L["Overrides the glow default color(s)"],
order = 10,
disabled = function(i) return not AloftGlow.db.profile.enable end,
get = function(i) return AloftGlow.db.profile.override end,
set = function(i, v) AloftGlow.db.profile.override = v AloftGlow:UpdateAll() end,
},
threatStatusColors =
{
type = 'group',
name = L["Threat Status Colors"],
desc = L["Customize nameplate glow threat status colors"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftGlow:IsEnabled() or not AloftGlow.db or not AloftGlow.db.profile or not (AloftGlow.db.profile.enable and AloftGlow.db.profile.override) end,
order = 11,
args =
{
noAggro =
{
type = 'color',
width = 'full',
name = L["Low Threat"],
desc = L["Low Threat"],
order = 1,
disabled = function(i) return not AloftGlow.db.profile.explicit end,
get = function(i) return unpack(AloftGlow.db.profile.threatStatusColors[0]) end,
set = function(i, r, g, b) AloftGlow.db.profile.threatStatusColors[0] = { r, g, b, 1.0, } AloftGlow:UpdateAll() end
},
overNuking =
{
type = 'color',
width = 'full',
name = L["Over-Nuking"],
desc = L["Over-Nuking"],
order = 2,
get = function(i) return unpack(AloftGlow.db.profile.threatStatusColors[1]) end,
set = function(i, r, g, b) AloftGlow.db.profile.threatStatusColors[1] = { r, g, b, 1.0, } AloftGlow:UpdateAll() end
},
losingThreat =
{
type = 'color',
width = 'full',
name = L["Losing Threat"],
desc = L["Losing Threat"],
order = 3,
get = function(i) return unpack(AloftGlow.db.profile.threatStatusColors[2]) end,
set = function(i, r, g, b) AloftGlow.db.profile.threatStatusColors[2] = { r, g, b, 1.0, } AloftGlow:UpdateAll() end
},
tankingSecurely =
{
type = 'color',
width = 'full',
name = L["Tanking Securely"],
desc = L["Tanking Securely"],
order = 4,
get = function(i) return unpack(AloftGlow.db.profile.threatStatusColors[3]) end,
set = function(i, r, g, b) AloftGlow.db.profile.threatStatusColors[3] = { r, g, b, 1.0, } AloftGlow:UpdateAll() end
},
},
},
style =
{
type = "select",
width = 'full',
name = L["Style"],
desc = L["Sets the glow style"],
order = 12,
disabled = function(i) return not AloftGlow.db.profile.enable or AloftGlow.db.profile.healthbar end,
get = function(i)
for k, v in pairs(Aloft.Options.args.glow.args.style.values) do
if v == AloftGlow.db.profile.style then
return k
end
end
end,
set = function(i, v)
AloftGlow.db.profile.style = Aloft.Options.args.glow.args.style.values[v]
AloftGlow:UpdateAll()
end,
values = SML:List("glow"),
},
size =
{
type = 'group',
name = L["Size"],
desc = L["Adjust glow size"],
disabled = function(i) return not AloftGlow.db.profile.enable or AloftGlow.db.profile.healthbar end,
disabled = function(i) return not Aloft:IsEnabled() or not AloftGlow:IsEnabled() or not AloftGlow.db or not AloftGlow.db.profile or not AloftGlow.db.profile.enable or AloftGlow.db.profile.healthbar end,
order = 13,
args =
{
width =
{
type = 'range',
width = 'full',
name = L["Width"],
desc = L["Sets the width of the glow"],
order = 1,
min = 32,
max = 768,
step = 1,
get = function(i) return AloftGlow.db.profile.width end,
set = function(i, v) AloftGlow.db.profile.width = v AloftGlow:UpdateAll() end,
},
height =
{
type = 'range',
width = 'full',
name = L["Height"],
desc = L["Sets the height of the glow"],
order = 2,
min = 4,
max = 256,
step = 1,
get = function(i) return AloftGlow.db.profile.height end,
set = function(i, v) AloftGlow.db.profile.height = v AloftGlow:UpdateAll() end,
},
}
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust the glow position"],
order = 14,
disabled = function(i) return not Aloft:IsEnabled() or not AloftGlow:IsEnabled() or not AloftGlow.db or not AloftGlow.db.profile or not AloftGlow.db.profile.enable or AloftGlow.db.profile.healthbar end,
args =
{
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the glow"],
order = 1,
min = -32,
max = 32,
step = 1,
get = function(i) return AloftGlow.db.profile.offsetX end,
set = function(i, v) AloftGlow.db.profile.offsetX = v AloftGlow:UpdateAll() end,
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the glow"],
order = 2,
min = -32,
max = 32,
step = 1,
get = function(i) return AloftGlow.db.profile.offsetY end,
set = function(i, v) AloftGlow.db.profile.offsetY = v AloftGlow:UpdateAll() end,
},
},
},
mode =
{
type = "select",
width = 'full',
name = L["Blend Mode"],
desc = L["Sets the glow blend mode"],
order = 15,
get = function(i) return AloftGlow.db.profile.blendMode end,
set = function(i, v) AloftGlow.db.profile.blendMode = v AloftGlow:UpdateAll() end,
disabled = function(i) return not AloftGlow.db.profile.enable or AloftGlow.db.profile.healthbar end,
values = { ["BLEND"] = L["BLEND"], ["ADD"] = L["ADD"] },
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftGlow/AloftGlowLocale.lua New file
0,0 → 1,379
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Nameplate Glow"] = "Nameplate Glow"
--[[ enUS ]] L["Health bar will be highlighted when unit is attacking player"] = "Health bar will be highlighted when unit is attacking player"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Enable glow"] = "Enable glow"
--[[ enUS ]] L["Invert"] = "Invert"
--[[ enUS ]] L["Invert glow (disable on targets with aggro, enable on targets without aggro)"] = "Invert glow (disable on targets with aggro, enable on targets without aggro)"
--[[ enUS ]] L["Invert Only In Combat"] = "Invert Only In Combat"
--[[ enUS ]] L["Display inverted glow only while in combat"] = "Display inverted glow only while in combat"
--[[ enUS ]] L["Glow Update Interval"] = "Glow Update Interval"
--[[ enUS ]] L["The amount of time, in seconds, between glow updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between glow updates (0.0 is as fast as possible)"
--[[ enUS ]] L["Use Health Bar"] = "Use Health Bar"
--[[ enUS ]] L["Indicate aggro status via health bar color (instead of glow)"] = "Indicate aggro status via health bar color (instead of glow)"
--[[ enUS ]] L["Explicit Low Threat Indicator"] = "Explicit Low Threat Indicator"
--[[ enUS ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"
 
--[[ enUS ]] L["Explicit Low Threat Indicator Only In Combat"] = "Explicit Low Threat Indicator Only In Combat"
--[[ enUS ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"
--[[ enUS ]] L["Invert Only While Tanking"] = "Invert Only While Tanking"
--[[ enUS ]] L["Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"] = "Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"
--[[ enUS ]] L["Recently Damaged Only"] = "Recently Damaged Only"
--[[ enUS ]] L["Treat the player as 'in combat' only with 'recently damaged' targets"] = "Treat the player as 'in combat' only with 'recently damaged' targets"
 
--[[ enUS ]] L["Size"] = "Size"
--[[ enUS ]] L["Adjust glow size"] = "Adjust glow size"
--[[ enUS ]] L["Width"] = "Width"
--[[ enUS ]] L["Sets the width of the glow"] = "Sets the width of the glow"
--[[ enUS ]] L["Height"] = "Height"
--[[ enUS ]] L["Sets the height of the glow"] = "Sets the height of the glow"
 
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust the glow position"] = "Adjust the glow position"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the glow"] = "X offset of the glow"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the glow"] = "Y offset of the glow"
 
--[[ enUS ]] L["Style"] = "Style"
--[[ enUS ]] L["Sets the glow style"] = "Sets the glow style"
--[[ enUS ]] L["Override Color"] = "Override Color"
--[[ enUS ]] L["Overrides the glow default color(s)"] = "Overrides the glow default color(s)"
--[[ enUS ]] L["Color"] = "Color"
--[[ enUS ]] L["Sets the glow color"] = "Sets the glow color"
--[[ enUS ]] L["Blend Mode"] = "Blend Mode"
--[[ enUS ]] L["Sets the glow blend mode"] = "Sets the glow blend mode"
 
--[[ enUS ]] L["BLEND"] = "BLEND"
--[[ enUS ]] L["ADD"] = "ADD"
 
--[[ enUS ]] L["HARD"] = "HARD"
--[[ enUS ]] L["SOFT"] = "SOFT"
--[[ enUS ]] L["PRTLSOFT"]= "PRTLSOFT"
--[[ enUS ]] L["THRQTRSOFT"] = "THRQTRSOFT"
--[[ enUS ]] L["EXTRASOFT"] = "EXTRASOFT"
--[[ enUS ]] L["OVAL"] = "OVAL"
--[[ enUS ]] L["OVALGLOW"] = "OVALGLOW"
--[[ enUS ]] L["SQUAREGLOW"] = "SQUAREGLOW"
--[[ enUS ]] L["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ enUS ]] L["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
--[[ enUS ]] L["Threat Status Colors"] = "Threat Status Colors"
--[[ enUS ]] L["Customize nameplate glow threat status colors"] = "Customize nameplate glow threat status colors"
--[[ enUS ]] L["Low Threat"] = "Low Threat"
--[[ enUS ]] L["Over-Nuking"] = "Over-Nuking"
--[[ enUS ]] L["Losing Threat"] = "Losing Threat"
--[[ enUS ]] L["Tanking Securely"] = "Tanking Securely"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Nameplate Glow"] = "Nameplate Glow"
--[[ koKR ]] L["Health bar will be highlighted when unit is attacking player"] = "Health bar will be highlighted when unit is attacking player"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Enable glow"] = "Enable glow"
--[[ koKR ]] L["Invert"] = "Invert"
--[[ koKR ]] L["Invert glow (disable on targets with aggro, enable on targets without aggro)"] = "Invert glow (disable on targets with aggro, enable on targets without aggro)"
--[[ koKR ]] L["Invert Only In Combat"] = "Invert Only In Combat"
--[[ koKR ]] L["Display inverted glow only while in combat"] = "Display inverted glow only while in combat"
--[[ koKR ]] L["Glow Update Interval"] = "Glow Update Interval"
--[[ koKR ]] L["The amount of time, in seconds, between glow updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between glow updates (0.0 is as fast as possible)"
--[[ koKR ]] L["Use Health Bar"] = "Use Health Bar"
--[[ koKR ]] L["Indicate aggro status via health bar color (instead of glow)"] = "Indicate aggro status via health bar color (instead of glow)"
--[[ koKR ]] L["Explicit Low Threat Indicator"] = "Explicit Low Threat Indicator"
--[[ koKR ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"
 
--[[ koKR ]] L["Explicit Low Threat Indicator Only In Combat"] = "Explicit Low Threat Indicator Only In Combat"
--[[ koKR ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"
--[[ koKR ]] L["Invert Only While Tanking"] = "Invert Only While Tanking"
--[[ koKR ]] L["Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"] = "Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"
--[[ koKR ]] L["Recently Damaged Only"] = "Recently Damaged Only"
--[[ koKR ]] L["Treat the player as 'in combat' only with 'recently damaged' targets"] = "Treat the player as 'in combat' only with 'recently damaged' targets"
 
--[[ koKR ]] L["Size"] = "크기"
--[[ koKR ]] L["Adjust glow size"] = "Adjust glow size"
--[[ koKR ]] L["Width"] = "너비"
--[[ koKR ]] L["Sets the width of the glow"] = "Sets the width of the glow"
--[[ koKR ]] L["Height"] = "높이"
--[[ koKR ]] L["Sets the height of the glow"] = "Sets the height of the glow"
 
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust the glow position"] = "Adjust the glow position"
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the glow"] = "X offset of the glow"
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the glow"] = "Y offset of the glow"
 
--[[ koKR ]] L["Style"] = "Style"
--[[ koKR ]] L["Sets the glow style"] = "Sets the glow style"
--[[ koKR ]] L["Override Color"] = "Override Color"
--[[ koKR ]] L["Overrides the glow default color(s)"] = "Overrides the glow default color(s)"
--[[ koKR ]] L["Color"] = "Color"
--[[ koKR ]] L["Sets the glow color"] = "Sets the glow color"
--[[ koKR ]] L["Blend Mode"] = "Blend Mode"
--[[ koKR ]] L["Sets the glow blend mode"] = "Sets the glow blend mode"
 
--[[ koKR ]] L["BLEND"] = "혼합"
--[[ koKR ]] L["ADD"] = "추가"
 
--[[ koKR ]] L["HARD"] = "HARD"
--[[ koKR ]] L["SOFT"] = "SOFT"
--[[ koKR ]] L["PRTLSOFT"] = "PRTLSOFT"
--[[ koKR ]] L["THRQTRSOFT"] = "THRQTRSOFT"
--[[ koKR ]] L["EXTRASOFT"] = "EXTRASOFT"
--[[ koKR ]] L["OVAL"] = "OVAL"
--[[ koKR ]] L["OVALGLOW"] = "OVALGLOW"
--[[ koKR ]] L["SQUAREGLOW"] = "SQUAREGLOW"
--[[ koKR ]] L["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ koKR ]] L["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
--[[ koKR ]] L["Threat Status Colors"] = "Threat Status Colors"
--[[ koKR ]] L["Customize nameplate glow threat status colors"] = "Customize nameplate glow threat status colors"
--[[ koKR ]] L["Low Threat"] = "Low Threat"
--[[ koKR ]] L["Over-Nuking"] = "Over-Nuking"
--[[ koKR ]] L["Losing Threat"] = "Losing Threat"
--[[ koKR ]] L["Tanking Securely"] = "Tanking Securely"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Nameplate Glow"] = "Свечение таблички"
--[[ ruRU ]] L["Health bar will be highlighted when unit is attacking player"] = "Полоса здоровья будет выделяться, когда персонаж/существо нападает на игрока"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Enable glow"] = "Включить свечение"
--[[ ruRU ]] L["Invert"] = "Инвертировать"
--[[ ruRU ]] L["Invert glow (disable on targets with aggro, enable on targets without aggro)"] = "Инвертировать свечение (отключить на цели с аггро, включить на цели без аггро)"
--[[ ruRU ]] L["Invert Only In Combat"] = "Инвертировать только в бою"
--[[ ruRU ]] L["Display inverted glow only while in combat"] = "Инвертировать свечение только когда вы находитесь в бою"
--[[ ruRU ]] L["Glow Update Interval"] = "Интервал обновления свечения"
--[[ ruRU ]] L["The amount of time, in seconds, between glow updates (0.0 is as fast as possible)"] = "Время в секундах между обновлениями свечения (0.0 максимальная скорость)"
--[[ ruRU ]] L["Use Health Bar"] = "Исп полосу здоровья"
--[[ ruRU ]] L["Indicate aggro status via health bar color (instead of glow)"] = "Отображение статуса аггро цветом в полосе здоровья (вместо отсвета)"
--[[ ruRU ]] L["Explicit Low Threat Indicator"] = "Индикатор низкой угрозы"
--[[ ruRU ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"] = "Показывать статус 'Мало угрозы' свечениев в цвете на табличке (или если включено 'Инвертировать', показывать статус 'Безопасное танкование')"
 
--[[ ruRU ]] L["Explicit Low Threat Indicator Only In Combat"] = "Explicit Low Threat Indicator Only In Combat"
--[[ ruRU ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"
--[[ ruRU ]] L["Invert Only While Tanking"] = "Invert Only While Tanking"
--[[ ruRU ]] L["Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"] = "Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"
--[[ ruRU ]] L["Recently Damaged Only"] = "Recently Damaged Only"
--[[ ruRU ]] L["Treat the player as 'in combat' only with 'recently damaged' targets"] = "Treat the player as 'in combat' only with 'recently damaged' targets"
 
--[[ ruRU ]] L["Size"] = "Размер"
--[[ ruRU ]] L["Adjust glow size"] = "Задать размер свечения"
--[[ ruRU ]] L["Width"] = "Ширина"
--[[ ruRU ]] L["Sets the width of the glow"] = "Задает ширину свечения"
--[[ ruRU ]] L["Height"] = "Высота"
--[[ ruRU ]] L["Sets the height of the glow"] = "Задает высоту свечения"
 
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust the glow position"] = "Задать место свечения"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the glow"] = "Смещение свечения по X"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the glow"] = "Смещение свечения по Y"
 
--[[ ruRU ]] L["Style"] = "Стиль"
--[[ ruRU ]] L["Sets the glow style"] = "Задает стиль свечения"
--[[ ruRU ]] L["Override Color"] = "Перезапись цвета"
--[[ ruRU ]] L["Overrides the glow default color(s)"] = "Перезапись цвета(ов) по умолчанию для свечения"
--[[ ruRU ]] L["Color"] = "Цвет"
--[[ ruRU ]] L["Sets the glow color"] = "Задает цвет свечения"
--[[ ruRU ]] L["Blend Mode"] = "Режим смешивания"
--[[ ruRU ]] L["Sets the glow blend mode"] = "Задает тип смешения для свечения"
 
--[[ ruRU ]] L["BLEND"] = "СМЕШИВАТЬ"
--[[ ruRU ]] L["ADD"] = "ДОБАВИТЬ"
 
--[[ ruRU ]] L["HARD"] = "СИЛЬНОЕ"
--[[ ruRU ]] L["SOFT"] = "МЯГКОЕ"
--[[ ruRU ]] L["PRTLSOFT"] = "PRTLSOFT"
--[[ ruRU ]] L["THRQTRSOFT"] = "THRQTRSOFT"
--[[ ruRU ]] L["EXTRASOFT"] = "СВЕРХМЯГКОЕ"
--[[ ruRU ]] L["OVAL"] = "ОВАЛ"
--[[ ruRU ]] L["OVALGLOW"] = "ОВАЛСВЕЧЕНИЕ"
--[[ ruRU ]] L["SQUAREGLOW"] = "КВАДРАТНОЕ СВЕЧЕНИЕ"
--[[ ruRU ]] L["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ ruRU ]] L["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
--[[ ruRU ]] L["Threat Status Colors"] = "Цвет статуса угрозы"
--[[ ruRU ]] L["Customize nameplate glow threat status colors"] = "Настройка цвета свечения статуса угрозы"
--[[ ruRU ]] L["Low Threat"] = "Мало угрозы"
--[[ ruRU ]] L["Over-Nuking"] = "Over-Nuking"
--[[ ruRU ]] L["Losing Threat"] = "Losing Threat"
--[[ ruRU ]] L["Tanking Securely"] = "Безопасное танкование"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Nameplate Glow"] = "姓名板发光"
--[[ zhCN ]] L["Health bar will be highlighted when unit is attacking player"] = "正在攻击玩家的单位的生命条会高亮显示"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Enable glow"] = "启用发光"
--[[ zhCN ]] L["Invert"] = "反向"
--[[ zhCN ]] L["Invert glow (disable on targets with aggro, enable on targets without aggro)"] = "反向发光(无仇恨目标发光,有仇恨则不发光)"
--[[ zhCN ]] L["Invert Only In Combat"] = "Invert Only In Combat"
--[[ zhCN ]] L["Display inverted glow only while in combat"] = "Display inverted glow only while in combat"
--[[ zhCN ]] L["Glow Update Interval"] = "发光更新频率"
--[[ zhCN ]] L["The amount of time, in seconds, between glow updates (0.0 is as fast as possible)"] = "两次闪光间的时间间隔(秒为单位,0为最快)"
--[[ zhCN ]] L["Use Health Bar"] = "Use Health Bar"
--[[ zhCN ]] L["Indicate aggro status via health bar color (instead of glow)"] = "Indicate aggro status via health bar color (instead of glow)"
--[[ zhCN ]] L["Explicit Low Threat Indicator"] = "Explicit Low Threat Indicator"
--[[ zhCN ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"
 
--[[ zhCN ]] L["Explicit Low Threat Indicator Only In Combat"] = "Explicit Low Threat Indicator Only In Combat"
--[[ zhCN ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"
--[[ zhCN ]] L["Invert Only While Tanking"] = "Invert Only While Tanking"
--[[ zhCN ]] L["Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"] = "Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"
--[[ zhCN ]] L["Recently Damaged Only"] = "Recently Damaged Only"
--[[ zhCN ]] L["Treat the player as 'in combat' only with 'recently damaged' targets"] = "Treat the player as 'in combat' only with 'recently damaged' targets"
 
--[[ zhCN ]] L["Size"] = "尺寸"
--[[ zhCN ]] L["Adjust glow size"] = "调整闪烁范围"
--[[ zhCN ]] L["Width"] = "宽度"
--[[ zhCN ]] L["Sets the width of the glow"] = "闪烁宽度"
--[[ zhCN ]] L["Height"] = "高度"
--[[ zhCN ]] L["Sets the height of the glow"] = "闪烁高度"
 
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust the glow position"] = "调整闪烁位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the glow"] = "闪烁横向偏移"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the glow"] = "闪烁纵向偏移"
 
--[[ zhCN ]] L["Style"] = "样式"
--[[ zhCN ]] L["Sets the glow style"] = "设置发光样式"
--[[ zhCN ]] L["Override Color"] = "强制使用颜色"
--[[ zhCN ]] L["Overrides the glow default color(s)"] = "强制使用闪光颜色"
--[[ zhCN ]] L["Color"] = "颜色"
--[[ zhCN ]] L["Sets the glow color"] = "闪光颜色"
--[[ zhCN ]] L["Blend Mode"] = "渐变模式"
--[[ zhCN ]] L["Sets the glow blend mode"] = "发光使用渐变模式"
 
--[[ zhCN ]] L["BLEND"] = "渲染"
--[[ zhCN ]] L["ADD"] = "增加"
 
--[[ zhCN ]] L["HARD"] = "软边"
--[[ zhCN ]] L["SOFT"] = "硬边"
--[[ zhCN ]] L["PRTLSOFT"] = "PRTLSOFT"
--[[ zhCN ]] L["THRQTRSOFT"] = "THRQTRSOFT"
--[[ zhCN ]] L["EXTRASOFT"] = "超软边"
--[[ zhCN ]] L["OVAL"] = "OVAL"
--[[ zhCN ]] L["OVALGLOW"] = "OVALGLOW"
--[[ zhCN ]] L["SQUAREGLOW"] = "SQUAREGLOW"
--[[ zhCN ]] L["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ zhCN ]] L["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
--[[ zhCN ]] L["Threat Status Colors"] = "Threat Status Colors"
--[[ zhCN ]] L["Customize nameplate glow threat status colors"] = "Customize nameplate glow threat status colors"
--[[ zhCN ]] L["Low Threat"] = "Low Threat"
--[[ zhCN ]] L["Over-Nuking"] = "Over-Nuking"
--[[ zhCN ]] L["Losing Threat"] = "Losing Threat"
--[[ zhCN ]] L["Tanking Securely"] = "Tanking Securely"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Nameplate Glow"] = "姓名板發光"
--[[ zhTW ]] L["Health bar will be highlighted when unit is attacking player"] = "正在攻擊玩家的單位的生命條會高亮顯示"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Enable glow"] = "啟用發光"
--[[ zhTW ]] L["Invert"] = "反向"
--[[ zhTW ]] L["Invert glow (disable on targets with aggro, enable on targets without aggro)"] = "反向發光(無仇恨目標發光,有仇恨則不發光)"
--[[ zhTW ]] L["Invert Only In Combat"] = "Invert Only In Combat"
--[[ zhTW ]] L["Display inverted glow only while in combat"] = "Display inverted glow only while in combat"
--[[ zhTW ]] L["Glow Update Interval"] = "發光更新頻率"
--[[ zhTW ]] L["The amount of time, in seconds, between glow updates (0.0 is as fast as possible)"] = "兩次閃光間的時間間隔(秒為單位,0為最快)"
--[[ zhTW ]] L["Use Health Bar"] = "Use Health Bar"
--[[ zhTW ]] L["Indicate aggro status via health bar color (instead of glow)"] = "Indicate aggro status via health bar color (instead of glow)"
--[[ zhTW ]] L["Explicit Low Threat Indicator"] = "Explicit Low Threat Indicator"
--[[ zhTW ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color (or if 'Invert' is enabled, indicate 'Securely Tanking' status explicitly)"
 
--[[ zhTW ]] L["Explicit Low Threat Indicator Only In Combat"] = "Explicit Low Threat Indicator Only In Combat"
--[[ zhTW ]] L["Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"] = "Indicate 'Low Threat' status explicitly as a glow or nameplate color only in combat"
--[[ zhTW ]] L["Invert Only While Tanking"] = "Invert Only While Tanking"
--[[ zhTW ]] L["Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"] = "Invert glow only while tanking (Warrior/Defensive Stance, Death Knight/Frost Presence, Druid/Bear Form, Paladin/Righteous Fury)"
--[[ zhTW ]] L["Recently Damaged Only"] = "Recently Damaged Only"
--[[ zhTW ]] L["Treat the player as 'in combat' only with 'recently damaged' targets"] = "Treat the player as 'in combat' only with 'recently damaged' targets"
 
--[[ zhTW ]] L["Size"] = "尺寸"
--[[ zhTW ]] L["Adjust glow size"] = "調整閃爍範圍"
--[[ zhTW ]] L["Width"] = "寬度"
--[[ zhTW ]] L["Sets the width of the glow"] = "閃爍寬度"
--[[ zhTW ]] L["Height"] = "高度"
--[[ zhTW ]] L["Sets the height of the glow"] = "閃爍高度"
 
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust the glow position"] = "調整閃爍位置"
--[[ zhTW ]] L["X Offset"] = "X軸偏移"
--[[ zhTW ]] L["X offset of the glow"] = "閃爍橫向偏移"
--[[ zhTW ]] L["Y Offset"] = "Y軸偏移"
--[[ zhTW ]] L["Y offset of the glow"] = "閃爍縱向偏移"
 
--[[ zhTW ]] L["Style"] = "樣式"
--[[ zhTW ]] L["Sets the glow style"] = "設置發光樣式"
--[[ zhTW ]] L["Override Color"] = "強制使用顏色"
--[[ zhTW ]] L["Overrides the glow default color(s)"] = "強制使用閃光顏色"
--[[ zhTW ]] L["Color"] = "顏色"
--[[ zhTW ]] L["Sets the glow color"] = "閃光顏色"
--[[ zhTW ]] L["Blend Mode"] = "漸變模式"
--[[ zhTW ]] L["Sets the glow blend mode"] = "發光使用漸變模式"
 
--[[ zhTW ]] L["BLEND"] = "渲染"
--[[ zhTW ]] L["ADD"] = "增加"
 
--[[ zhTW ]] L["HARD"] = "軟邊"
--[[ zhTW ]] L["SOFT"] = "硬邊"
--[[ zhTW ]] L["PRTLSOFT"] = "PRTLSOFT"
--[[ zhTW ]] L["THRQTRSOFT"] = "THRQTRSOFT"
--[[ zhTW ]] L["EXTRASOFT"] = "超軟邊"
--[[ zhTW ]] L["OVAL"] = "OVAL"
--[[ zhTW ]] L["OVALGLOW"] = "OVALGLOW"
--[[ zhTW ]] L["SQUAREGLOW"] = "SQUAREGLOW"
--[[ zhTW ]] L["PRTLSQUAREGLOW"] = "PRTLSQUAREGLOW"
--[[ zhTW ]] L["THRQTRSQUAREGLOW"] = "THRQTRSQUAREGLOW"
 
--[[ zhTW ]] L["Threat Status Colors"] = "Threat Status Colors"
--[[ zhTW ]] L["Customize nameplate glow threat status colors"] = "Customize nameplate glow threat status colors"
--[[ zhTW ]] L["Low Threat"] = "Low Threat"
--[[ zhTW ]] L["Over-Nuking"] = "Over-Nuking"
--[[ zhTW ]] L["Losing Threat"] = "Losing Threat"
--[[ zhTW ]] L["Tanking Securely"] = "Tanking Securely"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftGlow = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
\ No newline at end of file
AloftOptions/AloftAutoShow/AloftAutoShowModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftAutoShow =
{
type = 'toggle',
width = 'full',
name = L["AloftAutoShow"],
desc = L["Automatically show/hide nameplates based on various events and conditions"],
get = function(i) return AloftModules.db.profile.AloftAutoShow end,
set = function(i, v) AloftModules.db.profile.AloftAutoShow = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftAutoShow/AloftAutoShowOptions.lua New file
0,0 → 1,1631
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
-- local version, build, date, tocversion = GetBuildInfo()
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAutoShow", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftAutoShowOptions
if not L then return end
 
local AloftAutoShow = Aloft:GetModule("AutoShow", true)
if not AloftAutoShow then return end
 
-----------------------------------------------------------------------------
 
-- magic values from the Blizzard default UI CVars for "Nameplate Motion Type"
local motionValues = { }
motionValues[1] = "STACK"
motionValues[2] = "SPREAD"
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.motion =
{
type = 'group',
name = L["Name Plate Motion"],
desc = L["Motion of nameplates when they might overlap"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
order = 2,
args =
{
styleHeader =
{
type = "header",
name = L["Name Plate Motion"],
desc = L["Motion of nameplates when they might overlap"],
order = 1,
},
bounce =
{
type = 'toggle',
name = L["Bounce Nameplates on Motion Change"],
desc = L["Quicky toggle nameplates (bounce) when motion settings are automatically changed"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
get = function(i) return AloftAutoShow.db.profile.bounceMotion end,
set = function(i, v) AloftAutoShow.db.profile.bounceMotion = v end,
},
all =
{
type = 'toggle',
width = 'full',
name = L["Set All"],
desc = L["Automate all nameplate motion"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
get = function(i) return AloftAutoShow.db.profile.allMotion end,
set = function(i, v) AloftAutoShow.db.profile.allMotion = v AloftAutoShow:SetAllNameplateMotion(v) AloftAutoShow:ApplyNameplateDisplay() end,
},
motionStyle =
{
type = 'select',
style = 'radio',
width = 'full',
name = L["Motion Style"],
desc = L["Motion Style"],
order = 4,
get = function(i)
for k, v in pairs(Aloft.Options.args.motion.args.motionStyle.values) do
if k == AloftAutoShow.db.profile.motionStyle then
-- ChatFrame7:AddMessage("Aloft.Options.args.motion.args.motionStyle.get(): " .. tostring(k) .. "/" .. tostring(v) .. "/" .. tostring(AloftAutoShow.db.profile.motionStyle))
return k
end
end
end,
set = function(i, v)
-- ChatFrame7:AddMessage("Aloft.Options.args.motion.args.motionStyle.set(): " .. tostring(v))
AloftAutoShow.db.profile.motionStyle = v
AloftAutoShow:ApplyNameplateDisplay()
end,
values = motionValues,
},
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Nameplate motion based on player state (subject to Visibility options)"],
order = 10,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Nameplate motion on entering/exiting combat (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 13,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 14,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Nameplate motion by default (subject to Visibility options)"],
order = 15,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Nameplate motion based on player location (subject to Visibility options)"],
order = 20,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Nameplate motion on entering/exiting the world (subject to Visibility options)"],
order = 21,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"],
order = 22,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Nameplate motion on entering/exiting arenas (subject to Visibility options)"],
order = 23,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"],
order = 24,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Nameplate motion on entering/exiting raid instances (subject to Visibility options)"],
order = 25,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.motion end,
get = function(i) return AloftAutoShow.db.profile.motion.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allMotion then AloftAutoShow:SetAllNameplateMotion(v) else AloftAutoShow.db.profile.motion.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
}
 
Aloft.Options.args.show =
{
type = 'group',
name = L["Show Neutral/Enemy Name Plates"],
desc = L["Show nameplates for neutral or hostile units"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
order = 3,
args =
{
all =
{
type = 'toggle',
width = 'full',
name = L["Set All"],
desc = L["Auto-show/hide all neutral and hostile nameplates (subject to Visibility options)"],
order = 1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
get = function(i) return AloftAutoShow.db.profile.allEnemyEnable end,
set = function(i, v) AloftAutoShow.db.profile.allEnemyEnable = v AloftAutoShow:SetAllEnemyNameplateDisplay(v) AloftAutoShow:ApplyNameplateDisplay() end,
},
default =
{
type = 'group',
name = L["All Nameplates"],
desc = L["All nameplates"],
args =
{
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"],
order = 1,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"],
order = 7,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"],
order = 8,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemy end,
get = function(i) return AloftAutoShow.db.profile.enemy.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemy.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
},
},
}
 
Aloft.Options.args.show.args.pet =
{
type = 'group',
name = L["Pet Nameplates"],
desc = L["Pet nameplates"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
args =
{
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"],
order = 1,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"],
order = 7,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"],
order = 8,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyPet end,
get = function(i) return AloftAutoShow.db.profile.enemyPet.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyPet.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
}
 
Aloft.Options.args.show.args.guardian =
{
type = 'group',
name = L["Guardian Nameplates"],
desc = L["Guardian nameplates"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
args =
{
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"],
order = 1,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"],
order = 7,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"],
order = 8,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyGuardian end,
get = function(i) return AloftAutoShow.db.profile.enemyGuardian.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyGuardian.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
}
 
Aloft.Options.args.show.args.totem =
{
type = 'group',
name = L["Totem Nameplates"],
desc = L["Totem nameplates"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
args =
{
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"],
order = 1,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"],
order = 7,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"],
order = 8,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.enemyTotem end,
get = function(i) return AloftAutoShow.db.profile.enemyTotem.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allEnemyEnable then AloftAutoShow:SetAllEnemyNameplateDisplay(v) else AloftAutoShow.db.profile.enemyTotem.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
}
 
Aloft.Options.args.showFriendly =
{
type = 'group',
name = L["Show Friendly Name Plates"],
desc = L["Show nameplates for friendly units"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
order = 4,
args =
{
all =
{
type = 'toggle',
width = 'full',
name = L["Set All"],
desc = L["Auto-show/hide all friendly nameplates (subject to Visibility options)"],
order = 1,
get = function(i) return AloftAutoShow.db.profile.allFriendEnable end,
set = function(i, v) AloftAutoShow.db.profile.allFriendEnable = v AloftAutoShow:SetAllFriendNameplateDisplay(v) AloftAutoShow:ApplyNameplateDisplay() end,
},
default =
{
type = 'group',
width = 'full',
name = L["All Nameplates"],
desc = L["All nameplates"],
args =
{
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"],
order = 1,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"],
order = 7,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"],
order = 8,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendly end,
get = function(i) return AloftAutoShow.db.profile.friendly.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendly.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
},
},
}
 
Aloft.Options.args.showFriendly.args.pet =
{
type = 'group',
name = L["Pet Nameplates"],
desc = L["Pet nameplates"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
args =
{
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"],
order = 1,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"],
order = 7,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"],
order = 8,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyPet end,
get = function(i) return AloftAutoShow.db.profile.friendlyPet.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyPet.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
}
 
Aloft.Options.args.showFriendly.args.guardian =
{
type = 'group',
name = L["Guardian Nameplates"],
desc = L["Guardian nameplates"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
args =
{
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"],
order = 1,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"],
order = 7,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"],
order = 8,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyGuardian end,
get = function(i) return AloftAutoShow.db.profile.friendlyGuardian.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyGuardian.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
}
 
Aloft.Options.args.showFriendly.args.totem =
{
type = 'group',
name = L["Totem Nameplates"],
desc = L["Totem nameplates"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile end,
args =
{
stateHeader =
{
type = 'header',
width = 'full',
name = L["Player State"],
desc = L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"],
order = 1,
},
combat =
{
type = 'toggle',
width = 'full',
name = L["Combat"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"],
order = 2,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.state.combat end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.state.combat = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
flagged =
{
type = 'toggle',
width = 'full',
name = L["Flagged/PvP"],
desc = L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.state.flagged end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.state.flagged = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
resting =
{
type = 'toggle',
width = 'full',
name = L["Resting"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"],
order = 4,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.state.resting end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.state.resting = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
group =
{
type = 'toggle',
width = 'full',
name = L["Group"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.state.group end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.state.group = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
default =
{
type = 'toggle',
width = 'full',
name = L["Default"],
desc = L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.state.default end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.state.default = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
placeHeader =
{
type = 'header',
width = 'full',
name = L["Player Location"],
desc = L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"],
order = 7,
},
world =
{
type = 'toggle',
width = 'full',
name = L["World"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"],
order = 8,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.place.world end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.place.world = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
battleground =
{
type = 'toggle',
width = 'full',
name = L["Battleground"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"],
order = 9,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.place.battleground end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.place.battleground = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
arena =
{
type = 'toggle',
width = 'full',
name = L["Arena"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.place.arena end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.place.arena = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
party =
{
type = 'toggle',
width = 'full',
name = L["5-Man Instance"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"],
order = 11,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.place.party end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.place.party = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
raid =
{
type = 'toggle',
width = 'full',
name = L["Raid Instance"],
desc = L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftAutoShow:IsEnabled() or not AloftAutoShow.db or not AloftAutoShow.db.profile or not AloftAutoShow.db.profile.friendlyTotem end,
get = function(i) return AloftAutoShow.db.profile.friendlyTotem.place.raid end,
set = function(i, v)
if AloftAutoShow.db.profile.allFriendEnable then AloftAutoShow:SetAllFriendNameplateDisplay(v) else AloftAutoShow.db.profile.friendlyTotem.place.raid = v end
AloftAutoShow:ApplyNameplateDisplay()
end,
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftAutoShow/AloftAutoShowLocale.lua New file
0,0 → 1,592
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local L = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAutoShow", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
-- some of these duplicate labels for keybindings; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ enUS ]] L["Show Neutral/Enemy Name Plates"] = "Show Neutral/Enemy Name Plates"
--[[ enUS ]] L["Show nameplates for neutral or hostile units"] = "Show nameplates for neutral or hostile units"
--[[ enUS ]] L["Show Friendly Name Plates"] = "Show Friendly Name Plates"
--[[ enUS ]] L["Show nameplates for friendly units"] = "Show nameplates for friendly units"
--[[ enUS ]] L["Show All Name Plates"] = "Show All Name Plates"
--[[ enUS ]] L["Show Nameplates"] = "Show Nameplates"
 
-- player states; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ enUS ]] L["Player State"] = "Player State"
--[[ enUS ]] L["Combat"] = "Combat"
--[[ enUS ]] L["Flagged/PvP"] = "Flagged/PvP"
--[[ enUS ]] L["Resting"] = "Resting"
--[[ enUS ]] L["Group"] = "Group"
--[[ enUS ]] L["Default"] = "Default"
 
-- player locations; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ enUS ]] L["Player Location"] = "Player Location"
--[[ enUS ]] L["World"] = "World"
--[[ enUS ]] L["Battleground"] = "Battleground"
--[[ enUS ]] L["Arena"] = "Arena"
--[[ enUS ]] L["5-Man Instance"] = "5-Man Instance"
--[[ enUS ]] L["Raid Instance"] = "Raid Instance"
 
--[[ enUS ]] L["Set All"] = "Set All"
 
--[[ enUS ]] L["Name Plate Motion"] = "Name Plate Motion"
--[[ enUS ]] L["Motion of nameplates when they might overlap"] = "Motion of nameplates when they might overlap"
 
--[[ enUS ]] L["Motion Style"] = "Motion Style"
--[[ enUS ]] L["STACK"] = "Stack"
--[[ enUS ]] L["SPREAD"] = "Spread"
 
--[[ enUS ]] L["Automate all nameplate motion"] = "Automate all nameplate motion"
--[[ enUS ]] L["Motion Options"] = "Motion Options"
--[[ enUS ]] L["Options controlling nameplate motion"] = "Options controlling nameplate motion"
--[[ enUS ]] L["Bounce Nameplates on Motion Change"] = "Bounce Nameplates on Motion Change"
--[[ enUS ]] L["Quicky toggle nameplates (bounce) when motion settings are automatically changed"] = "Quicky toggle nameplates (bounce) when motion settings are automatically changed"
 
--[[ enUS ]] L["Nameplate motion based on player state (subject to Visibility options)"] = "Nameplate motion based on player state (subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on entering/exiting combat (subject to Visibility options)"] = "Nameplate motion on entering/exiting combat (subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion by default (subject to Visibility options)"] = "Nameplate motion by default (subject to Visibility options)"
 
--[[ enUS ]] L["Nameplate motion based on player location (subject to Visibility options)"] = "Nameplate motion based on player location (subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on entering/exiting the world (subject to Visibility options)"] = "Nameplate motion on entering/exiting the world (subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"] = "Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on entering/exiting arenas (subject to Visibility options)"] = "Nameplate motion on entering/exiting arenas (subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"
--[[ enUS ]] L["Nameplate motion on entering/exiting raid instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting raid instances (subject to Visibility options)"
 
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates (subject to Visibility options)"
 
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"
 
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"
 
--[[ enUS ]] L["Auto-show/hide all friendly nameplates (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates (subject to Visibility options)"
 
--[[ enUS ]] L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates by default (subject to Visibility options)"
 
--[[ enUS ]] L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"
--[[ enUS ]] L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"
 
--[[ enUS ]] L["All Nameplates"] = "All Nameplates"
--[[ enUS ]] L["All nameplates"] = "All nameplates"
--[[ enUS ]] L["Pet Nameplates"] = "Pet Nameplates"
--[[ enUS ]] L["Pet nameplates"] = "Pet nameplates"
--[[ enUS ]] L["Guardian Nameplates"] = "Guardian Nameplates"
--[[ enUS ]] L["Guardian nameplates"] = "Guardian nameplates"
--[[ enUS ]] L["Totem Nameplates"] = "Totem Nameplates"
--[[ enUS ]] L["Totem nameplates"] = "Totem nameplates"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftAutoShow"] = "AloftAutoShow"
--[[ enUS ]] mL["Automatically show/hide nameplates based on various events and conditions"] = "Automatically show/hide nameplates based on various events and conditions"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAutoShow", function()
 
-----------------------------------------------------------------------------
 
-- some of these duplicate labels for keybindings; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ koKR ]] L["Show Neutral/Enemy Name Plates"] = "Show Neutral/Enemy Name Plates"
--[[ koKR ]] L["Show nameplates for neutral or hostile units"] = "중립적 혹은 적대적 대상에 대한 이름표를 표시합니다."
--[[ koKR ]] L["Show Friendly Name Plates"] = "Show Friendly Name Plates"
--[[ koKR ]] L["Show nameplates for friendly units"] = "우호적 대상에 대한 이름표를 표시합니다."
--[[ koKR ]] L["Show All Name Plates"] = "Show All Name Plates"
--[[ koKR ]] L["Show Nameplates"] = "이름표 표시"
 
-- player states; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ koKR ]] L["Combat"] = "Combat"
--[[ koKR ]] L["Flagged/PvP"] = "Flagged/PvP"
--[[ koKR ]] L["Resting"] = "Resting"
--[[ koKR ]] L["Group"] = "Group"
--[[ koKR ]] L["Default"] = "Default"
 
-- player locations; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ koKR ]] L["Player Location"] = "Player Location"
--[[ koKR ]] L["World"] = "World"
--[[ koKR ]] L["Battleground"] = "Battleground"
--[[ koKR ]] L["Arena"] = "Arena"
--[[ koKR ]] L["5-Man Instance"] = "5-Man Instance"
--[[ koKR ]] L["Raid Instance"] = "Raid Instance"
 
--[[ koKR ]] L["Set All"] = "Set All"
 
--[[ koKR ]] L["Name Plate Motion"] = "Name Plate Motion"
--[[ koKR ]] L["Motion of nameplates when they might overlap"] = "Motion of nameplates when they might overlap"
 
--[[ koKR ]] L["Motion Style"] = "Motion Style"
--[[ koKR ]] L["STACK"] = "Stack"
--[[ koKR ]] L["SPREAD"] = "Spread"
 
--[[ koKR ]] L["Automate all nameplate motion"] = "Automate all nameplate motion"
--[[ koKR ]] L["Motion Options"] = "Motion Options"
--[[ koKR ]] L["Options controlling nameplate motion"] = "Options controlling nameplate motion"
--[[ koKR ]] L["Bounce Nameplates on Motion Change"] = "Bounce Nameplates on Motion Change"
--[[ koKR ]] L["Quicky toggle nameplates (bounce) when motion settings are automatically changed"] = "Quicky toggle nameplates (bounce) when motion settings are automatically changed"
 
--[[ koKR ]] L["Nameplate motion based on player state (subject to Visibility options)"] = "Nameplate motion based on player state (subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on entering/exiting combat (subject to Visibility options)"] = "Nameplate motion on entering/exiting combat (subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion by default (subject to Visibility options)"] = "Nameplate motion by default (subject to Visibility options)"
 
--[[ koKR ]] L["Nameplate motion based on player location (subject to Visibility options)"] = "Nameplate motion based on player location (subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on entering/exiting the world (subject to Visibility options)"] = "Nameplate motion on entering/exiting the world (subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"] = "Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on entering/exiting arenas (subject to Visibility options)"] = "Nameplate motion on entering/exiting arenas (subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"
--[[ koKR ]] L["Nameplate motion on entering/exiting raid instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting raid instances (subject to Visibility options)"
 
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates (subject to Visibility options)"
 
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"
 
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"
 
--[[ koKR ]] L["Auto-show/hide all friendly nameplates (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates (subject to Visibility options)"
 
--[[ koKR ]] L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates by default (subject to Visibility options)"
 
--[[ koKR ]] L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"
--[[ koKR ]] L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"
 
--[[ koKR ]] L["All Nameplates"] = "All Nameplates"
--[[ koKR ]] L["All nameplates"] = "All nameplates"
--[[ koKR ]] L["Pet Nameplates"] = "Pet Nameplates"
--[[ koKR ]] L["Pet nameplates"] = "Pet nameplates"
--[[ koKR ]] L["Guardian Nameplates"] = "Guardian Nameplates"
--[[ koKR ]] L["Guardian nameplates"] = "Guardian nameplates"
--[[ koKR ]] L["Totem Nameplates"] = "Totem Nameplates"
--[[ koKR ]] L["Totem nameplates"] = "Totem nameplates"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftAutoShow"] = "AloftAutoShow"
--[[ koKR ]] mL["Automatically show/hide nameplates based on various events and conditions"] = "Automatically show/hide nameplates based on various events and conditions"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAutoShow", function()
 
-----------------------------------------------------------------------------
 
-- some of these duplicate labels for keybindings; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ ruRU ]] L["Show Neutral/Enemy Name Plates"] = "Отображать таблички нейтральных/враждебных"
--[[ ruRU ]] L["Show nameplates for neutral or hostile units"] = "Отображать таблички для нейтральных или враждебных"
--[[ ruRU ]] L["Show Friendly Name Plates"] = "Отображать таблички дружественных"
--[[ ruRU ]] L["Show nameplates for friendly units"] = "Отображать таблички для дружественных"
--[[ ruRU ]] L["Show All Name Plates"] = "Отображать все таблички"
--[[ ruRU ]] L["Show Nameplates"] = "Отображать таблички"
 
-- player states; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ ruRU ]] L["Player State"] = "Состояние игрока"
--[[ ruRU ]] L["Combat"] = "Бой"
--[[ ruRU ]] L["Flagged/PvP"] = "Флаг/PvP"
--[[ ruRU ]] L["Resting"] = "Отдых"
--[[ ruRU ]] L["Group"] = "Группа"
--[[ ruRU ]] L["Default"] = "По умолчанию"
 
-- player locations; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ ruRU ]] L["Player Location"] = "Местонахождение игрока"
--[[ ruRU ]] L["World"] = "Мир"
--[[ ruRU ]] L["Battleground"] = "Поля сражений"
--[[ ruRU ]] L["Arena"] = "Арена"
--[[ ruRU ]] L["5-Man Instance"] = "Инстансы на 5-чел"
--[[ ruRU ]] L["Raid Instance"] = "Рейдовые инстансыe"
 
--[[ ruRU ]] L["Set All"] = "Выбрать всё"
 
--[[ ruRU ]] L["Name Plate Motion"] = "Name Plate Motion"
--[[ ruRU ]] L["Motion of nameplates when they might overlap"] = "Motion of nameplates when they might overlap"
 
--[[ ruRU ]] L["Motion Style"] = "Motion Style"
--[[ ruRU ]] L["STACK"] = "Stack"
--[[ ruRU ]] L["SPREAD"] = "Spread"
 
--[[ ruRU ]] L["Automate all nameplate motion"] = "Automate all nameplate motion"
--[[ ruRU ]] L["Motion Options"] = "Motion Options"
--[[ ruRU ]] L["Options controlling nameplate motion"] = "Options controlling nameplate motion"
--[[ ruRU ]] L["Bounce Nameplates on Motion Change"] = "Bounce Nameplates on Motion Change"
--[[ ruRU ]] L["Quicky toggle nameplates (bounce) when motion settings are automatically changed"] = "Quicky toggle nameplates (bounce) when motion settings are automatically changed"
 
--[[ ruRU ]] L["Nameplate motion based on player state (subject to Visibility options)"] = "Nameplate motion based on player state (subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on entering/exiting combat (subject to Visibility options)"] = "Nameplate motion on entering/exiting combat (subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion by default (subject to Visibility options)"] = "Nameplate motion by default (subject to Visibility options)"
 
--[[ ruRU ]] L["Nameplate motion based on player location (subject to Visibility options)"] = "Nameplate motion based on player location (subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on entering/exiting the world (subject to Visibility options)"] = "Nameplate motion on entering/exiting the world (subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"] = "Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on entering/exiting arenas (subject to Visibility options)"] = "Nameplate motion on entering/exiting arenas (subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"
--[[ ruRU ]] L["Nameplate motion on entering/exiting raid instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting raid instances (subject to Visibility options)"
 
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных (относится к настройкам Вида)"
 
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных оснавываяс на состаянии игрока (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных при входе/выходе из боя (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных при присутствии/отсутствии метки PvP (и не находясь в бою; относится к настройкам Вида"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных при входе/выходе из состояния отдыха (и не находясь в бою или помеченным; относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных вступая/выходя из группы (и не находясь в бою, помеченным, или отдыхая; относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных по умолчанию (относится к настройкам Вида)"
 
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных основываясь на местонахождение игрока (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных при входе/выходе из мира (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных при входе/выходе из поля боя (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных при входе/выходе из арены (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных при входе/выходе из подземелья на 5-чел (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Авто-показать/скрыть все таблички нейтральных и враждебных при входе/выходе из рейдового подземелья (относится к настройкам Вида)"
 
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички (относится к настройкам Вида)"
 
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички основываясь на состоянии игрока (относится к настройкам Видаs)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички при входе/выходе из боя (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички при присутствии/отсутствии метки PvP (и не находясь в бою; относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички при входе/выходе из состояния отдыха (и не находясь в бою или помеченным; относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички вступая/выходя из группы (и не находясь в бою, помеченным, или отдыхая; относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички по умолчанию (относится к настройкам Вида)"
 
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички основываясь на местонахождение игрока (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички при входе/выходе из мира (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички при входе/выходе из поля боя (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички при входе/выходе из арены (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички при входе/выходе из подземелья на 5-чел (относится к настройкам Вида)"
--[[ ruRU ]] L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Авто-показать/скрыть все дружественные таблички при входе/выходе из рейдового подземелья (относится к настройкам Вида)"
 
--[[ ruRU ]] L["All Nameplates"] = "All Nameplates"
--[[ ruRU ]] L["All nameplates"] = "All nameplates"
--[[ ruRU ]] L["Pet Nameplates"] = "Pet Nameplates"
--[[ ruRU ]] L["Pet nameplates"] = "Pet nameplates"
--[[ ruRU ]] L["Guardian Nameplates"] = "Guardian Nameplates"
--[[ ruRU ]] L["Guardian nameplates"] = "Guardian nameplates"
--[[ ruRU ]] L["Totem Nameplates"] = "Totem Nameplates"
--[[ ruRU ]] L["Totem nameplates"] = "Totem nameplates"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftAutoShow"] = "AloftAutoShow"
--[[ ruRU ]] mL["Automatically show/hide nameplates based on various events and conditions"] = "Автоматически показывает/скрывает таблички основываясь на различных критериях и событиях"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAutoShow", function()
 
-----------------------------------------------------------------------------
 
-- some of these duplicate labels for keybindings; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ zhCN ]] L["Show Neutral/Enemy Name Plates"] = "Show Neutral/Enemy Name Plates"
--[[ zhCN ]] L["Show nameplates for neutral or hostile units"] = "显示中立或敌对单位的姓名板"
--[[ zhCN ]] L["Show Friendly Name Plates"] = "Show Friendly Name Plates"
--[[ zhCN ]] L["Show nameplates for friendly units"] = "显示友方单位的姓名板"
--[[ zhCN ]] L["Show All Name Plates"] = "Show All Name Plates"
--[[ zhCN ]] L["Show Nameplates"] = "显示姓名板"
 
--[[ zhCN ]] L["Combat"] = "战斗"
--[[ zhCN ]] L["Flagged/PvP"] = "Flagged/PvP"
--[[ zhCN ]] L["Resting"] = "休息"
--[[ zhCN ]] L["Group"] = "小队"
--[[ zhCN ]] L["Default"] = "默认"
 
-- player locations; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ zhCN ]] L["Player Location"] = "Player Location"
--[[ zhCN ]] L["World"] = "World"
--[[ zhCN ]] L["Battleground"] = "Battleground"
--[[ zhCN ]] L["Arena"] = "Arena"
--[[ zhCN ]] L["5-Man Instance"] = "5-Man Instance"
--[[ zhCN ]] L["Raid Instance"] = "Raid Instance"
 
--[[ zhCN ]] L["Set All"] = "全部"
 
--[[ zhCN ]] L["Name Plate Motion"] = "Name Plate Motion"
--[[ zhCN ]] L["Motion of nameplates when they might overlap"] = "Motion of nameplates when they might overlap"
 
--[[ zhCN ]] L["Motion Style"] = "Motion Style"
--[[ zhCN ]] L["STACK"] = "Stack"
--[[ zhCN ]] L["SPREAD"] = "Spread"
 
--[[ zhCN ]] L["Automate all nameplate motion"] = "Automate all nameplate motion"
--[[ zhCN ]] L["Motion Options"] = "Motion Options"
--[[ zhCN ]] L["Options controlling nameplate motion"] = "Options controlling nameplate motion"
--[[ zhCN ]] L["Bounce Nameplates on Motion Change"] = "Bounce Nameplates on Motion Change"
--[[ zhCN ]] L["Quicky toggle nameplates (bounce) when motion settings are automatically changed"] = "Quicky toggle nameplates (bounce) when motion settings are automatically changed"
 
--[[ zhCN ]] L["Nameplate motion based on player state (subject to Visibility options)"] = "Nameplate motion based on player state (subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on entering/exiting combat (subject to Visibility options)"] = "Nameplate motion on entering/exiting combat (subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion by default (subject to Visibility options)"] = "Nameplate motion by default (subject to Visibility options)"
 
--[[ zhCN ]] L["Nameplate motion based on player location (subject to Visibility options)"] = "Nameplate motion based on player location (subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on entering/exiting the world (subject to Visibility options)"] = "Nameplate motion on entering/exiting the world (subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"] = "Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on entering/exiting arenas (subject to Visibility options)"] = "Nameplate motion on entering/exiting arenas (subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"
--[[ zhCN ]] L["Nameplate motion on entering/exiting raid instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting raid instances (subject to Visibility options)"
 
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates (subject to Visibility options)"] = "自动显示/隐藏所有中立和敌对姓名板(受控于可见度选项)"
 
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"] = "进入/离开战斗时自动显示/隐藏所有中立和敌对姓名板(受控于可见度选项)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"] = "默认自动显示/隐藏所有中立和敌对姓名板(受控于可见度选项)"
 
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"
 
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates (subject to Visibility options)"] = "自动显示/隐藏所有友方姓名板(受控于可见度选项)"
 
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"] = "进入/离开战斗时自动显示/隐藏所有友方姓名板(受控于可见度选项)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"] = "默认自动显示/隐藏所有友方姓名板(受控于可见度选项)"
 
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"
--[[ zhCN ]] L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"
 
--[[ zhCN ]] L["All Nameplates"] = "All Nameplates"
--[[ zhCN ]] L["All nameplates"] = "All nameplates"
--[[ zhCN ]] L["Pet Nameplates"] = "Pet Nameplates"
--[[ zhCN ]] L["Pet nameplates"] = "Pet nameplates"
--[[ zhCN ]] L["Guardian Nameplates"] = "Guardian Nameplates"
--[[ zhCN ]] L["Guardian nameplates"] = "Guardian nameplates"
--[[ zhCN ]] L["Totem Nameplates"] = "Totem Nameplates"
--[[ zhCN ]] L["Totem nameplates"] = "Totem nameplates"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftAutoShow"] = "自动显示"
--[[ zhCN ]] mL["Automatically show/hide nameplates based on various events and conditions"] = "在特定事件和状态下自动显示/隐藏姓名板"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAutoShow", function()
 
-----------------------------------------------------------------------------
 
-- some of these duplicate labels for keybindings; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ zhTW ]] L["Show Neutral/Enemy Name Plates"] = "Show Neutral/Enemy Name Plates"
--[[ zhTW ]] L["Show nameplates for neutral or hostile units"] = "顯示中立或敵對單位的名牌"
--[[ zhTW ]] L["Show Friendly Name Plates"] = "Show Friendly Name Plates"
--[[ zhTW ]] L["Show nameplates for friendly units"] = "顯示友好單位的名牌"
--[[ zhTW ]] L["Show All Name Plates"] = "Show All Name Plates"
--[[ zhTW ]] L["Show Nameplates"] = "顯示名牌"
 
--[[ zhTW ]] L["Combat"] = "戰斗"
--[[ zhTW ]] L["Flagged/PvP"] = "Flagged/PvP"
--[[ zhTW ]] L["Resting"] = "休息"
--[[ zhTW ]] L["Group"] = "小隊"
--[[ zhTW ]] L["Default"] = "默認"
 
-- player locations; should match strings in Aloft/Aloft.lua and Aloft localizations
--[[ zhTW ]] L["Player Location"] = "Player Location"
--[[ zhTW ]] L["World"] = "World"
--[[ zhTW ]] L["Battleground"] = "Battleground"
--[[ zhTW ]] L["Arena"] = "Arena"
--[[ zhTW ]] L["5-Man Instance"] = "5-Man Instance"
--[[ zhTW ]] L["Raid Instance"] = "Raid Instance"
 
--[[ zhTW ]] L["Set All"] = "全部"
 
--[[ zhTW ]] L["Name Plate Motion"] = "Name Plate Motion"
--[[ zhTW ]] L["Motion of nameplates when they might overlap"] = "Motion of nameplates when they might overlap"
 
--[[ zhTW ]] L["Motion Style"] = "Motion Style"
--[[ zhTW ]] L["STACK"] = "Stack"
--[[ zhTW ]] L["SPREAD"] = "Spread"
 
--[[ zhTW ]] L["Automate all nameplate motion"] = "Automate all nameplate motion"
--[[ zhTW ]] L["Motion Options"] = "Motion Options"
--[[ zhTW ]] L["Options controlling nameplate motion"] = "Options controlling nameplate motion"
--[[ zhTW ]] L["Bounce Nameplates on Motion Change"] = "Bounce Nameplates on Motion Change"
--[[ zhTW ]] L["Quicky toggle nameplates (bounce) when motion settings are automatically changed"] = "Quicky toggle nameplates (bounce) when motion settings are automatically changed"
 
--[[ zhTW ]] L["Nameplate motion based on player state (subject to Visibility options)"] = "Nameplate motion based on player state (subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on entering/exiting combat (subject to Visibility options)"] = "Nameplate motion on entering/exiting combat (subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Nameplate motion on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Nameplate motion on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Nameplate motion on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion by default (subject to Visibility options)"] = "Nameplate motion by default (subject to Visibility options)"
 
--[[ zhTW ]] L["Nameplate motion based on player location (subject to Visibility options)"] = "Nameplate motion based on player location (subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on entering/exiting the world (subject to Visibility options)"] = "Nameplate motion on entering/exiting the world (subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"] = "Nameplate motion on entering/exiting battlegrounds (subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on entering/exiting arenas (subject to Visibility options)"] = "Nameplate motion on entering/exiting arenas (subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting 5-man instances (subject to Visibility options)"
--[[ zhTW ]] L["Nameplate motion on entering/exiting raid instances (subject to Visibility options)"] = "Nameplate motion on entering/exiting raid instances (subject to Visibility options)"
 
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates (subject to Visibility options)"] = "自動顯示/隱藏所有中立和敵對名牌(受控於可見度選項)"
 
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates based on player state (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting combat (subject to Visibility options)"] = "進入/離開戰鬥時自動顯示/隱藏所有中立和敵對名牌(受控於可見度選項)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates by default (subject to Visibility options)"] = "預設自動顯示/隱藏所有中立和敵對名牌(受控於可見度選項)"
 
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates based on player location (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting the world (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting battlegrounds (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting arenas (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting 5-man instances (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Auto-show/hide all neutral and hostile nameplates on entering/exiting raid instances (subject to Visibility options)"
 
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates (subject to Visibility options)"] = "自動顯示/隱藏所有友方名牌(受控於可見度選項)"
 
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates based on player state (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on entering/exiting combat (subject to Visibility options)"] = "進入/離開戰鬥時自動顯示/隱藏所有友方名牌(受控於可見度選項)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on flagging/unflagging for PvP (and not in combat; subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting resting state (and not in combat or flagged; subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting groups (and not in combat, flagged, or resting; subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates by default (subject to Visibility options)"] = "預設自動顯示/隱藏所有友方名牌(受控於可見度選項)"
 
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates based on player location (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting the world (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting battlegrounds (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting arenas (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting 5-man instances (subject to Visibility options)"
--[[ zhTW ]] L["Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"] = "Auto-show/hide all friendly nameplates on entering/exiting raid instances (subject to Visibility options)"
 
--[[ zhTW ]] L["All Nameplates"] = "All Nameplates"
--[[ zhTW ]] L["All nameplates"] = "All nameplates"
--[[ zhTW ]] L["Pet Nameplates"] = "Pet Nameplates"
--[[ zhTW ]] L["Pet nameplates"] = "Pet nameplates"
--[[ zhTW ]] L["Guardian Nameplates"] = "Guardian Nameplates"
--[[ zhTW ]] L["Guardian nameplates"] = "Guardian nameplates"
--[[ zhTW ]] L["Totem Nameplates"] = "Totem Nameplates"
--[[ zhTW ]] L["Totem nameplates"] = "Totem nameplates"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftAutoShow"] = "自動顯示"
--[[ zhTW ]] mL["Automatically show/hide nameplates based on various events and conditions"] = "自動在特定的事件和狀態下顯示/隱藏名牌"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAutoShow", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftAutoShowOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCombatText/AloftCombatTextOptions.lua New file
0,0 → 1,393
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCombatText", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCombatText
if not L then return end
 
local AloftCombatText = Aloft:GetModule("CombatText", true)
if not AloftCombatText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
-- needs to be maintained to match the definitions in AloftCombatTextOptions.lua; these are lifted loosely from Blizzard(tm); Interface\AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua (i.e. Blizzard combat log processing)
local SPELL_COLOR_NONE = { 1.00, 1.00, 1.00, } -- this is an imaginary color for spells with no known school (a medium gray)
local SPELL_COLOR_PHYSICAL = { 0.80, 0.60, 0.40, } -- basically the warrior class color
local SPELL_COLOR_HOLY = { 1.00, 0.90, 0.50, }
local SPELL_COLOR_FIRE = { 1.00, 0.00, 0.00, } -- red
local SPELL_COLOR_NATURE = { 0.30, 1.00, 0.30, }
local SPELL_COLOR_FROST = { 0.50, 1.00, 1.00, }
local SPELL_COLOR_SHADOW = { 0.50, 0.50, 1.00, } -- basically the warlock class color
local SPELL_COLOR_ARCANE = { 1.00, 0.50, 1.00, }
local SPELL_COLOR_HEAL = { 1.00, 0.50, 0.00, } -- this is an imaginary catch-all color for healing spells (yellow-orange)
local SPELL_COLOR_ENERGIZE = { 0.41, 0.80, 0.94, } -- for energize activity
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.combatText =
{
type = 'group',
name = L["Combat Text"],
desc = L["Combat text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCombatText:IsEnabled() or not AloftCombatText.db or not AloftCombatText.db.profile end,
args =
{
enableTarget =
{
type = 'toggle',
width = 'full',
name = L["Enable Target"],
desc = L["Show combat text on target nameplates"],
get = function(i) return AloftCombatText.db.profile.enableTarget end,
set = function(i, v) AloftCombatText.db.profile.enableTarget = v AloftCombatText:UpdateAll() end,
order = 1
},
enableGroup =
{
type = 'toggle',
width = 'full',
name = L["Enable Group"],
desc = L["Show combat text on group member nameplates"],
get = function(i) return AloftCombatText.db.profile.enableGroup end,
set = function(i, v) AloftCombatText.db.profile.enableGroup = v AloftCombatText:UpdateAll() end,
order = 2
},
enableOther =
{
type = 'toggle',
width = 'full',
name = L["Enable Other"],
desc = L["Show combat text on other nameplates"],
get = function(i) return AloftCombatText.db.profile.enableOther end,
set = function(i, v) AloftCombatText.db.profile.enableOther = v AloftCombatText:UpdateAll() end,
order = 3
},
effectPlayer =
{
type = 'toggle',
width = 'full',
name = L["Damage/Healing By Player"],
desc = L["Show combat text for damage/healing done by the player"],
disabled = function(i) return not (AloftCombatText.db.profile.enableTarget or AloftCombatText.db.profile.enableGroup or AloftCombatText.db.profile.enableOther) end,
get = function(i) return AloftCombatText.db.profile.effectPlayer end,
set = function(i, v) AloftCombatText.db.profile.effectPlayer = v AloftCombatText:UpdateAll() end,
order = 4
},
effectGroup =
{
type = 'toggle',
width = 'full',
name = L["Damage/Healing By Group"],
desc = L["Show combat text for damage/healing done by group members (including pets)"],
disabled = function(i) return not (AloftCombatText.db.profile.enableTarget or AloftCombatText.db.profile.enableGroup or AloftCombatText.db.profile.enableOther) end,
get = function(i) return AloftCombatText.db.profile.effectGroup end,
set = function(i, v) AloftCombatText.db.profile.effectGroup = v AloftCombatText:UpdateAll() end,
order = 5
},
effectOther =
{
type = 'toggle',
width = 'full',
name = L["Damage/Healing By Other"],
desc = L["Show combat text for damage/healing done by other units"],
disabled = function(i) return not (AloftCombatText.db.profile.enableTarget or AloftCombatText.db.profile.enableGroup or AloftCombatText.db.profile.enableOther) end,
get = function(i) return AloftCombatText.db.profile.effectOther end,
set = function(i, v) AloftCombatText.db.profile.effectOther = v AloftCombatText:UpdateAll() end,
order = 6
},
overHealing =
{
type = 'toggle',
width = 'full',
name = L["Include Overhealing"],
desc = L["Show combat text for healing that includes overhealing"],
disabled = function(i) return not (AloftCombatText.db.profile.enableTarget or AloftCombatText.db.profile.enableGroup or AloftCombatText.db.profile.enableOther) end,
get = function(i) return AloftCombatText.db.profile.overHealing end,
set = function(i, v) AloftCombatText.db.profile.overHealing = v AloftCombatText:UpdateAll() end,
order = 7
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Combat text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCombatText:IsEnabled() or not AloftCombatText.db or not AloftCombatText.db.profile or not (AloftCombatText.db.profile.enableTarget or AloftCombatText.db.profile.enableGroup or AloftCombatText.db.profile.enableOther) end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for combat text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.combatText.args.typeface.args.font.values) do
if v == AloftCombatText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftCombatText.db.profile.font = Aloft.Options.args.combatText.args.typeface.args.font.values[v]
AloftCombatText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the combat text"],
max = 40,
min = 5,
step = 1,
get = function(i) return AloftCombatText.db.profile.fontSize end,
set = function(i, value) AloftCombatText.db.profile.fontSize = value AloftCombatText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on combat text"],
get = function(i) return AloftCombatText.db.profile.shadow end,
set = function(i, v) AloftCombatText.db.profile.shadow = v AloftCombatText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the outline for combat text"],
get = function(i) return AloftCombatText.db.profile.outline end,
set = function(i, value) AloftCombatText.db.profile.outline = value AloftCombatText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust combat text position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCombatText:IsEnabled() or not AloftCombatText.db or not AloftCombatText.db.profile or not (AloftCombatText.db.profile.enableTarget or AloftCombatText.db.profile.enableGroup or AloftCombatText.db.profile.enableOther) end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the combat text"],
get = function(i) return AloftCombatText.db.profile.point end,
set = function(i, v) AloftCombatText.db.profile.point = v AloftCombatText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the combat text"],
get = function(i) return AloftCombatText.db.profile.relativeToPoint end,
set = function(i, v) AloftCombatText.db.profile.relativeToPoint = v AloftCombatText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the combat text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCombatText.db.profile.offsetX end,
set = function(i, v) AloftCombatText.db.profile.offsetX = v AloftCombatText:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the combat text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCombatText.db.profile.offsetY end,
set = function(i, v) AloftCombatText.db.profile.offsetY = v AloftCombatText:UpdateAll() end
},
},
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the alpha of the combat text"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not (AloftCombatText.db.profile.enableTarget or AloftCombatText.db.profile.enableGroup or AloftCombatText.db.profile.enableOther) end,
get = function(i) return AloftCombatText.db.profile.alpha end,
set = function(i, v) AloftCombatText.db.profile.alpha = v AloftCombatText:UpdateAll() end
},
colors =
{
type = 'group',
name = L["Colors"],
desc = L["Customize colors"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCombatText:IsEnabled() or not AloftCombatText.db or not AloftCombatText.db.profile or not (AloftCombatText.db.profile.enableTarget or AloftCombatText.db.profile.enableGroup or AloftCombatText.db.profile.enableOther) end,
args =
{
physical =
{
type = 'color',
width = 'full',
name = L["Physical"],
desc = L["Sets the color for physical damage"],
order = 1,
get = function(i) return unpack(AloftCombatText.db.profile.colors[1]) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors[1] = { r, g, b } end,
},
holy =
{
type = 'color',
width = 'full',
name = L["Holy"],
desc = L["Sets the color for holy damage"],
order = 2,
get = function(i) return unpack(AloftCombatText.db.profile.colors[2]) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors[2] = { r, g, b } end,
},
fire =
{
type = 'color',
width = 'full',
name = L["Fire"],
desc = L["Sets the color for fire damage"],
order = 2,
get = function(i) return unpack(AloftCombatText.db.profile.colors[4]) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors[4] = { r, g, b } end,
},
nature =
{
type = 'color',
width = 'full',
name = L["Nature"],
desc = L["Sets the color for nature damage"],
order = 2,
get = function(i) return unpack(AloftCombatText.db.profile.colors[8]) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors[8] = { r, g, b } end,
},
frost =
{
type = 'color',
width = 'full',
name = L["Frost"],
desc = L["Sets the color for frost damage"],
order = 2,
get = function(i) return unpack(AloftCombatText.db.profile.colors[16]) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors[16] = { r, g, b } end,
},
shadow =
{
type = 'color',
width = 'full',
name = L["Shadow"],
desc = L["Sets the color for shadow damage"],
order = 2,
get = function(i) return unpack(AloftCombatText.db.profile.colors[32]) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors[32] = { r, g, b } end,
},
arcane =
{
type = 'color',
width = 'full',
name = L["Arcane"],
desc = L["Sets the color for arcane damage"],
order = 2,
get = function(i) return unpack(AloftCombatText.db.profile.colors[64]) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors[64] = { r, g, b } end,
},
heal =
{
type = 'color',
width = 'full',
name = L["Heal"],
desc = L["Sets the color for healing"],
order = 3,
get = function(i) return unpack(AloftCombatText.db.profile.colors.heal) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors.heal = { r, g, b } end,
},
text =
{
type = 'color',
width = 'full',
name = L["Text"],
desc = L["Sets the color for text feedback"],
order = 3,
get = function(i) return unpack(AloftCombatText.db.profile.colors.text) end,
set = function(i, r, g, b) AloftCombatText.db.profile.colors.text = { r, g, b } end,
},
reset =
{
type = 'execute',
width = 'full',
name = L["Reset"],
desc = L["Resets all of the colors to default"],
order = -1,
func = function(i)
AloftCombatText.db.profile.colors[1] = SPELL_COLOR_PHYSICAL -- Physical
AloftCombatText.db.profile.colors[2] = SPELL_COLOR_HOLY -- Holy
AloftCombatText.db.profile.colors[4] = SPELL_COLOR_FIRE -- Fire
AloftCombatText.db.profile.colors[8] = SPELL_COLOR_NATURE -- Nature
AloftCombatText.db.profile.colors[16] = SPELL_COLOR_FROST -- Frost
AloftCombatText.db.profile.colors[32] = SPELL_COLOR_SHADOW -- Shadow
AloftCombatText.db.profile.colors[64] = SPELL_COLOR_ARCANE -- Arcane
 
AloftCombatText.db.profile.colors.energize = SPELL_COLOR_ENERGIZE
AloftCombatText.db.profile.colors.text = SPELL_COLOR_NONE
AloftCombatText.db.profile.colors.heal = SPELL_COLOR_HEAL
end
},
setAll =
{
type = 'color',
width = 'full',
name = L["Set All"],
desc = L["Sets all of the colors"],
get = function(i) return unpack(AloftCombatText.db.profile.colors[1]) end,
set = function(i, r, g, b)
AloftCombatText.db.profile.colors[1] = { r, g, b, } -- Physical
AloftCombatText.db.profile.colors[2] = { r, g, b, } -- Holy
AloftCombatText.db.profile.colors[4] = { r, g, b, } -- Fire
AloftCombatText.db.profile.colors[8] = { r, g, b, } -- Nature
AloftCombatText.db.profile.colors[16] = { r, g, b, } -- Frost
AloftCombatText.db.profile.colors[32] = { r, g, b, } -- Shadow
AloftCombatText.db.profile.colors[64] = { r, g, b, } -- Arcane
 
AloftCombatText.db.profile.colors.energize = { r, g, b, }
AloftCombatText.db.profile.colors.text = { r, g, b, }
AloftCombatText.db.profile.colors.heal = { r, g, b, }
end,
order = -1,
},
},
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCombatText/AloftCombatTextLocale.lua New file
0,0 → 1,536
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local L = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCombatText", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Combat Text"] = "Combat Text"
--[[ enUS ]] L["Combat text options"] = "Combat text options"
--[[ enUS ]] L["Enable Target"] = "Enable Target"
--[[ enUS ]] L["Show combat text on target nameplates"] = "Show combat text on target nameplates"
--[[ enUS ]] L["Enable Group"] = "Enable Group"
--[[ enUS ]] L["Show combat text on group member nameplates"] = "Show combat text on group member nameplates"
--[[ enUS ]] L["Enable Other"] = "Enable Other"
--[[ enUS ]] L["Show combat text on other nameplates"] = "Show combat text on other nameplates"
 
--[[ enUS ]] L["Damage/Healing By Player"] = "Damage/Healing By Player"
--[[ enUS ]] L["Show combat text for damage/healing done by the player"] = "Show combat text for damage/healing done by the player"
--[[ enUS ]] L["Damage/Healing By Group"] = "Damage/Healing By Group"
--[[ enUS ]] L["Show combat text for damage/healing done by group members (including pets)"] = "Show combat text for damage/healing done by group members (including pets)"
--[[ enUS ]] L["Damage/Healing By Other"] = "Damage/Healing By Other"
--[[ enUS ]] L["Show combat text for damage/healing done by other units"] = "Show combat text for damage/healing done by other units"
--[[ enUS ]] L["Include Overhealing"] = "Include Overhealing"
--[[ enUS ]] L["Show combat text for healing that includes overhealing"] = "Show combat text for healing that includes overhealing"
 
--[[ enUS ]] L["Typeface"] = "Typeface"
--[[ enUS ]] L["Combat text typeface options"] = "Combat text typeface options"
--[[ enUS ]] L["Font"] = "Font"
--[[ enUS ]] L["Sets the font for combat text"] = "Sets the font for combat text"
--[[ enUS ]] L["Font Size"] = "Font Size"
--[[ enUS ]] L["Sets the font height of the combat text"] = "Sets the font height of the combat text"
--[[ enUS ]] L["Font Shadow"] = "Font Shadow"
--[[ enUS ]] L["Show font shadow on combat text"] = "Show font shadow on combat text"
--[[ enUS ]] L["Outline"] = "Outline"
--[[ enUS ]] L["Sets the outline for combat text"] = "Sets the outline for combat text"
 
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust combat text position"] = "Adjust combat text position"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the combat text"] = "Sets the anchor for the combat text"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the combat text"] = "Sets the relative point on the health bar to anchor the combat text"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the combat text"] = "X offset of the combat text"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the combat text"] = "Y offset of the combat text"
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Sets the alpha of the combat text"] = "Sets the alpha of the combat text"
 
--[[ enUS ]] L["None"] = "None"
--[[ enUS ]] L["Normal"] = "Normal"
--[[ enUS ]] L["Thick"] = "Thick"
 
--[[ enUS ]] L["Colors"] = "Colors"
--[[ enUS ]] L["Customize colors"] = "Customize colors"
--[[ enUS ]] L["Physical"] = "Physical"
--[[ enUS ]] L["Sets the color for physical damage"] = "Sets the color for physical damage"
--[[ enUS ]] L["Holy"] = "Holy"
--[[ enUS ]] L["Sets the color for holy damage"] = "Sets the color for holy damage"
--[[ enUS ]] L["Fire"] = "Fire"
--[[ enUS ]] L["Sets the color for fire damage"] = "Sets the color for fire damage"
--[[ enUS ]] L["Nature"] = "Nature"
--[[ enUS ]] L["Sets the color for nature damage"] = "Sets the color for nature damage"
--[[ enUS ]] L["Frost"] = "Frost"
--[[ enUS ]] L["Sets the color for frost damage"] = "Sets the color for frost damage"
--[[ enUS ]] L["Shadow"] = "Shadow"
--[[ enUS ]] L["Sets the color for shadow damage"] = "Sets the color for shadow damage"
--[[ enUS ]] L["Arcane"] = "Arcane"
--[[ enUS ]] L["Sets the color for arcane damage"] = "Sets the color for arcane damage"
--[[ enUS ]] L["Heal"] = "Heal"
--[[ enUS ]] L["Sets the color for healing"] = "Sets the color for healing"
--[[ enUS ]] L["Text"] = "Text"
--[[ enUS ]] L["Sets the color for text feedback"] = "Sets the color for text feedback"
--[[ enUS ]] L["Default"] = "Default"
--[[ enUS ]] L["Sets the default combat text color"] = "Sets the default combat text color"
--[[ enUS ]] L["Reset"] = "Reset"
--[[ enUS ]] L["Resets all of the colors to default"] = "Resets all of the colors to default"
--[[ enUS ]] L["Set All"] = "Set All"
--[[ enUS ]] L["Sets all of the colors"] = "Sets all of the colors"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftCombatText"] = "AloftCombatText"
--[[ enUS ]] mL["Display combat text on group member nameplates"] = "Display combat text on group member nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCombatText", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Combat Text"] = "전투 텍스트"
--[[ koKR ]] L["Combat text options"] = "전투 텍스트 설정"
--[[ koKR ]] L["Enable Target"] = "대상 사용"
--[[ koKR ]] L["Show combat text on target nameplates"] = "대상의 이름표에 전투 텍스트를 사용합니다."
--[[ koKR ]] L["Enable Group"] = "파티 사용"
--[[ koKR ]] L["Show combat text on group member nameplates"] = "파티원의 이름표에 전투 텍스트를 표시합니다."
--[[ koKR ]] L["Enable Other"] = "Enable Other"
--[[ koKR ]] L["Show combat text on other nameplates"] = "Show combat text on other nameplates"
 
--[[ koKR ]] L["Damage/Healing By Player"] = "Damage/Healing By Player"
--[[ koKR ]] L["Show combat text for damage/healing done by the player"] = "Show combat text for damage/healing done by the player"
--[[ koKR ]] L["Damage/Healing By Group"] = "Damage/Healing By Group"
--[[ koKR ]] L["Show combat text for damage/healing done by group members (including pets)"] = "Show combat text for damage/healing done by group members (including pets)"
--[[ koKR ]] L["Damage/Healing By Other"] = "Damage/Healing By Other"
--[[ koKR ]] L["Show combat text for damage/healing done by other units"] = "Show combat text for damage/healing done by other units"
--[[ koKR ]] L["Include Overhealing"] = "Include Overhealing"
--[[ koKR ]] L["Show combat text for healing that includes overhealing"] = "Show combat text for healing that includes overhealing"
 
--[[ koKR ]] L["Typeface"] = "서체"
--[[ koKR ]] L["Combat text typeface options"] = "전투 텍스트 서체 설정"
--[[ koKR ]] L["Font"] = "글꼴"
--[[ koKR ]] L["Sets the font for combat text"] = "전투 텍스트의 글꼴을 설정합니다."
--[[ koKR ]] L["Font Size"] = "글꼴 크기"
--[[ koKR ]] L["Sets the font height of the combat text"] = "전투 텍스트의 글꼴 높이를 설정합니다."
--[[ koKR ]] L["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] L["Show font shadow on combat text"] = "전투 텍스트에 그림자를 표시합니다."
--[[ koKR ]] L["Outline"] = "테두리"
--[[ koKR ]] L["Sets the outline for combat text"] = "전투 텍스트에 대한 테두리를 설정합니다."
 
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust combat text position"] = "전투 텍스트 위치 조절"
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the combat text"] = "전투 텍스트의 앵커를 설정합니다."
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the combat text"] = "생명력 바에서 전투 텍스트의 앵커 위치를 설정합니다."
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the combat text"] = "전투 텍스트의 X 좌표입니다."
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the combat text"] = "전투 텍스트의 Y 좌표입니다."
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Sets the alpha of the combat text"] = "전투 텍스트의 투명도를 설정합니다."
 
--[[ koKR ]] L["None"] = "없음"
--[[ koKR ]] L["Normal"] = "기본"
--[[ koKR ]] L["Thick"] = "굵게"
 
--[[ koKR ]] L["Colors"] = "색상"
--[[ koKR ]] L["Customize colors"] = "사용자 지정 색상"
--[[ koKR ]] L["Physical"] = "물리"
--[[ koKR ]] L["Sets the color for physical damage"] = "물리적 피해량의 색상을 설정합니다."
--[[ koKR ]] L["Holy"] = "신성"
--[[ koKR ]] L["Sets the color for holy damage"] = "신성 피해량의 색상을 설정합니다."
--[[ koKR ]] L["Fire"] = "화염"
--[[ koKR ]] L["Sets the color for fire damage"] = "화염 피해량의 색상을 설정합니다."
--[[ koKR ]] L["Nature"] = "자연"
--[[ koKR ]] L["Sets the color for nature damage"] = "자연 피해량의 색상을 설정합니다."
--[[ koKR ]] L["Frost"] = "냉기"
--[[ koKR ]] L["Sets the color for frost damage"] = "냉기 피해량의 색상을 설정합니다."
--[[ koKR ]] L["Shadow"] = "암흑"
--[[ koKR ]] L["Sets the color for shadow damage"] = "암흑 피해량의 색상을 설정합니다."
--[[ koKR ]] L["Arcane"] = "비전"
--[[ koKR ]] L["Sets the color for arcane damage"] = "비전 피해량의 색상을 설정합니다."
--[[ koKR ]] L["Heal"] = "치유"
--[[ koKR ]] L["Sets the color for healing"] = "치유량의 색상을 설정합니다."
--[[ koKR ]] L["Text"] = "글자"
--[[ koKR ]] L["Sets the color for text feedback"] = "피드백 글자의 색상을 설정합니다."
--[[ koKR ]] L["Default"] = "Default"
--[[ koKR ]] L["Sets the default combat text color"] = "Sets the default combat text color"
--[[ koKR ]] L["Reset"] = "초기화"
--[[ koKR ]] L["Resets all of the colors to default"] = "기본 색상으로 모두 초기화합니다."
--[[ koKR ]] L["Set All"] = "전체 설정"
--[[ koKR ]] L["Sets all of the colors"] = "전체 색상을 설정합니다."
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftCombatText"] = "AloftCombatText"
--[[ koKR ]] mL["Display combat text on group member nameplates"] = "Display combat text on group member nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCombatText", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Combat Text"] = "Текст боя"
--[[ ruRU ]] L["Combat text options"] = "Настройка текста боя"
--[[ ruRU ]] L["Enable Target"] = "Включить цель"
--[[ ruRU ]] L["Show combat text on target nameplates"] = "Отображать текст боя на табличке цели"
--[[ ruRU ]] L["Enable Group"] = "Включить группу"
--[[ ruRU ]] L["Show combat text on group member nameplates"] = "Отображать текст боя на табличках участников группы"
--[[ ruRU ]] L["Enable Other"] = "Enable Other"
--[[ ruRU ]] L["Show combat text on other nameplates"] = "Show combat text on other nameplates"
 
--[[ ruRU ]] L["Damage/Healing By Player"] = "Damage/Healing By Player"
--[[ ruRU ]] L["Show combat text for damage/healing done by the player"] = "Show combat text for damage/healing done by the player"
--[[ ruRU ]] L["Damage/Healing By Group"] = "Damage/Healing By Group"
--[[ ruRU ]] L["Show combat text for damage/healing done by group members (including pets)"] = "Show combat text for damage/healing done by group members (including pets)"
--[[ ruRU ]] L["Damage/Healing By Other"] = "Damage/Healing By Other"
--[[ ruRU ]] L["Show combat text for damage/healing done by other units"] = "Show combat text for damage/healing done by other units"
--[[ ruRU ]] L["Include Overhealing"] = "Include Overhealing"
--[[ ruRU ]] L["Show combat text for healing that includes overhealing"] = "Show combat text for healing that includes overhealing"
 
--[[ ruRU ]] L["Typeface"] = "Шрифт"
--[[ ruRU ]] L["Combat text typeface options"] = "Настройка шрифта текста боя"
--[[ ruRU ]] L["Font"] = "Шрифт"
--[[ ruRU ]] L["Sets the font for combat text"] = "Задает шрифт для текста боя"
--[[ ruRU ]] L["Font Size"] = "Размер шрифта"
--[[ ruRU ]] L["Sets the font height of the combat text"] = "Задает высоту шрифта для текста боя"
--[[ ruRU ]] L["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] L["Show font shadow on combat text"] = "Отображать тень для текста боя"
--[[ ruRU ]] L["Outline"] = "Контур"
--[[ ruRU ]] L["Sets the outline for combat text"] = "Задает окантовку для текста боя"
 
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust combat text position"] = "Задать место текста боя"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the combat text"] = "Задает прикрепление текста боя"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the combat text"] = "Задает точку для положения текста боя относительно полоски здоровья"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the combat text"] = "Смещение текста боя по X"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the combat text"] = "Смещение текста боя по Y"
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Sets the alpha of the combat text"] = "Задает прозрачность текста боя"
 
--[[ ruRU ]] L["None"] = "Нет"
--[[ ruRU ]] L["Normal"] = "Обычно"
--[[ ruRU ]] L["Thick"] = "Жирный"
 
--[[ ruRU ]] L["Colors"] = "Цвета"
--[[ ruRU ]] L["Customize colors"] = "Настройка цветов"
--[[ ruRU ]] L["Physical"] = "Физическое"
--[[ ruRU ]] L["Sets the color for physical damage"] = "Задает цвет для физического урона"
--[[ ruRU ]] L["Holy"] = "Священная магия"
--[[ ruRU ]] L["Sets the color for holy damage"] = "Задает цвет для урона от священной магии"
--[[ ruRU ]] L["Fire"] = "Огонь"
--[[ ruRU ]] L["Sets the color for fire damage"] = "Задает цвет для урона от магии огня"
--[[ ruRU ]] L["Nature"] = "Природная магия"
--[[ ruRU ]] L["Sets the color for nature damage"] = "Задает цвет для урона от магии природы"
--[[ ruRU ]] L["Frost"] = "Лед"
--[[ ruRU ]] L["Sets the color for frost damage"] = "Задать цвет для урона от магии льда"
--[[ ruRU ]] L["Shadow"] = "Тень"
--[[ ruRU ]] L["Sets the color for shadow damage"] = "Задает цвет для урона от теневой магии"
--[[ ruRU ]] L["Arcane"] = "Тайная магия"
--[[ ruRU ]] L["Sets the color for arcane damage"] = "Задает цвет для урона от тайной магии"
--[[ ruRU ]] L["Heal"] = "Лечение"
--[[ ruRU ]] L["Sets the color for healing"] = "Задать цвет для излечения"
--[[ ruRU ]] L["Text"] = "Текст"
--[[ ruRU ]] L["Sets the color for text feedback"] = "Задает цвет для текста отзыва"
--[[ ruRU ]] L["Default"] = "По умолчанию"
--[[ ruRU ]] L["Sets the default combat text color"] = "Задает цвет текста боя по умолчанию"
--[[ ruRU ]] L["Reset"] = "Сброс"
--[[ ruRU ]] L["Resets all of the colors to default"] = "Сбрасывает все цвета в настройки по умолчанию"
--[[ ruRU ]] L["Set All"] = "Задать все"
--[[ ruRU ]] L["Sets all of the colors"] = "Задает все цвета"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftCombatText"] = "AloftCombatText"
--[[ ruRU ]] mL["Display combat text on group member nameplates"] = "Отображает текст боя на табличках участников группы"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCombatText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Combat Text"] = "战斗信息文字"
--[[ zhCN ]] L["Combat text options"] = "战斗信息文字相关设置"
--[[ zhCN ]] L["Enable Target"] = "启用目标"
--[[ zhCN ]] L["Show combat text on target nameplates"] = "在目标的姓名板上显示战斗信息文字"
--[[ zhCN ]] L["Enable Group"] = "启用队友"
--[[ zhCN ]] L["Show combat text on group member nameplates"] = "在队友的姓名板上显示战斗信息文字"
--[[ zhCN ]] L["Enable Other"] = "Enable Other"
--[[ zhCN ]] L["Show combat text on other nameplates"] = "Show combat text on other nameplates"
 
--[[ zhCN ]] L["Damage/Healing By Player"] = "Damage/Healing By Player"
--[[ zhCN ]] L["Show combat text for damage/healing done by the player"] = "Show combat text for damage/healing done by the player"
--[[ zhCN ]] L["Damage/Healing By Group"] = "Damage/Healing By Group"
--[[ zhCN ]] L["Show combat text for damage/healing done by group members (including pets)"] = "Show combat text for damage/healing done by group members (including pets)"
--[[ zhCN ]] L["Damage/Healing By Other"] = "Damage/Healing By Other"
--[[ zhCN ]] L["Show combat text for damage/healing done by other units"] = "Show combat text for damage/healing done by other units"
--[[ zhCN ]] L["Include Overhealing"] = "Include Overhealing"
--[[ zhCN ]] L["Show combat text for healing that includes overhealing"] = "Show combat text for healing that includes overhealing"
 
--[[ zhCN ]] L["Typeface"] = "式样"
--[[ zhCN ]] L["Combat text typeface options"] = "战斗信息文字式样设置"
--[[ zhCN ]] L["Font"] = "字体"
--[[ zhCN ]] L["Sets the font for combat text"] = "设定战斗信息文字的字体"
--[[ zhCN ]] L["Font Size"] = "字号"
--[[ zhCN ]] L["Sets the font height of the combat text"] = "设定战斗信息文字的字号"
--[[ zhCN ]] L["Font Shadow"] = "字体阴影"
--[[ zhCN ]] L["Show font shadow on combat text"] = "显示战斗信息文字的字体阴影"
--[[ zhCN ]] L["Outline"] = "轮廓"
--[[ zhCN ]] L["Sets the outline for combat text"] = "设定战斗信息文字的字体轮廓"
 
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust combat text position"] = "调整战斗信息文字的位置"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the combat text"] = "设定战斗信息文字的锚点"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the combat text"] = "设定战斗信息文字固定在生命值显示条的相对位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the combat text"] = "战斗信息文字的X轴偏移量"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the combat text"] = "战斗信息文字的Y轴偏移量"
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Sets the alpha of the combat text"] = "设定战斗信息文字的透明度"
 
--[[ zhCN ]] L["None"] = "无"
--[[ zhCN ]] L["Normal"] = "正常"
--[[ zhCN ]] L["Thick"] = "粗"
 
--[[ zhCN ]] L["Colors"] = "颜色"
--[[ zhCN ]] L["Customize colors"] = "自定义颜色"
--[[ zhCN ]] L["Physical"] = "物理"
--[[ zhCN ]] L["Sets the color for physical damage"] = "设定物理伤害的颜色"
--[[ zhCN ]] L["Holy"] = "神圣"
--[[ zhCN ]] L["Sets the color for holy damage"] = "设定神圣伤害的颜色"
--[[ zhCN ]] L["Fire"] = "火焰"
--[[ zhCN ]] L["Sets the color for fire damage"] = "设定火焰伤害的颜色"
--[[ zhCN ]] L["Nature"] = "自然"
--[[ zhCN ]] L["Sets the color for nature damage"] = "设定自然伤害的颜色"
--[[ zhCN ]] L["Frost"] = "冰霜"
--[[ zhCN ]] L["Sets the color for frost damage"] = "设定冰霜伤害的颜色"
--[[ zhCN ]] L["Shadow"] = "暗影"
--[[ zhCN ]] L["Sets the color for shadow damage"] = "设定暗影伤害的颜色"
--[[ zhCN ]] L["Arcane"] = "奥术"
--[[ zhCN ]] L["Sets the color for arcane damage"] = "设定奥术伤害的颜色"
--[[ zhCN ]] L["Heal"] = "治疗"
--[[ zhCN ]] L["Sets the color for healing"] = "设定治疗的颜色"
--[[ zhCN ]] L["Text"] = "文字"
--[[ zhCN ]] L["Sets the color for text feedback"] = "设定回应文字的颜色"
--[[ zhCN ]] L["Default"] = "Default"
--[[ zhCN ]] L["Sets the default combat text color"] = "Sets the default combat text color"
--[[ zhCN ]] L["Reset"] = "重置"
--[[ zhCN ]] L["Resets all of the colors to default"] = "将所有颜色设定重置为默认"
--[[ zhCN ]] L["Set All"] = "设定全部"
--[[ zhCN ]] L["Sets all of the colors"] = "设定全部颜色"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftCombatText"] = "战斗文字"
--[[ zhCN ]] mL["Display combat text on group member nameplates"] = "在小队成员的姓名板上显示战斗文字"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCombatText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Combat Text"] = "戰鬥文字"
--[[ zhTW ]] L["Combat text options"] = "戰鬥文字選項"
--[[ zhTW ]] L["Enable Target"] = "啟用目標"
--[[ zhTW ]] L["Show combat text on target nameplates"] = "在目標名牌顯示戰鬥文字"
--[[ zhTW ]] L["Enable Group"] = "啟用團體"
--[[ zhTW ]] L["Show combat text on group member nameplates"] = "在團體成員名牌顯示戰鬥文字"
--[[ zhTW ]] L["Enable Other"] = "Enable Other"
--[[ zhTW ]] L["Show combat text on other nameplates"] = "Show combat text on other nameplates"
 
--[[ zhTW ]] L["Damage/Healing By Player"] = "Damage/Healing By Player"
--[[ zhTW ]] L["Show combat text for damage/healing done by the player"] = "Show combat text for damage/healing done by the player"
--[[ zhTW ]] L["Damage/Healing By Group"] = "Damage/Healing By Group"
--[[ zhTW ]] L["Show combat text for damage/healing done by group members (including pets)"] = "Show combat text for damage/healing done by group members (including pets)"
--[[ zhTW ]] L["Damage/Healing By Other"] = "Damage/Healing By Other"
--[[ zhTW ]] L["Show combat text for damage/healing done by other units"] = "Show combat text for damage/healing done by other units"
--[[ zhTW ]] L["Include Overhealing"] = "Include Overhealing"
--[[ zhTW ]] L["Show combat text for healing that includes overhealing"] = "Show combat text for healing that includes overhealing"
 
--[[ zhTW ]] L["Typeface"] = "字體"
--[[ zhTW ]] L["Combat text typeface options"] = "戰鬥文字字體選項"
--[[ zhTW ]] L["Font"] = "字型"
--[[ zhTW ]] L["Sets the font for combat text"] = "戰鬥文字字型"
--[[ zhTW ]] L["Font Size"] = "字型大小"
--[[ zhTW ]] L["Sets the font height of the combat text"] = "戰鬥文字字型大小"
--[[ zhTW ]] L["Font Shadow"] = "字型陰影"
--[[ zhTW ]] L["Show font shadow on combat text"] = "戰鬥文字字型陰影"
--[[ zhTW ]] L["Outline"] = "輪廓"
--[[ zhTW ]] L["Sets the outline for combat text"] = "戰鬥文字字型輪廓"
 
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust combat text position"] = "戰鬥文字位置"
--[[ zhTW ]] L["Anchor"] = "定位點"
--[[ zhTW ]] L["Sets the anchor for the combat text"] = "戰鬥文字定位點"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the combat text"] = "戰鬥文字固定在生命力條的位置"
--[[ zhTW ]] L["X Offset"] = "X位移"
--[[ zhTW ]] L["X offset of the combat text"] = "戰鬥文字X位移"
--[[ zhTW ]] L["Y Offset"] = "Y位移"
--[[ zhTW ]] L["Y offset of the combat text"] = "戰鬥文字Y位移"
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the alpha of the combat text"] = "戰鬥文字透明度"
 
--[[ zhTW ]] L["None"] = "無"
--[[ zhTW ]] L["Normal"] = "正常"
--[[ zhTW ]] L["Thick"] = "粗"
 
--[[ zhTW ]] L["Colors"] = "顏色"
--[[ zhTW ]] L["Customize colors"] = "自定顏色"
--[[ zhTW ]] L["Physical"] = "物理"
--[[ zhTW ]] L["Sets the color for physical damage"] = "物理傷害顏色"
--[[ zhTW ]] L["Holy"] = "神聖"
--[[ zhTW ]] L["Sets the color for holy damage"] = "神聖傷害顏色"
--[[ zhTW ]] L["Fire"] = "火焰"
--[[ zhTW ]] L["Sets the color for fire damage"] = "火焰傷害顏色"
--[[ zhTW ]] L["Nature"] = "自然"
--[[ zhTW ]] L["Sets the color for nature damage"] = "自然傷害顏色"
--[[ zhTW ]] L["Frost"] = "冰霜"
--[[ zhTW ]] L["Sets the color for frost damage"] = "冰霜傷害顏色"
--[[ zhTW ]] L["Shadow"] = "暗影"
--[[ zhTW ]] L["Sets the color for shadow damage"] = "暗影傷害顏色"
--[[ zhTW ]] L["Arcane"] = "秘法"
--[[ zhTW ]] L["Sets the color for arcane damage"] = "秘法傷害顏色"
--[[ zhTW ]] L["Heal"] = "治療"
--[[ zhTW ]] L["Sets the color for healing"] = "治療顏色"
--[[ zhTW ]] L["Text"] = "文字"
--[[ zhTW ]] L["Sets the color for text feedback"] = "回應文字顏色"
--[[ zhTW ]] L["Default"] = "Default"
--[[ zhTW ]] L["Sets the default combat text color"] = "Sets the default combat text color"
--[[ zhTW ]] L["Reset"] = "重設"
--[[ zhTW ]] L["Resets all of the colors to default"] = "重設全部顏色回預設值"
--[[ zhTW ]] L["Set All"] = "設定全部"
--[[ zhTW ]] L["Sets all of the colors"] = "設定全部顏色"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftCombatText"] = "戰鬥文字"
--[[ zhTW ]] mL["Display combat text on group member nameplates"] = "在小隊成員的名牌上顯示戰鬥文字"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCombatText", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCombatText = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
AloftOptions/AloftCombatText/AloftCombatTextModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftCombatText =
{
type = 'toggle',
width = 'full',
name = L["AloftCombatText"],
desc = L["Display combat text on group member nameplates"],
get = function(i) return AloftModules.db.profile.AloftCombatText end,
set = function(i, v) AloftModules.db.profile.AloftCombatText = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftHealthText/AloftHealthTextOptions.lua New file
0,0 → 1,248
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftHealthText", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftHealthText
if not L then return end
 
local AloftHealthText = Aloft:GetModule("HealthText")
if not AloftHealthText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
local healthTags =
{
NONE = "",
PERCENT = "[HealthFraction:Percent]",
GROUPHEALTH = "[IsGroup:HealthBarValue:Short]",
GROUPHEALTHDEFICIT = "[IsGroup:HealthBarDeficit:HideZero:Negate:Short]",
HEALTH = "[Select(Health, Health:Short, HealthFraction:Percent)]",
HEALTHANDPERCENT = "[Health:Short:Suffix(\" (\")][HealthFraction:Percent][Health:\")\"]",
FULL = "[Health:Short:Suffix(\"/\")][MaxHealth:Short:Suffix(\" \")][Health:\"(\"][HealthFraction:Percent][Health:\")\"]",
SMART = "[Select(IsFriendly, HealthDeficit:Negate:HideZero:Short:HexColor(\"ff8080\"), Select(Health, Health:Short, HealthFraction:Percent))]",
}
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.healthBar.args.healthText =
{
type = 'group',
name = L["Health Text"],
desc = L["Health text options"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthText:IsEnabled() or not AloftHealthText.db or not AloftHealthText.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show health text on nameplates"],
get = function(i) return AloftHealthText.db.profile.enable end,
set = function(i, v) AloftHealthText.db.profile.enable = v AloftHealthText:UpdateTag() AloftHealthText:UpdateAll() end,
order = 1
},
typeface =
{
type = "group",
name = L["Typeface"],
desc = L["Health text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthText:IsEnabled() or not AloftHealthText.db or not AloftHealthText.db.profile or not AloftHealthText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for health text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.healthBar.args.healthText.args.typeface.args.font.values) do
if v == AloftHealthText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftHealthText.db.profile.font = Aloft.Options.args.healthBar.args.healthText.args.typeface.args.font.values[v]
AloftHealthText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the health text"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftHealthText.db.profile.fontSize end,
set = function(i, value) AloftHealthText.db.profile.fontSize = value AloftHealthText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on health text"],
get = function(i) return AloftHealthText.db.profile.shadow end,
set = function(i, v) AloftHealthText.db.profile.shadow = v AloftHealthText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the outline for health text"],
get = function(i) return AloftHealthText.db.profile.outline end,
set = function(i, value) AloftHealthText.db.profile.outline = value AloftHealthText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
mode =
{
type = 'select',
width = 'full',
name = L["Mode"],
desc = L["Choose what to show for health text"],
disabled = function(i) return not AloftHealthText.db.profile.enable end,
get = function(i) return AloftHealthText.db.profile.mode end,
set = function(i, value) AloftHealthText.db.profile.mode = value AloftHealthText:UpdateTag() AloftHealthText:UpdateAll() end,
values = { PERCENT = L["Percent"], GROUPHEALTH = L["Group Health"], GROUPHEALTHDEFICIT = L["Group Health Deficit"], HEALTH = L["Health"], HEALTHANDPERCENT = L["Health & Percent"], FULL = L["Full"], SMART = L["Smart"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust health text position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthText:IsEnabled() or not AloftHealthText.db or not AloftHealthText.db.profile or not AloftHealthText.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the health text"],
get = function(i) return AloftHealthText.db.profile.point end,
set = function(i, v) AloftHealthText.db.profile.point = v AloftHealthText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the health text"],
get = function(i) return AloftHealthText.db.profile.relativeToPoint end,
set = function(i, v) AloftHealthText.db.profile.relativeToPoint = v AloftHealthText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the health text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftHealthText.db.profile.offsetX end,
set = function(i, v) AloftHealthText.db.profile.offsetX = v AloftHealthText:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the health text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftHealthText.db.profile.offsetY end,
set = function(i, v) AloftHealthText.db.profile.offsetY = v AloftHealthText:UpdateAll() end
},
},
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the alpha of the health text"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftHealthText.db.profile.enable end,
get = function(i) return AloftHealthText.db.profile.alpha end,
set = function(i, v) AloftHealthText.db.profile.alpha = v AloftHealthText:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the health text color"],
disabled = function(i) return not AloftHealthText.db.profile.enable end,
get = function(i) return unpack(AloftHealthText.db.profile.color) end,
set = function(i, r, g, b, a) AloftHealthText.db.profile.color = { r, g, b, a } AloftHealthText:UpdateAll() end,
},
advanced =
{
type = 'group',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthText:IsEnabled() or not AloftHealthText.db or not AloftHealthText.db.profile or not AloftHealthText.db.profile.enable end,
args =
{
format =
{
type = 'input',
width = 'full',
name = L["Format"],
desc = L["Health tag"],
usage = L["<Any tag string>"],
get = function(i) return Aloft:HighlightTagSyntax(AloftHealthText.db.profile.format) end,
set = function(i, v)
AloftHealthText.db.profile.format = Aloft:FixTagCasing(v)
AloftHealthText.textMethodData = nil
AloftHealthText.textMethod = nil
Aloft:DetermineDataSources()
AloftHealthText:UpdateAll()
end,
}
},
},
},
}
 
-----------------------------------------------------------------------------
 
function AloftHealthText:UpdateTag()
local tag = self.db.profile.mode
if not self.db.profile.enable then tag = "NONE" end
self.db.profile.format = healthTags[tag]
 
self.textMethodData = nil
self.textMethod = nil
 
Aloft:DetermineDataSources()
end
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftHealthText/AloftHealthTextLocale.lua New file
0,0 → 1,436
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
if not AloftLocale or not AloftLocale.AloftModules then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
local mL = AloftLocale.AloftModules
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftHealthText", function()
 
-----------------------------------------------------------------------------
 
-- TODO: on the surface, this wastes space in the enUS locale; the metatable could just return the canonical string as the localization;
-- BUT, this serves as a default locale, and also will permit the metatable to check/notify on missing locale strings
 
--[[ enUS ]] L["Health Text"] = "Health Text"
--[[ enUS ]] L["Health text options"] = "Health text options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Show health text on nameplates"] = "Show health text on nameplates"
--[[ enUS ]] L["Unknown"] = "Unknown" -- unit name for "Unknown" units
 
--[[ enUS ]] L["Typeface"] = "Typeface"
--[[ enUS ]] L["Health text typeface options"] = "Health text typeface options"
--[[ enUS ]] L["Font"] = "Font"
--[[ enUS ]] L["Sets the font for health text"] = "Sets the font for health text"
--[[ enUS ]] L["Font Size"] = "Font Size"
--[[ enUS ]] L["Sets the font height of the health text"] = "Sets the font height of the health text"
--[[ enUS ]] L["Font Shadow"] = "Font Shadow"
--[[ enUS ]] L["Show font shadow on health text"] = "Show font shadow on health text"
--[[ enUS ]] L["Outline"] = "Outline"
--[[ enUS ]] L["Sets the outline for health text"] = "Sets the outline for health text"
--[[ enUS ]] L["Mode"] = "Mode"
--[[ enUS ]] L["Choose what to show for health text"] = "Choose what to show for health text"
 
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust health text position"] = "Adjust health text position"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the health text"] = "Sets the anchor for the health text"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the health text"] = "Sets the relative point on the health bar to anchor the health text"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the health text"] = "X offset of the health text"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the health text"] = "Y offset of the health text"
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Sets the alpha of the health text"] = "Sets the alpha of the health text"
--[[ enUS ]] L["Color"] = "Color"
--[[ enUS ]] L["Sets the health text color"] = "Sets the health text color"
 
--[[ enUS ]] L["None"] = "None"
--[[ enUS ]] L["Normal"] = "Normal"
--[[ enUS ]] L["Thick"] = "Thick"
 
--[[ enUS ]] L["Percent"] = "Percent"
--[[ enUS ]] L["Group Health"] = "Group Health"
--[[ enUS ]] L["Group Health Deficit"] = "Group Health Deficit"
--[[ enUS ]] L["Health"] = "Health"
--[[ enUS ]] L["Health & Percent"] = "Health & Percent"
--[[ enUS ]] L["Full"] = "Full"
--[[ enUS ]] L["Smart"] = "Smart"
 
--[[ enUS ]] L["Advanced"] = "Advanced"
--[[ enUS ]] L["Options for expert users"] = "Options for expert users"
--[[ enUS ]] L["Format"] = "Format"
--[[ enUS ]] L["Health tag"] = "Health tag"
--[[ enUS ]] L["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftHealthText"] = "AloftHealthText"
--[[ enUS ]] mL["Display health data and text on nameplates"] = "Display health data and text on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftHealthText", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Health Text"] = "생명력 수치"
--[[ koKR ]] L["Health text options"] = "생명력 수치 설정"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Show health text on nameplates"] = "이름표에 생명력 수치를 표시합니다."
--[[ koKR ]] L["Unknown"] = "Unknown" -- unit name for "Unknown" units
 
--[[ koKR ]] L["Typeface"] = "서체"
--[[ koKR ]] L["Health text typeface options"] = "생명력 수치 서체 설정"
--[[ koKR ]] L["Font"] = "글꼴"
--[[ koKR ]] L["Sets the font for health text"] = "생명력 수치의 글꼴을 설정합니다."
--[[ koKR ]] L["Font Size"] = "글꼴 크기"
--[[ koKR ]] L["Sets the font height of the health text"] = "생명력 수치의 크기를 설정합니다."
--[[ koKR ]] L["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] L["Show font shadow on health text"] = "생명력 수치에 그림자를 표시합니다."
--[[ koKR ]] L["Outline"] = "테두리"
--[[ koKR ]] L["Sets the outline for health text"] = "생명력 수치의 테두리를 설정합니다."
--[[ koKR ]] L["Mode"] = "모드"
--[[ koKR ]] L["Choose what to show for health text"] = "생명력 수치의 표시 방법을 선택합니다."
 
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust health text position"] = "생명력 수치 위치 조절"
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the health text"] = "생명력 수치의 앵커를 설정합니다."
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the health text"] = "생명력 바에서 생명력 수치의 앵커 위치를 설정합니다."
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the health text"] = "생명력 수치의 X 좌표 입니다."
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the health text"] = "생명력 수치의 Y 좌표 입니다."
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Sets the alpha of the health text"] = "생명력 수치의 투명도를 설정합니다."
--[[ koKR ]] L["Color"] = "색상"
--[[ koKR ]] L["Sets the health text color"] = "생명력 수치의 색상을 설정합니다."
 
--[[ koKR ]] L["None"] = "없음"
--[[ koKR ]] L["Normal"] = "기본"
--[[ koKR ]] L["Thick"] = "굵게"
 
--[[ koKR ]] L["Percent"] = "백분율"
--[[ koKR ]] L["Group Health"] = "파티 생명력"
--[[ koKR ]] L["Group Health Deficit"] = "파티 생명력 결손치"
--[[ koKR ]] L["Health"] = "생명력"
--[[ koKR ]] L["Health & Percent"] = "생명력 & 백분율"
--[[ koKR ]] L["Full"] = "가득"
--[[ koKR ]] L["Smart"] = "자동"
 
--[[ koKR ]] L["Advanced"] = "고급"
--[[ koKR ]] L["Options for expert users"] = "고급 사용자를 위한 설정입니다."
--[[ koKR ]] L["Format"] = "형식"
--[[ koKR ]] L["Health tag"] = "생명력 태그"
--[[ koKR ]] L["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftHealthText"] = "AloftHealthText"
--[[ koKR ]] mL["Display health data and text on nameplates"] = "Display health data and text on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftHealthText", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Health Text"] = "Текст здоровья"
--[[ ruRU ]] L["Health text options"] = "Настройка текста здоровья"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Show health text on nameplates"] = "Отображать текст здоровья на табличках"
--[[ ruRU ]] L["Unknown"] = "Unknown" -- unit name for "Unknown" units
 
--[[ ruRU ]] L["Typeface"] = "Шрифт"
--[[ ruRU ]] L["Health text typeface options"] = "Настройка шрифта текста здоровья"
--[[ ruRU ]] L["Font"] = "Шрифт"
--[[ ruRU ]] L["Sets the font for health text"] = "Задает шрифт для текста здоровья"
--[[ ruRU ]] L["Font Size"] = "Размер шрифта"
--[[ ruRU ]] L["Sets the font height of the health text"] = "Задает высоту шрифта для текста здоровья"
--[[ ruRU ]] L["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] L["Show font shadow on health text"] = "Отображать тень для текста здоровья"
--[[ ruRU ]] L["Outline"] = "Контур"
--[[ ruRU ]] L["Sets the outline for health text"] = "Задает окантовку для текста здоровья"
--[[ ruRU ]] L["Mode"] = "Режим"
--[[ ruRU ]] L["Choose what to show for health text"] = "Выбрать, что показывать в тексте здоровья"
 
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust health text position"] = "Задать место текста здоровья"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the health text"] = "Задает прикрепление текста здоровья"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the health text"] = "Задает точку для положения текста здоровья относительно полоски здоровья"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the health text"] = "Смещение текста здоровья по X"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the health text"] = "Смещение полоски здоровья по Y"
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Sets the alpha of the health text"] = "Задает прозрачность текста здоровья"
--[[ ruRU ]] L["Color"] = "Цвет"
--[[ ruRU ]] L["Sets the health text color"] = "Задает цвет текста здоровья"
 
--[[ ruRU ]] L["None"] = "Нет"
--[[ ruRU ]] L["Normal"] = "Обычно"
--[[ ruRU ]] L["Thick"] = "Жирный"
 
--[[ ruRU ]] L["Percent"] = "Проценты"
--[[ ruRU ]] L["Group Health"] = "Здоровье группы"
--[[ ruRU ]] L["Group Health Deficit"] = "Дефицит здоровья группы"
--[[ ruRU ]] L["Health"] = "Здоровье"
--[[ ruRU ]] L["Health & Percent"] = "Здоровье & Проценты"
--[[ ruRU ]] L["Full"] = "Полное"
--[[ ruRU ]] L["Smart"] = "Умное"
 
--[[ ruRU ]] L["Advanced"] = "Дополнительно"
--[[ ruRU ]] L["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] L["Format"] = "Формат"
--[[ ruRU ]] L["Health tag"] = "Вид здоровья"
--[[ ruRU ]] L["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftHealthText"] = "AloftHealthText"
--[[ ruRU ]] mL["Display health data and text on nameplates"] = "Отображает данные/тект здоровья"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftHealthText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Health Text"] = "生命值提示文字"
--[[ zhCN ]] L["Health text options"] = "生命值提示文字相关设置"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Show health text on nameplates"] = "在姓名板上显示生命值提示文字"
--[[ zhCN ]] L["Unknown"] = "Unknown" -- unit name for "Unknown" units
 
--[[ zhCN ]] L["Typeface"] = "式样"
--[[ zhCN ]] L["Health text typeface options"] = "生命值提示文字的式样设置"
--[[ zhCN ]] L["Font"] = "字体"
--[[ zhCN ]] L["Sets the font for health text"] = "设定生命值提示文字的字体"
--[[ zhCN ]] L["Font Size"] = "字号"
--[[ zhCN ]] L["Sets the font height of the health text"] = "设定生命值提示文字的字号"
--[[ zhCN ]] L["Font Shadow"] = "字体阴影"
--[[ zhCN ]] L["Show font shadow on health text"] = "显示生命值提示文字的字体阴影"
--[[ zhCN ]] L["Outline"] = "轮廓"
--[[ zhCN ]] L["Sets the outline for health text"] = "设定生命值提示文字的字体轮廓"
--[[ zhCN ]] L["Mode"] = "模式"
--[[ zhCN ]] L["Choose what to show for health text"] = "选择生命值提示文字的显示方式"
 
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust health text position"] = "调整生命值提示文字的位置"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the health text"] = "设定生命值提示文字的锚点"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the health text"] = "设定生命值提示文字固定在生命值显示条的相对位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the health text"] = "生命值提示文字的X轴偏移量"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the health text"] = "生命值提示文字的Y轴偏移量"
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Sets the alpha of the health text"] = "设定生命值提示文字的透明度"
--[[ zhCN ]] L["Color"] = "颜色"
--[[ zhCN ]] L["Sets the health text color"] = "设定生命值提示文字的颜色"
 
--[[ zhCN ]] L["None"] = "无"
--[[ zhCN ]] L["Normal"] = "正常"
--[[ zhCN ]] L["Thick"] = "粗"
 
--[[ zhCN ]] L["Percent"] = "百分比"
--[[ zhCN ]] L["Group Health"] = "队友生命值"
--[[ zhCN ]] L["Group Health Deficit"] = "队友生命值不足额"
--[[ zhCN ]] L["Health"] = "生命值"
--[[ zhCN ]] L["Health & Percent"] = "生命值和百分比"
--[[ zhCN ]] L["Full"] = "完全"
--[[ zhCN ]] L["Smart"] = "智能"
 
--[[ zhCN ]] L["Advanced"] = "高级"
--[[ zhCN ]] L["Options for expert users"] = "高级设置"
--[[ zhCN ]] L["Format"] = "格式"
--[[ zhCN ]] L["Health tag"] = "生命值标签"
--[[ zhCN ]] L["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftHealthText"] = "生命值"
--[[ zhCN ]] mL["Display health data and text on nameplates"] = "在姓名板上显示生命值数据和文字"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftHealthText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Health Text"] = "生命力文字"
--[[ zhTW ]] L["Health text options"] = "生命力文字選項"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Show health text on nameplates"] = "在名牌顯示生命力文字"
--[[ zhTW ]] L["Unknown"] = "Unknown" -- unit name for "Unknown" units
 
--[[ zhTW ]] L["Typeface"] = "字體"
--[[ zhTW ]] L["Health text typeface options"] = "生命力文字字體選項"
--[[ zhTW ]] L["Font"] = "字型"
--[[ zhTW ]] L["Sets the font for health text"] = "生命力文字字型"
--[[ zhTW ]] L["Font Size"] = "字型大小"
--[[ zhTW ]] L["Sets the font height of the health text"] = "生命力文字字型大小"
--[[ zhTW ]] L["Font Shadow"] = "字型陰影"
--[[ zhTW ]] L["Show font shadow on health text"] = "生命力文字字型陰影"
--[[ zhTW ]] L["Outline"] = "輪廓"
--[[ zhTW ]] L["Sets the outline for health text"] = "生命力文字字型輪廓"
--[[ zhTW ]] L["Mode"] = "模式"
--[[ zhTW ]] L["Choose what to show for health text"] = "選擇在生命力文字顯示什麼"
 
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust health text position"] = "生命力文字位置"
--[[ zhTW ]] L["Anchor"] = "定位點"
--[[ zhTW ]] L["Sets the anchor for the health text"] = "生命力文字定位點"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the health text"] = "生命力文字固定在生命力條的位置"
--[[ zhTW ]] L["X Offset"] = "X位移"
--[[ zhTW ]] L["X offset of the health text"] = "生命力文字X位移"
--[[ zhTW ]] L["Y Offset"] = "Y位移"
--[[ zhTW ]] L["Y offset of the health text"] = "生命力文字Y位移"
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the alpha of the health text"] = "生命力文字透明度"
--[[ zhTW ]] L["Color"] = "顏色"
--[[ zhTW ]] L["Sets the health text color"] = "生命力文字顏色"
 
--[[ zhTW ]] L["None"] = "無"
--[[ zhTW ]] L["Normal"] = "正常"
--[[ zhTW ]] L["Thick"] = "粗"
 
--[[ zhTW ]] L["Percent"] = "百分比"
--[[ zhTW ]] L["Group Health"] = "團體生命力"
--[[ zhTW ]] L["Group Health Deficit"] = "團體生命力不足額"
--[[ zhTW ]] L["Health"] = "生命力"
--[[ zhTW ]] L["Health & Percent"] = "生命力和百分比"
--[[ zhTW ]] L["Full"] = "完全"
--[[ zhTW ]] L["Smart"] = "精明"
 
--[[ zhTW ]] L["Advanced"] = "進階"
--[[ zhTW ]] L["Options for expert users"] = "進階選項"
--[[ zhTW ]] L["Format"] = "格式"
--[[ zhTW ]] L["Health tag"] = "生命力標籤"
--[[ zhTW ]] L["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftHealthText"] = "生命值"
--[[ zhTW ]] mL["Display health data and text on nameplates"] = "在名牌上顯示生命值數據和文字"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftHealthText", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftHealthText = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftHealthText/AloftHealthTextModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftHealthText =
{
type = 'toggle',
width = 'full',
name = L["AloftHealthText"],
desc = L["Display health data and text on nameplates"],
get = function(i) return AloftModules.db.profile.AloftHealthText end,
set = function(i, v) AloftModules.db.profile.AloftHealthText = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftLevelText/AloftLevelTextOptions.lua New file
0,0 → 1,259
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftLevelText
if not L then return end
 
local AloftLevelText = Aloft:GetModule("LevelText")
if not AloftLevelText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
local LEVELTEXT_FORMAT_BASE = "[Level]"
local LEVELTEXT_FORMAT_CREATURETYPE = "[ShortCreatureType]"
local LEVELTEXT_FORMAT_CLASSIFICATION = "[Select(Level, ShortClassification, Classification)]"
local LEVELTEXT_FORMAT_RACE = "[Race:Prefix(\" \"):Cyan]"
 
Aloft.Options.args.levelText =
{
type = 'group',
name = L["Level Text"],
desc = L["Level text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftLevelText:IsEnabled() or not AloftLevelText.db or not AloftLevelText.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = "full",
name = L["Enable"],
desc = L["Enable level text display on the nameplate"],
get = function(i) return AloftLevelText.db.profile.enable end,
set = function(i, v) AloftLevelText.db.profile.enable = v AloftLevelText:UpdateTag() Aloft:DetermineDataSources() AloftLevelText:UpdateAll() end,
order = 1
},
showCreatureType =
{
type = 'toggle',
width = "full",
name = L["Show Creature Type"],
desc = L["Shows B,D,K,E,H,U for Beast, Demon, Dragonkin, Elemental, Humanoid and Undead creatures"],
disabled = function(i) return not AloftLevelText.db.profile.enable end,
get = function(i) return AloftLevelText.db.profile.showCreatureType end,
set = function(i, v)
AloftLevelText.db.profile.showCreatureType = v
AloftLevelText:UpdateTag()
Aloft:DetermineDataSources()
AloftLevelText:UpdateAll()
end,
order = 2,
},
showClassification =
{
type = 'toggle',
width = "full",
name = L["Show Classification"],
desc = L["Shows +,r,b for elite, rare and bosses after the level"],
disabled = function(i) return not AloftLevelText.db.profile.enable end,
get = function(i) return AloftLevelText.db.profile.showClassification end,
set = function(i, v)
AloftLevelText.db.profile.showClassification = v
AloftLevelText:UpdateTag()
Aloft:DetermineDataSources()
AloftLevelText:UpdateAll()
end,
order = 3,
},
showRace =
{
type = 'toggle',
width = "full",
name = L["Show Race"],
desc = L["Shows unit race after the level"],
disabled = function(i) return not AloftLevelText.db.profile.enable end,
get = function(i) return AloftLevelText.db.profile.showRace end,
set = function(i, v)
AloftLevelText.db.profile.showRace = v
AloftLevelText:UpdateTag()
Aloft:DetermineDataSources()
AloftLevelText:UpdateAll()
end,
order = 4,
},
typeface =
{
type = "group",
name = L["Typeface"],
desc = L["Level text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftLevelText:IsEnabled() or not AloftLevelText.db or not AloftLevelText.db.profile or not AloftLevelText.db.profile.enable end,
args =
{
font =
{
type = "select",
width = "full",
name = L["Font"],
desc = L["Sets the font for level text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.levelText.args.typeface.args.font.values) do
if v == AloftLevelText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftLevelText.db.profile.font = Aloft.Options.args.levelText.args.typeface.args.font.values[v]
AloftLevelText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = "full",
name = L["Font Size"],
desc = L["Sets the font height of the level text"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftLevelText.db.profile.fontSize end,
set = function(i, value) AloftLevelText.db.profile.fontSize = value AloftLevelText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = "full",
name = L["Font Shadow"],
desc = L["Show font shadow on level text"],
get = function(i) return AloftLevelText.db.profile.shadow end,
set = function(i, v) AloftLevelText.db.profile.shadow = v AloftLevelText:UpdateAll() end
},
outline =
{
type = 'select',
width = "full",
name = L["Outline"],
desc = L["Sets the font outline of the level text"],
get = function(i) return AloftLevelText.db.profile.outline end,
set = function(i, value) AloftLevelText.db.profile.outline = value AloftLevelText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust level text position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftLevelText:IsEnabled() or not AloftLevelText.db or not AloftLevelText.db.profile or not AloftLevelText.db.profile.enable end,
args =
{
anchor = {
type = "select",
width = "full",
name = L["Anchor"],
desc = L["Sets the anchor for the level text"],
get = function(i) return AloftLevelText.db.profile.point end,
set = function(i, v) AloftLevelText.db.profile.point = v AloftLevelText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = "select",
width = "full",
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the level text"],
get = function(i) return AloftLevelText.db.profile.relativeToPoint end,
set = function(i, v) AloftLevelText.db.profile.relativeToPoint = v AloftLevelText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = "full",
name = L["X Offset"],
desc = L["X offset of the level text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftLevelText.db.profile.offsetX end,
set = function(i, v) AloftLevelText.db.profile.offsetX = v AloftLevelText:UpdateAll() end
},
offsetY =
{
type = 'range',
width = "full",
name = L["Y Offset"],
desc = L["Y offset of the level text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftLevelText.db.profile.offsetY end,
set = function(i, v) AloftLevelText.db.profile.offsetY = v AloftLevelText:UpdateAll() end
},
},
},
advanced =
{
type = 'group',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftLevelText:IsEnabled() or not AloftLevelText.db or not AloftLevelText.db.profile or not AloftLevelText.db.profile.enable end,
args =
{
enable =
{
type = 'toggle',
width = "full",
name = L["Override Text"],
desc = L["Override level text"],
get = function(i) return AloftLevelText.db.profile.overrideText end,
set = function(i, v) AloftLevelText.db.profile.overrideText = v if v then AloftLevelText:UpdateTag() end Aloft:DetermineDataSources() AloftLevelText:UpdateAll() end,
order = 1
},
format =
{
type = 'input',
width = "full",
name = L["Format"],
desc = L["Level tag"],
usage = L["<Any tag string>"],
disabled = function(i) return not AloftLevelText.db.profile.overrideText end,
get = function(i) return Aloft:HighlightTagSyntax(AloftLevelText.db.profile.format) end,
set = function(i, v)
AloftLevelText.db.profile.format = Aloft:FixTagCasing(v)
AloftLevelText.textMethodData = nil
AloftLevelText.textMethod = nil
Aloft:DetermineDataSources()
AloftLevelText:UpdateAll()
end,
}
},
},
},
}
 
-----------------------------------------------------------------------------
 
function AloftLevelText:UpdateTag()
AloftLevelText.textMethodData = nil
AloftLevelText.textMethod = nil
 
if not self.db.profile.enable or (not self.db.profile.showCreatureType and not self.db.profile.showClassification and not self.db.profile.showRace) then
self.db.profile.overrideText = false
else
self.db.profile.overrideText = true
self.db.profile.format = LEVELTEXT_FORMAT_BASE..
(self.db.profile.showCreatureType and LEVELTEXT_FORMAT_CREATURETYPE or "")..
(self.db.profile.showClassification and LEVELTEXT_FORMAT_CLASSIFICATION or "")..
(self.db.profile.showRace and LEVELTEXT_FORMAT_RACE or "")
end
end
 
-----------------------------------------------------------------------------
AloftOptions/AloftLevelText/AloftLevelTextLocale.lua New file
0,0 → 1,326
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Level Text"] = "Level Text"
--[[ enUS ]] L["Level text options"] = "Level text options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Enable level text display on the nameplate"] = "Enable level text display on the nameplate"
 
--[[ enUS ]] L["Show Creature Type"] = "Show Creature Type"
--[[ enUS ]] L["Shows B,D,K,E,H,U for Beast, Demon, Dragonkin, Elemental, Humanoid and Undead creatures"] = "Shows B,D,K,E,H,U for Beast, Demon, Dragonkin, Elemental, Humanoid and Undead creatures"
 
--[[ enUS ]] L["Show Classification"] = "Show Classification"
--[[ enUS ]] L["Shows +,r,b for elite, rare and bosses after the level"] = "Shows +,r,b for elite, rare and bosses after the level"
--[[ enUS ]] L["Show Race"] = "Show Race"
--[[ enUS ]] L["Shows unit race after the level"] = "Shows unit race after the level"
 
--[[ enUS ]] L["Typeface"] = "Typeface"
--[[ enUS ]] L["Level text typeface options"] = "Level text typeface options"
--[[ enUS ]] L["Font"] = "Font"
--[[ enUS ]] L["Sets the font for level text"] = "Sets the font for level text"
--[[ enUS ]] L["Font Size"] = "Font Size"
--[[ enUS ]] L["Sets the font height of the level text"] = "Sets the font height of the level text"
--[[ enUS ]] L["Font Shadow"] = "Font Shadow"
--[[ enUS ]] L["Show font shadow on level text"] = "Show font shadow on level text"
--[[ enUS ]] L["Outline"] = "Outline"
--[[ enUS ]] L["Sets the font outline of the level text"] = "Sets the font outline of the level text"
 
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust level text position"] = "Adjust level text position"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the level text"] = "Sets the anchor for the level text"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the level text"] = "Sets the relative point on the health bar to anchor the level text"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the level text"] = "X offset of the level text"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the level text"] = "Y offset of the level text"
 
--[[ enUS ]] L["None"] = "None"
--[[ enUS ]] L["Normal"] = "Normal"
--[[ enUS ]] L["Thick"] = "Thick"
 
--[[ enUS ]] L["Advanced"] = "Advanced"
--[[ enUS ]] L["Options for expert users"] = "Options for expert users"
--[[ enUS ]] L["Override Text"] = "Override Text"
--[[ enUS ]] L["Override level text"] = "Override level text"
--[[ enUS ]] L["Format"] = "Format"
--[[ enUS ]] L["Level tag"] = "Level tag"
--[[ enUS ]] L["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
--[[ koKR ]] L["Level Text"] = "레벨"
--[[ koKR ]] L["Level text options"] = "레벨 설정"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Enable level text display on the nameplate"] = "이름표에 레벨을 표시합니다."
 
--[[ koKR ]] L["Show Creature Type"] = "몹 종류 표시"
--[[ koKR ]] L["Shows B,D,K,E,H,U for Beast, Demon, Dragonkin, Elemental, Humanoid and Undead creatures"] = "야수, 악마, 용족, 정령, 인간형 및 언데드등의 몹 종류를 B,D,K,E,H,U등으로 표시합니다."
 
--[[ koKR ]] L["Show Classification"] = "구분 표시"
--[[ koKR ]] L["Shows +,r,b for elite, rare and bosses after the level"] = "레벨 뒤에 정예, 희귀, 보스등을 +, r, b 로 표시합니다."
--[[ koKR ]] L["Show Race"] = "종족 표시"
--[[ koKR ]] L["Shows unit race after the level"] = "레벨 뒤에 대상의 종족을 표시합니다."
 
--[[ koKR ]] L["Typeface"] = "서체"
--[[ koKR ]] L["Level text typeface options"] = "레벨 서체 설정"
--[[ koKR ]] L["Font"] = "글꼴"
--[[ koKR ]] L["Sets the font for level text"] = "레벨의 글꼴을 설정합니다."
--[[ koKR ]] L["Font Size"] = "글꼴 크기"
--[[ koKR ]] L["Sets the font height of the level text"] = "레벨의 글자 높이를 설정합니다."
--[[ koKR ]] L["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] L["Show font shadow on level text"] = "레벨에 그림자를 표시합니다."
--[[ koKR ]] L["Outline"] = "테두리"
--[[ koKR ]] L["Sets the font outline of the level text"] = "레벨의 글자에 테두리를 설정합니다."
 
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust level text position"] = "레벨 위치 조절"
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the level text"] = "레벨의 앵커를 설정합니다."
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the level text"] = "생명력 바에서 레벨의 앵커 위치를 설정합니다."
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the level text"] = "레벨의 X 좌표 입니다."
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the level text"] = "레벨의 Y 좌표 입니다."
 
--[[ koKR ]] L["None"] = "없음"
--[[ koKR ]] L["Normal"] = "기본"
--[[ koKR ]] L["Thick"] = "굵게"
 
--[[ koKR ]] L["Advanced"] = "고급"
--[[ koKR ]] L["Options for expert users"] = "고급 사용자를 위한 설정입니다."
--[[ koKR ]] L["Override Text"] = "텍스트 오버라이드"
--[[ koKR ]] L["Override level text"] = "레벨 텍스트 오버라이드"
--[[ koKR ]] L["Format"] = "형식"
--[[ koKR ]] L["Level tag"] = "레벨 태그"
--[[ koKR ]] L["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
--[[ ruRU ]] L["Level Text"] = "Текст уровня"
--[[ ruRU ]] L["Level text options"] = "Настройки текста уровня"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Enable level text display on the nameplate"] = "Включить текст уровня на табличке"
 
--[[ ruRU ]] L["Show Creature Type"] = "Отображать тип существа"
--[[ ruRU ]] L["Shows B,D,K,E,H,U for Beast, Demon, Dragonkin, Elemental, Humanoid and Undead creatures"] = "Отображает З,Д,Э,В,Н для Зверей(З), Демонов(Д), Драконов(Д), Элементалей(Э), Гуманоидов(Г) и Нежити(Н)"
 
--[[ ruRU ]] L["Show Classification"] = "Отображать классификацию"
--[[ ruRU ]] L["Shows +,r,b for elite, rare and bosses after the level"] = "Отображает +,п,б для элитных, редких и боссов за уровнем"
--[[ ruRU ]] L["Show Race"] = "Отображать расу"
--[[ ruRU ]] L["Shows unit race after the level"] = "Отображает расу за уровнем"
 
--[[ ruRU ]] L["Typeface"] = "Шрифт"
--[[ ruRU ]] L["Level text typeface options"] = "Настройки шрифта текста уровня"
--[[ ruRU ]] L["Font"] = "Шрифт"
--[[ ruRU ]] L["Sets the font for level text"] = "Задает шрифт для текста уровня"
--[[ ruRU ]] L["Font Size"] = "Размер шрифта"
--[[ ruRU ]] L["Sets the font height of the level text"] = "Задает высоту шрифта для текста уровня"
--[[ ruRU ]] L["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] L["Show font shadow on level text"] = "Отображать тень для текста уровня"
--[[ ruRU ]] L["Outline"] = "Контур"
--[[ ruRU ]] L["Sets the font outline of the level text"] = "Задает окантовку для текста уровня"
 
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust level text position"] = "Задать место текста уровня"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the level text"] = "Задает прикрепление текста уровня"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the level text"] = "Задает точку для положения текста уровня относительно полоски здоровья"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the level text"] = "Смещение текста уровня по X"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the level text"] = "Смещение текста уровня по Y"
 
--[[ ruRU ]] L["None"] = "Нет"
--[[ ruRU ]] L["Normal"] = "Обычно"
--[[ ruRU ]] L["Thick"] = "Жирный"
 
--[[ ruRU ]] L["Advanced"] = "Дополнительно"
--[[ ruRU ]] L["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] L["Override Text"] = "Перезапись текста"
--[[ ruRU ]] L["Override level text"] = "Перезапись текста уровня"
--[[ ruRU ]] L["Format"] = "Формат"
--[[ ruRU ]] L["Level tag"] = "Вид уровня"
--[[ ruRU ]] L["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
--[[ zhCN ]] L["Level Text"] = "等级文字"
--[[ zhCN ]] L["Level text options"] = "等级文字相关设置"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Enable level text display on the nameplate"] = "在姓名板上显示等级文字"
 
--[[ zhCN ]] L["Show Creature Type"] = "显示生物类型"
--[[ zhCN ]] L["Shows B,D,K,E,H,U for Beast, Demon, Dragonkin, Elemental, Humanoid and Undead creatures"] = "使用生物类型缩写"
 
--[[ zhCN ]] L["Show Classification"] = "显示分类"
--[[ zhCN ]] L["Shows +,r,b for elite, rare and bosses after the level"] = "使用分类缩写"
--[[ zhCN ]] L["Show Race"] = "显示种族"
--[[ zhCN ]] L["Shows unit race after the level"] = "将种族名称显示在等级之后"
 
--[[ zhCN ]] L["Typeface"] = "式样"
--[[ zhCN ]] L["Level text typeface options"] = "等级文字式样设置"
--[[ zhCN ]] L["Font"] = "字体"
--[[ zhCN ]] L["Sets the font for level text"] = "设定等级文字的字体"
--[[ zhCN ]] L["Font Size"] = "字号"
--[[ zhCN ]] L["Sets the font height of the level text"] = "设定等级文字的字号"
--[[ zhCN ]] L["Font Shadow"] = "字体阴影"
--[[ zhCN ]] L["Show font shadow on level text"] = "设定等级文字的字体阴影"
--[[ zhCN ]] L["Outline"] = "轮廓"
--[[ zhCN ]] L["Sets the font outline of the level text"] = "设定等级文字的字体轮廓"
 
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust level text position"] = "调整等級文字的位置"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the level text"] = "设定等级文字的锚点"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the level text"] = "设定等級文字固定在生命值显示条的相对位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the level text"] = "等级文字的X轴偏移量"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the level text"] = "等级文字的Y轴偏移量"
 
--[[ zhCN ]] L["None"] = "无"
--[[ zhCN ]] L["Normal"] = "正常"
--[[ zhCN ]] L["Thick"] = "粗"
 
--[[ zhCN ]] L["Advanced"] = "高级"
--[[ zhCN ]] L["Options for expert users"] = "高级设置"
--[[ zhCN ]] L["Override Text"] = "置换文字"
--[[ zhCN ]] L["Override level text"] = "置换等级文字"
--[[ zhCN ]] L["Format"] = "格式"
--[[ zhCN ]] L["Level tag"] = "等级标签"
--[[ zhCN ]] L["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
--[[ zhTW ]] L["Level Text"] = "等級文字"
--[[ zhTW ]] L["Level text options"] = "等級文字選項"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Enable level text display on the nameplate"] = "在名牌顯示等級文字"
 
--[[ zhTW ]] L["Show Creature Type"] = "顯示生物類型"
--[[ zhTW ]] L["Shows B,D,K,E,H,U for Beast, Demon, Dragonkin, Elemental, Humanoid and Undead creatures"] = "使用簡短生物類型"
 
--[[ zhTW ]] L["Show Classification"] = "顯示分類"
--[[ zhTW ]] L["Shows +,r,b for elite, rare and bosses after the level"] = "使用簡短分類"
--[[ zhTW ]] L["Show Race"] = "顯示種族"
--[[ zhTW ]] L["Shows unit race after the level"] = "顯示種族於等級文字之後"
 
--[[ zhTW ]] L["Typeface"] = "字體"
--[[ zhTW ]] L["Level text typeface options"] = "等級文字字體選項"
--[[ zhTW ]] L["Font"] = "字型"
--[[ zhTW ]] L["Sets the font for level text"] = "等級文字字型"
--[[ zhTW ]] L["Font Size"] = "字型大小"
--[[ zhTW ]] L["Sets the font height of the level text"] = "等級文字字型大小"
--[[ zhTW ]] L["Font Shadow"] = "字型陰影"
--[[ zhTW ]] L["Show font shadow on level text"] = "等級文字字型陰影"
--[[ zhTW ]] L["Outline"] = "輪廓"
--[[ zhTW ]] L["Sets the font outline of the level text"] = "等級文字字型輪廓"
 
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust level text position"] = "等級文字位置"
--[[ zhTW ]] L["Anchor"] = "定位點"
--[[ zhTW ]] L["Sets the anchor for the level text"] = "等級文字定位點"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the level text"] = "等級文字固定在生命力條的位置"
--[[ zhTW ]] L["X Offset"] = "X位移"
--[[ zhTW ]] L["X offset of the level text"] = "等級文字X位移"
--[[ zhTW ]] L["Y Offset"] = "Y位移"
--[[ zhTW ]] L["Y offset of the level text"] = "等級文字Y位移"
 
--[[ zhTW ]] L["None"] = "無"
--[[ zhTW ]] L["Normal"] = "正常"
--[[ zhTW ]] L["Thick"] = "粗"
 
--[[ zhTW ]] L["Advanced"] = "進階"
--[[ zhTW ]] L["Options for expert users"] = "進階選項"
--[[ zhTW ]] L["Override Text"] = "置換文字"
--[[ zhTW ]] L["Override level text"] = "置換等級文字"
--[[ zhTW ]] L["Format"] = "格式"
--[[ zhTW ]] L["Level tag"] = "等級標籤"
--[[ zhTW ]] L["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftLevelText = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
\ No newline at end of file
AloftOptions/AloftMana/AloftManaBarOptions.lua New file
0,0 → 1,341
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftMana", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftManaBarOptions
if not L then return end
 
local AloftManaBar = Aloft:GetModule("ManaBar", true)
if not AloftManaBar then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.manaBar =
{
type = 'group',
name = L["Mana Bar"],
desc = L["Mana Bar options"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ManaData", true) and Aloft:GetModule("ManaData"):IsEnabled()) or not AloftManaBar:IsEnabled() or not AloftManaBar.db or not AloftManaBar.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show mana bars on group member nameplates"],
order = 1,
get = function(i) return AloftManaBar.db.profile.enable end,
set = function(i, v) AloftManaBar.db.profile.enable = v Aloft:DetermineDataSources() AloftManaBar:UpdateAll() end,
},
height =
{
type = 'range',
width = 'full',
name = L["Height"],
desc = L["Sets the height of the mana bar"],
order = 2,
min = 1,
max = 32,
step = 1,
disabled = function(i) return not AloftManaBar.db.profile.enable end,
get = function(i) return AloftManaBar.db.profile.height end,
set = function(i, v) AloftManaBar.db.profile.height = v AloftManaBar:UpdateAll() end
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust the mana bar's position"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ManaData", true) and Aloft:GetModule("ManaData"):IsEnabled()) or not AloftManaBar:IsEnabled() or not AloftManaBar.db or not AloftManaBar.db.profile or not AloftManaBar.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the mana bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftManaBar.db.profile.offsets.left end,
set = function(i, v) AloftManaBar.db.profile.offsets.left = v AloftManaBar:UpdateAll() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the mana bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftManaBar.db.profile.offsets.right end,
set = function(i, v) AloftManaBar.db.profile.offsets.right = v AloftManaBar:UpdateAll() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the mana bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftManaBar.db.profile.offsets.vertical end,
set = function(i, v) AloftManaBar.db.profile.offsets.vertical = v AloftManaBar:UpdateAll() end
},
},
},
texture =
{
type = 'select',
width = 'full',
name = L["Texture"],
desc = L["Sets the mana bar texture"],
order = 4,
disabled = function(i) return not AloftManaBar.db.profile.enable end,
get = function(i)
for k, v in pairs(Aloft.Options.args.manaBar.args.texture.values) do
if v == AloftManaBar.db.profile.texture then
return k
end
end
end,
set = function(i, v)
AloftManaBar.db.profile.texture = Aloft.Options.args.manaBar.args.texture.values[v]
Aloft:DetermineDataSources()
AloftManaBar:UpdateAll()
end,
values = SML:List("statusbar")
},
border = {
type = 'group',
name = L["Border"],
desc = L["Border options"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ManaData", true) and Aloft:GetModule("ManaData"):IsEnabled()) or not AloftManaBar:IsEnabled() or not AloftManaBar.db or not AloftManaBar.db.profile or not AloftManaBar.db.profile.enable end,
args =
{
targetOnly =
{
type = 'toggle',
width = 'full',
name = L["Target Only"],
desc = L["Enables the border on the current target only"],
order = 1,
get = function(i) return AloftManaBar.db.profile.targetOnly end,
set = function(i, v) AloftManaBar.db.profile.targetOnly = v Aloft:DetermineDataSources() AloftManaBar:UpdateAll() end,
disabled = function(i) return AloftManaBar.db.profile.border == "None" end,
},
style =
{
type = 'select',
width = 'full',
name = L["Border Style"],
desc = L["Sets the style of the mana bar border"],
order = 2,
get = function(i)
for k, v in pairs(Aloft.Options.args.manaBar.args.border.args.style.values) do
if v == AloftManaBar.db.profile.border then
return k
end
end
end,
set = function(i, v)
AloftManaBar.db.profile.border = Aloft.Options.args.manaBar.args.border.args.style.values[v]
AloftManaBar: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 AloftManaBar.db.profile.borderEdgeSize end,
set = function(i, v) AloftManaBar.db.profile.borderEdgeSize = v AloftManaBar: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 AloftManaBar.db.profile.borderInset end,
set = function(i, v) AloftManaBar.db.profile.borderInset = v AloftManaBar:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Border Color"],
desc = L["Sets the border color of the mana bar"],
order = 3,
get = function(i) return unpack(AloftManaBar.db.profile.borderColor) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.borderColor = { r, g, b, a } AloftManaBar:UpdateAll() end,
disabled = function(i) return AloftManaBar.db.profile.border == "None" end,
hasAlpha = true,
},
},
},
colors =
{
type = 'group',
name = L["Colors"],
desc = L["Customize colors"],
order = 6,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ManaData", true) and Aloft:GetModule("ManaData"):IsEnabled()) or not AloftManaBar:IsEnabled() or not AloftManaBar.db or not AloftManaBar.db.profile or not AloftManaBar.db.profile.enable end,
args =
{
backdrop =
{
type = 'color',
width = 'full',
name = L["Backdrop Color"],
desc = L["Sets the backdrop color of the mana bar"],
get = function(i) return unpack(AloftManaBar.db.profile.backdropColor) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.backdropColor = { r, g, b, a } AloftManaBar:UpdateAll() end,
hasAlpha = true,
order = 1
},
mana =
{
type = 'color',
width = 'full',
name = L["Mana Color"],
desc = L["Sets the color for mana bars"],
get = function(i) return unpack(AloftManaBar.db.profile.powerTypeColors[0]) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.powerTypeColors[0] = { r, g, b, a } AloftManaBar:UpdateAll() end,
hasAlpha = true,
order = 1
},
rage =
{
type = 'color',
width = 'full',
name = L["Rage Color"],
desc = L["Sets the color for rage bars"],
get = function(i) return unpack(AloftManaBar.db.profile.powerTypeColors[1]) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.powerTypeColors[1] = { r, g, b, a } AloftManaBar:UpdateAll() end,
hasAlpha = true,
order = 1
},
focus =
{
type = 'color',
width = 'full',
name = L["Focus Color"],
desc = L["Sets the color for focus bars"],
get = function(i) return unpack(AloftManaBar.db.profile.powerTypeColors[2]) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.powerTypeColors[2] = { r, g, b, a } AloftManaBar:UpdateAll() end,
hasAlpha = true,
order = 1
},
energy =
{
type = 'color',
width = 'full',
name = L["Energy Color"],
desc = L["Sets the color for energy bars"],
get = function(i) return unpack(AloftManaBar.db.profile.powerTypeColors[3]) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.powerTypeColors[3] = { r, g, b, a } AloftManaBar:UpdateAll() end,
hasAlpha = true,
order = 1
},
happiness =
{
type = 'color',
width = 'full',
name = L["Happiness Color"],
desc = L["Sets the color for happiness bars"],
get = function(i) return unpack(AloftManaBar.db.profile.powerTypeColors[4]) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.powerTypeColors[4] = { r, g, b, a } AloftManaBar:UpdateAll() end,
hasAlpha = true,
order = 1
},
rune =
{
type = 'color',
width = 'full',
name = L["Rune Color"],
desc = L["Sets the color for rune bars"],
get = function(i) return unpack(AloftManaBar.db.profile.powerTypeColors[5]) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.powerTypeColors[5] = { r, g, b, a } AloftManaBar:UpdateAll() end,
hasAlpha = true,
order = 1
},
runic =
{
type = 'color',
width = 'full',
name = L["Runic Power Color"],
desc = L["Sets the color for runic power bars"],
get = function(i) return unpack(AloftManaBar.db.profile.powerTypeColors[6]) end,
set = function(i, r, g, b, a) AloftManaBar.db.profile.powerTypeColors[6] = { r, g, b, a } AloftManaBar:UpdateAll() end,
hasAlpha = true,
order = 1
},
reset =
{
type = 'execute',
width = 'full',
name = L["Reset to Defaults"],
desc = L["Resets all colors to their defaults"],
order = -1,
func = function(i)
AloftManaBar.db.profile.backdropColor = { 0.25, 0.25, 0.25, 0.5 }
AloftManaBar.db.profile.powerTypeColors =
{
[0] = { 0.28, 0.52, 0.84, 1}, -- Mana
[1] = { 0.89, 0.18, 0.29, 1}, -- Rage
[2] = { 1, 0.82, 0, 1}, -- Focus
[3] = { 1, 0.86, 0.10, 1}, -- Energy
[4] = { 0, 1, 1, 1}, -- Happiness
[5] = { 0.50, 0.50, 0.50, 1}, -- Runes
[6] = { 0.92, 0.92, 0.92, 1}, -- Runic Power
},
AloftManaBar:UpdateAll()
end,
},
}
},
--[[
always =
{
type = 'toggle',
width = 'full',
name = L["Always Show Target"],
desc = L["Always show mana bar on active targets in combat"],
get = function(i) return AloftManaBar.db.profile.always end,
set = function(i, v) AloftManaBar.db.profile.always = v Aloft:DetermineDataSources() AloftManaBar:UpdateAll() end,
disabled = function(i) return not AloftManaBar.db.profile.enable end,
order = 2,
},
]]
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftMana/AloftManaTextOptions.lua New file
0,0 → 1,281
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftMana", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftManaTextOptions
if not L then return end
 
local AloftManaText = Aloft:GetModule("ManaText", true)
if not AloftManaText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
local manaTags =
{
NONE = { "", "" },
PERCENT = { "[ManaFraction:Percent]", "[ManaFraction:Percent:PowerTypeColor]" },
MANA = { "[Mana:Short]", "[Mana:Short:PowerTypeColor]" },
MANAANDPERCENT = {
"[Mana:Short][ManaFraction:Percent:Surround(\" (\", \")\")]",
"[Mana:Short:PowerTypeColor][ManaFraction:Percent:Surround(\" (\", \")\"):PowerTypeColor]",
},
DEFICIT = { "[ManaDeficit:HideZero:Short]", "[ManaDeficit:HideZero:Short:PowerTypeColor]" },
FULL = {
"[Mana:Short:Suffix(\"/\")][MaxMana:Short:Suffix(\" (\")][ManaFraction:Percent:Surround(\" (\", \")\")]",
"[Mana:Short:Suffix(\"/\"):PowerTypeColor][MaxMana:Short:PowerTypeColor][ManaFraction:Percent:Surround(\" (\", \")\"):PowerTypeColor]"
},
}
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.manaBar.args.manaText =
{
type = 'group',
name = L["Mana Text"],
desc = L["Mana text options"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ManaData", true) and Aloft:GetModule("ManaData"):IsEnabled()) or not AloftManaText:IsEnabled() or not AloftManaText.db or not AloftManaText.db.profile end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show mana text on group member nameplates"],
get = function(i) return AloftManaText.db.profile.enable end,
set = function(i, v) AloftManaText.db.profile.enable = v AloftManaText:UpdateTag() AloftManaText:UpdateAll() end,
order = 1
},
typeface =
{
type = "group",
name = L["Typeface"],
desc = L["Mana text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ManaData", true) and Aloft:GetModule("ManaData"):IsEnabled()) or not AloftManaText:IsEnabled() or not AloftManaText.db or not AloftManaText.db.profile or not AloftManaText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for mana text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.manaBar.args.manaText.args.typeface.args.font.values) do
if v == AloftManaText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftManaText.db.profile.font = Aloft.Options.args.manaBar.args.manaText.args.typeface.args.font.values[v]
AloftManaText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the mana text"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftManaText.db.profile.fontSize end,
set = function(i, value) AloftManaText.db.profile.fontSize = value AloftManaText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on mana text"],
get = function(i) return AloftManaText.db.profile.shadow end,
set = function(i, v) AloftManaText.db.profile.shadow = v AloftManaText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the outline for mana text"],
get = function(i) return AloftManaText.db.profile.outline end,
set = function(i, value) AloftManaText.db.profile.outline = value AloftManaText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
colorByType =
{
type = 'toggle',
width = 'full',
name = L["Color by type"],
desc = L["Color text differently for mana, energy, rage"],
disabled = function(i) return not AloftManaText.db.profile.enable end,
get = function(i) return AloftManaText.db.profile.colorByType end,
set = function(i, value) AloftManaText.db.profile.colorByType = value AloftManaText:UpdateTag() AloftManaText:UpdateAll() end,
},
mode =
{
type = 'select',
width = 'full',
name = L["Mode"],
desc = L["Choose what to show for mana text"],
disabled = function(i) return not AloftManaText.db.profile.enable end,
get = function(i) return AloftManaText.db.profile.mode end,
set = function(i, value) AloftManaText.db.profile.mode = value AloftManaText:UpdateTag() AloftManaText:UpdateAll() end,
values = { PERCENT = L["Percent"], MANA = L["Mana"], MANAANDPERCENT = L["Mana & Percent"], DEFICIT = L["Deficit"], FULL = L["Full"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust mana text position"],
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ManaData", true) and Aloft:GetModule("ManaData"):IsEnabled()) or not AloftManaText:IsEnabled() or not AloftManaText.db or not AloftManaText.db.profile or not AloftManaText.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the mana text"],
get = function(i) return AloftManaText.db.profile.point end,
set = function(i, v) AloftManaText.db.profile.point = v AloftManaText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the mana text"],
get = function(i) return AloftManaText.db.profile.relativeToPoint end,
set = function(i, v) AloftManaText.db.profile.relativeToPoint = v AloftManaText:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the mana text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftManaText.db.profile.offsetX end,
set = function(i, v) AloftManaText.db.profile.offsetX = v AloftManaText:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the mana text"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftManaText.db.profile.offsetY end,
set = function(i, v) AloftManaText.db.profile.offsetY = v AloftManaText:UpdateAll() end
},
},
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the alpha of the mana text"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftManaText.db.profile.enable end,
get = function(i) return AloftManaText.db.profile.alpha end,
set = function(i, v) AloftManaText.db.profile.alpha = v AloftManaText:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the mana text color"],
disabled = function(i) return not AloftManaText.db.profile.enable end,
get = function(i) return unpack(AloftManaText.db.profile.color) end,
set = function(i, r, g, b, a) AloftManaText.db.profile.color = { r, g, b, a } AloftManaText:UpdateAll() end,
},
advanced =
{
type = 'group',
width = 'full',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not (Aloft:GetModule("ManaData", true) and Aloft:GetModule("ManaData"):IsEnabled()) or not AloftManaText:IsEnabled() or not AloftManaText.db or not AloftManaText.db.profile or not AloftManaText.db.profile.enable end,
args =
{
format =
{
type = 'input',
width = 'full',
name = L["Format"],
desc = L["Mana tag"],
usage = L["<Any tag string>"],
get = function(i) return Aloft:HighlightTagSyntax(AloftManaText.db.profile.format) end,
set = function(i, v)
AloftManaText.db.profile.format = Aloft:FixTagCasing(v)
AloftManaText.textMethodData = nil
AloftManaText.textMethod = nil
Aloft:DetermineDataSources()
AloftManaText:UpdateAll()
end,
}
},
},
--[[
always =
{
type = 'toggle',
name = L["Always Show Target"],
desc = L["Always show mana text on active targets in combat"],
get = function(i) return AloftManaText.db.profile.always end,
set = function(i, v) AloftManaText.db.profile.always = v Aloft:DetermineDataSources() AloftManaText:UpdateAll() end,
disabled = function(i) return not AloftManaText.db.profile.enable end,
order = 2,
},
]]
},
}
 
-----------------------------------------------------------------------------
 
function AloftManaText:UpdateTag()
local tag = self.db.profile.mode
local index = 1
 
if self.db.profile.colorByType then
index = 2
end
 
if not self.db.profile.enable then tag = "NONE" end
self.db.profile.format = manaTags[tag][index]
 
self.textMethodData = nil
self.textMethod = nil
 
Aloft:DetermineDataSources()
end
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftMana/AloftManaModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftMana =
{
type = 'toggle',
width = 'full',
name = L["AloftMana"],
desc = L["Display mana data, bars, and text on nameplates"],
get = function(i) return AloftModules.db.profile.AloftMana end,
set = function(i, v) AloftModules.db.profile.AloftMana = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftMana/AloftManaLocale.lua New file
0,0 → 1,795
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local bL = { }
 
local tL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftMana", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] bL["Mana Bar"] = "Mana Bar"
--[[ enUS ]] bL["Mana Bar options"] = "Mana Bar options"
--[[ enUS ]] bL["Enable"] = "Enable"
--[[ enUS ]] bL["Show mana bars on group member nameplates"] = "Show mana bars on group member nameplates"
 
--[[ enUS ]] bL["Texture"] = "Texture"
--[[ enUS ]] bL["Sets the mana bar texture"] = "Sets the mana bar texture"
--[[ enUS ]] bL["Alpha"] = "Alpha"
--[[ enUS ]] bL["Sets the mana bar alpha"] = "Sets the mana bar alpha"
 
--[[ enUS ]] bL["Height"] = "Height"
--[[ enUS ]] bL["Sets the height of the mana bar"] = "Sets the height of the mana bar"
 
--[[ enUS ]] bL["Position"] = "Position"
--[[ enUS ]] bL["Adjust the mana bar's position"] = "Adjust the mana bar's position"
--[[ enUS ]] bL["Left Offset"] = "Left Offset"
--[[ enUS ]] bL["Sets the offset of the left of the mana bar"] = "Sets the offset of the left of the mana bar"
--[[ enUS ]] bL["Right Offset"] = "Right Offset"
--[[ enUS ]] bL["Sets the offset of the right of the mana bar"] = "Sets the offset of the right of the mana bar"
--[[ enUS ]] bL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] bL["Sets the vertical offset of the mana bar"] = "Sets the vertical offset of the mana bar"
 
--[[ enUS ]] bL["Colors"] = "Colors"
--[[ enUS ]] bL["Customize colors"] = "Customize colors"
--[[ enUS ]] bL["Backdrop Color"] = "Backdrop Color"
--[[ enUS ]] bL["Sets the backdrop color of the mana bar"] = "Sets the backdrop color of the mana bar"
--[[ enUS ]] bL["Mana Color"] = "Mana Color"
--[[ enUS ]] bL["Sets the color for mana bars"] = "Sets the color for mana bars"
--[[ enUS ]] bL["Rage Color"] = "Rage Color"
--[[ enUS ]] bL["Sets the color for rage bars"] = "Sets the color for rage bars"
--[[ enUS ]] bL["Focus Color"] = "Focus Color"
--[[ enUS ]] bL["Sets the color for focus bars"] = "Sets the color for focus bars"
--[[ enUS ]] bL["Energy Color"] = "Energy Color"
--[[ enUS ]] bL["Sets the color for energy bars"] = "Sets the color for energy bars"
--[[ enUS ]] bL["Happiness Color"] = "Happiness Color"
--[[ enUS ]] bL["Sets the color for happiness bars"] = "Sets the color for happiness bars"
--[[ enUS ]] bL["Rune Color"] = "Rune Color"
--[[ enUS ]] bL["Sets the color for rune bars"] = "Sets the color for rune bars"
--[[ enUS ]] bL["Runic Power Color"] = "Runic Power Color"
--[[ enUS ]] bL["Sets the color for runic power bars"] = "Sets the color for runic power bars"
--[[ enUS ]] bL["Reset to Defaults"] = "Reset to Defaults"
--[[ enUS ]] bL["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
--[[ enUS ]] bL["Border"] = "Border"
--[[ 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 mana bar"] = "Sets the border color of the mana bar"
--[[ enUS ]] bL["Border Style"] = "Border Style"
--[[ enUS ]] bL["Sets the style of the mana bar border"] = "Sets the style of the mana bar border"
 
--[[ enUS ]] --bL["Always Show Target"] = "Always Show Target"
--[[ enUS ]] --bL["Always show mana bar on active targets in combat"] = "Always show mana bar on active targets in combat"
 
--[[ enUS ]] bL["Advanced"] = "Advanced"
--[[ enUS ]] bL["Options for expert users"] = "Options for expert users"
--[[ enUS ]] bL["Color Format"] = "Color Format"
--[[ enUS ]] bL["Color tag"] = "Color tag"
--[[ enUS ]] bL["<Any tag string>"] = "<Any tag string>"
 
-----------------------------------------------------------------------------
 
-- leave "enUS" active at all times, as a default locale
 
--[[ enUS ]] tL["Mana Text"] = "Mana Text"
--[[ enUS ]] tL["Mana text options"] = "Mana text options"
--[[ enUS ]] tL["Enable"] = "Enable"
--[[ enUS ]] tL["Show mana text on group member nameplates"] = "Show mana text on group member nameplates"
 
--[[ enUS ]] tL["Color by type"] = "Color by type"
--[[ enUS ]] tL["Color text differently for mana, energy, rage"] = "Color text differently for mana, energy, rage"
 
--[[ enUS ]] tL["Typeface"] = "Typeface"
--[[ enUS ]] tL["Mana text typeface options"] = "Mana text typeface options"
--[[ enUS ]] tL["Font"] = "Font"
--[[ enUS ]] tL["Sets the font for mana text"] = "Sets the font for mana text"
--[[ enUS ]] tL["Font Size"] = "Font Size"
--[[ enUS ]] tL["Sets the font height of the mana text"] = "Sets the font height of the mana text"
--[[ enUS ]] tL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] tL["Show font shadow on mana text"] = "Show font shadow on mana text"
--[[ enUS ]] tL["Outline"] = "Outline"
--[[ enUS ]] tL["Sets the outline for mana text"] = "Sets the outline for mana text"
--[[ enUS ]] tL["Mode"] = "Mode"
--[[ enUS ]] tL["Choose what to show for mana text"] = "Choose what to show for mana text"
 
--[[ enUS ]] tL["Position"] = "Position"
--[[ enUS ]] tL["Adjust mana text position"] = "Adjust mana text position"
--[[ enUS ]] tL["Anchor"] = "Anchor"
--[[ enUS ]] tL["Sets the anchor for the mana text"] = "Sets the anchor for the mana text"
--[[ enUS ]] tL["Anchor To"] = "Anchor To"
--[[ enUS ]] tL["Sets the relative point on the health bar to anchor the mana text"] = "Sets the relative point on the health bar to anchor the mana text"
--[[ enUS ]] tL["X Offset"] = "X Offset"
--[[ enUS ]] tL["X offset of the mana text"] = "X offset of the mana text"
--[[ enUS ]] tL["Y Offset"] = "Y Offset"
--[[ enUS ]] tL["Y offset of the mana text"] = "Y offset of the mana text"
--[[ enUS ]] tL["Alpha"] = "Alpha"
--[[ enUS ]] tL["Sets the alpha of the mana text"] = "Sets the alpha of the mana text"
--[[ enUS ]] tL["Color"] = "Color"
--[[ enUS ]] tL["Sets the mana text color"] = "Sets the mana text color"
 
--[[ enUS ]] tL["None"] = "None"
--[[ enUS ]] tL["Normal"] = "Normal"
--[[ enUS ]] tL["Thick"] = "Thick"
 
--[[ enUS ]] tL["Percent"] = "Percent"
--[[ enUS ]] tL["Mana"] = "Mana"
--[[ enUS ]] tL["Mana & Percent"] = "Mana & Percent"
--[[ enUS ]] tL["Deficit"] = "Deficit"
--[[ enUS ]] tL["Full"] = "Full"
 
--[[ enUS ]] tL["Always Show Target"] = "Always Show Target"
--[[ enUS ]] tL["Always show mana text on active targets in combat"] = "Always show mana text on active targets in combat"
 
--[[ enUS ]] tL["Advanced"] = "Advanced"
--[[ enUS ]] tL["Options for expert users"] = "Options for expert users"
--[[ enUS ]] tL["Format"] = "Format"
--[[ enUS ]] tL["Mana tag"] = "Mana tag"
--[[ enUS ]] tL["<Any tag string>"] = "<Any tag string>"
 
--[[ enUS ]] tL["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] tL["TOP"] = "TOP"
--[[ enUS ]] tL["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] tL["LEFT"] = "LEFT"
--[[ enUS ]] tL["CENTER"] = "CENTER"
--[[ enUS ]] tL["RIGHT"] = "RIGHT"
--[[ enUS ]] tL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] tL["BOTTOM"] = "BOTTOM"
--[[ enUS ]] tL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftMana"] = "AloftMana"
--[[ enUS ]] mL["Display mana data, bars, and text on nameplates"] = "Display mana data, bars, and text on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftMana", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] bL["Mana Bar"] = "마나바"
--[[ koKR ]] bL["Mana Bar options"] = "마나바 설정"
--[[ koKR ]] bL["Enable"] = "사용"
--[[ koKR ]] bL["Show mana bars on group member nameplates"] = "파티원의 이름표에 마나바를 표시합니다."
 
--[[ koKR ]] bL["Texture"] = "텍스쳐"
--[[ koKR ]] bL["Sets the mana bar texture"] = "마나바의 텍스쳐를 설정합니다."
--[[ koKR ]] bL["Alpha"] = "투명도"
--[[ koKR ]] bL["Sets the mana bar alpha"] = "마나바의 투명도를 설정합니다."
 
--[[ koKR ]] bL["Height"] = "높이"
--[[ koKR ]] bL["Sets the height of the mana bar"] = "마나바의 높이를 설정합니다."
 
--[[ koKR ]] bL["Position"] = "위치"
--[[ koKR ]] bL["Adjust the mana bar's position"] = "마나바의 위치를 조절합니다."
--[[ koKR ]] bL["Left Offset"] = "좌측 좌표"
--[[ koKR ]] bL["Sets the offset of the left of the mana bar"] = "마나바의 좌측 좌표를 설정합니다."
--[[ koKR ]] bL["Right Offset"] = "우측 좌표"
--[[ koKR ]] bL["Sets the offset of the right of the mana bar"] = "마나바의 우측 좌표를 설정합니다."
--[[ koKR ]] bL["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] bL["Sets the vertical offset of the mana bar"] = "마나바의 수직 좌표를 설정합니다."
 
--[[ koKR ]] bL["Colors"] = "색상"
--[[ koKR ]] bL["Customize colors"] = "사용자 색상"
--[[ koKR ]] bL["Backdrop Color"] = "배경 색상"
--[[ koKR ]] bL["Sets the backdrop color of the mana bar"] = "마나바의 배경 색상을 설정합니다."
--[[ koKR ]] bL["Mana Color"] = "마나 색상"
--[[ koKR ]] bL["Sets the color for mana bars"] = "마나바의 색상을 설정합니다."
--[[ koKR ]] bL["Rage Color"] = "분노 색상"
--[[ koKR ]] bL["Sets the color for rage bars"] = "분노바의 색상을 설정합니다"
--[[ koKR ]] bL["Focus Color"] = "지정 색상"
--[[ koKR ]] bL["Sets the color for focus bars"] = "지정바의 색상을 설정합니다."
--[[ koKR ]] bL["Energy Color"] = "기력 색상"
--[[ koKR ]] bL["Sets the color for energy bars"] = "기력바의 색상을 설정합니다."
--[[ koKR ]] bL["Happiness Color"] = "만족도 색상"
--[[ koKR ]] bL["Sets the color for happiness bars"] = "만족도바의 색상을 설정합니다."
--[[ koKR ]] bL["Rune Color"] = "Rune Color"
--[[ koKR ]] bL["Sets the color for rune bars"] = "Sets the color for rune bars"
--[[ koKR ]] bL["Runic Power Color"] = "Runic Power Color"
--[[ koKR ]] bL["Sets the color for runic power bars"] = "Sets the color for runic power bars"
--[[ koKR ]] bL["Reset to Defaults"] = "기본값 초기화"
--[[ koKR ]] bL["Resets all colors to their defaults"] = "모든 색상을 기본값으로 초기화합니다."
 
--[[ koKR ]] bL["Border"] = "Border"
--[[ 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 mana bar"] = "Sets the border color of the mana bar"
--[[ koKR ]] bL["Border Style"] = "테두리 스타일"
--[[ koKR ]] bL["Sets the style of the mana bar border"] = "Sets the style of the mana bar border"
 
--[[ koKR ]] --bL["Always Show Target"] = "Always Show Target"
--[[ koKR ]] --bL["Always show mana bar on active targets in combat"] = "Always show mana bar on active targets in combat"
 
--[[ koKR ]] bL["Advanced"] = "고급"
--[[ koKR ]] bL["Options for expert users"] = "고급 사용자를 위한 설정"
--[[ koKR ]] bL["Color Format"] = "색상 형식"
--[[ koKR ]] bL["Color tag"] = "색상 태그"
--[[ koKR ]] bL["<Any tag string>"] = "<태그 문자열>"
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] tL["Mana Text"] = "마나 수치"
--[[ koKR ]] tL["Mana text options"] = "마나 수치 설정"
--[[ koKR ]] tL["Enable"] = "사용"
--[[ koKR ]] tL["Show mana text on group member nameplates"] = "파티원의 이름표에 마나 수치를 표시합니다."
 
--[[ koKR ]] tL["Color by type"] = "종류별 색상"
--[[ koKR ]] tL["Color text differently for mana, energy, rage"] = "각각의 마나, 기력, 분노에 따른 수치 색상"
 
--[[ koKR ]] tL["Typeface"] = "서체"
--[[ koKR ]] tL["Mana text typeface options"] = "마나 수치 서체 설정"
--[[ koKR ]] tL["Font"] = "글꼴"
--[[ koKR ]] tL["Sets the font for mana text"] = "마나 수치의 글꼴을 설정합니다."
--[[ koKR ]] tL["Font Size"] = "글꼴 크기"
--[[ koKR ]] tL["Sets the font height of the mana text"] = "마나 수치의 글꼴 높이를 설정합니다."
--[[ koKR ]] tL["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] tL["Show font shadow on mana text"] = "마나 수치에 그림자를 표시합니다."
--[[ koKR ]] tL["Outline"] = "테두리"
--[[ koKR ]] tL["Sets the outline for mana text"] = "마나 수치에 테두리를 설정합니다."
--[[ koKR ]] tL["Mode"] = "모드"
--[[ koKR ]] tL["Choose what to show for mana text"] = "마나 수치의 표시 방법을 선택합니다."
 
--[[ koKR ]] tL["Position"] = "위치"
--[[ koKR ]] tL["Adjust mana text position"] = "마나 수치의 위치를 조절합니다."
--[[ koKR ]] tL["Anchor"] = "앵커"
--[[ koKR ]] tL["Sets the anchor for the mana text"] = "마나 수치의 앵커를 설정합니다."
--[[ koKR ]] tL["Anchor To"] = "앵커 위치"
--[[ koKR ]] tL["Sets the relative point on the health bar to anchor the mana text"] = "생명력바에 마나 수치의 앵커 위치를 설정합니다."
--[[ koKR ]] tL["X Offset"] = "X 좌표"
--[[ koKR ]] tL["X offset of the mana text"] = "마나 수치의 X 좌표입니다."
--[[ koKR ]] tL["Y Offset"] = "Y 좌표"
--[[ koKR ]] tL["Y offset of the mana text"] = "마나 수치의 Y 좌표입니다."
--[[ koKR ]] tL["Alpha"] = "투명도"
--[[ koKR ]] tL["Sets the alpha of the mana text"] = "마나 수치의 투명도를 설정합니다."
--[[ koKR ]] tL["Color"] = "색상"
--[[ koKR ]] tL["Sets the mana text color"] = "마나 수치의 색상을 설정합니다."
 
--[[ koKR ]] tL["None"] = "없음"
--[[ koKR ]] tL["Normal"] = "기본"
--[[ koKR ]] tL["Thick"] = "굵게"
 
--[[ koKR ]] tL["Percent"] = "백분율"
--[[ koKR ]] tL["Mana"] = "마나"
--[[ koKR ]] tL["Mana & Percent"] = "Mana & Percent"
--[[ koKR ]] tL["Deficit"] = "결손치"
--[[ koKR ]] tL["Full"] = "가득"
 
--[[ koKR ]] tL["Always Show Target"] = "Always Show Target"
--[[ koKR ]] tL["Always show mana text on active targets in combat"] = "Always show mana text on active targets in combat"
 
--[[ koKR ]] tL["Advanced"] = "고급"
--[[ koKR ]] tL["Options for expert users"] = "고급 사용자를 위한 설정"
--[[ koKR ]] tL["Format"] = "형식"
--[[ koKR ]] tL["Mana tag"] = "마나 태그"
--[[ koKR ]] tL["<Any tag string>"] = "<태그 문자열>"
 
--[[ koKR ]] tL["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] tL["TOP"] = "상단"
--[[ koKR ]] tL["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] tL["LEFT"] = "좌측"
--[[ koKR ]] tL["CENTER"] = "가운데"
--[[ koKR ]] tL["RIGHT"] = "우측"
--[[ koKR ]] tL["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] tL["BOTTOM"] = "하단"
--[[ koKR ]] tL["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftMana"] = "AloftMana"
--[[ koKR ]] mL["Display mana data, bars, and text on nameplates"] = "Show mana data, bars, and text on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftMana", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] bL["Mana Bar"] = "Полоска маны"
--[[ ruRU ]] bL["Mana Bar options"] = "Настройки полоски маны"
--[[ ruRU ]] bL["Enable"] = "Включить"
--[[ ruRU ]] bL["Show mana bars on group member nameplates"] = "Отображать полоски маны на табличках участников группы"
 
--[[ ruRU ]] bL["Texture"] = "Текстура"
--[[ ruRU ]] bL["Sets the mana bar texture"] = "Задает текстуру полоски маны"
--[[ ruRU ]] bL["Alpha"] = "Прозрачность"
--[[ ruRU ]] bL["Sets the mana bar alpha"] = "Задает прозрачность полоски маны"
 
--[[ ruRU ]] bL["Height"] = "Высота"
--[[ ruRU ]] bL["Sets the height of the mana bar"] = "Задает высоту полоски маны"
 
--[[ ruRU ]] bL["Position"] = "Позиция"
--[[ ruRU ]] bL["Adjust the mana bar's position"] = "Задать место полоски маны"
--[[ ruRU ]] bL["Left Offset"] = "Смещение влево"
--[[ ruRU ]] bL["Sets the offset of the left of the mana bar"] = "Смещение полоски маны влево"
--[[ ruRU ]] bL["Right Offset"] = "Смещение вправо"
--[[ ruRU ]] bL["Sets the offset of the right of the mana bar"] = "Смещение полоски маны вправо"
--[[ ruRU ]] bL["Vertical Offset"] = "Смещение по вертикале"
--[[ ruRU ]] bL["Sets the vertical offset of the mana bar"] = "Смещение полоски маны по вертикале"
 
--[[ ruRU ]] bL["Colors"] = "Цвета"
--[[ ruRU ]] bL["Customize colors"] = "Настройка цветов"
--[[ ruRU ]] bL["Backdrop Color"] = "Цвет тени"
--[[ ruRU ]] bL["Sets the backdrop color of the mana bar"] = "Задает цвет тени полоски маны"
--[[ ruRU ]] bL["Mana Color"] = "Цвет маны"
--[[ ruRU ]] bL["Sets the color for mana bars"] = "Задает цвет для полосок маны"
--[[ ruRU ]] bL["Rage Color"] = "Цвет ярости"
--[[ ruRU ]] bL["Sets the color for rage bars"] = "Задает цвет для полосок ярости"
--[[ ruRU ]] bL["Focus Color"] = "Цвет фокуса"
--[[ ruRU ]] bL["Sets the color for focus bars"] = "Задает цвет полосок тонуса"
--[[ ruRU ]] bL["Energy Color"] = "Цвет энергии"
--[[ ruRU ]] bL["Sets the color for energy bars"] = "Задает цвет для полосок энергии"
--[[ ruRU ]] bL["Happiness Color"] = "Цвет счастья питомца"
--[[ ruRU ]] bL["Sets the color for happiness bars"] = "Задать цвет для полосок счастья"
--[[ ruRU ]] bL["Rune Color"] = "Цвет рун"
--[[ ruRU ]] bL["Sets the color for rune bars"] = "Установка цвета полос рун"
--[[ ruRU ]] bL["Runic Power Color"] = "Цвет силы рун"
--[[ ruRU ]] bL["Sets the color for runic power bars"] = "Установка цвета полос сылы рун"
--[[ ruRU ]] bL["Reset to Defaults"] = "Сбросить настройки"
--[[ ruRU ]] bL["Resets all colors to their defaults"] = "Сбрасывает все цвета в настройки по умолчанию"
 
--[[ ruRU ]] bL["Border"] = "Края"
--[[ 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 mana bar"] = "Установка цвета края полоски маны"
--[[ ruRU ]] bL["Border Style"] = "Стиль рамки"
--[[ ruRU ]] bL["Sets the style of the mana bar border"] = "Установка стиля краёв полоски маны"
 
--[[ ruRU ]] --bL["Always Show Target"] = "Всегда показывать цель"
--[[ ruRU ]] --bL["Always show mana bar on active targets in combat"] = "В бою всегда показывать полоску маны текущей цели"
 
--[[ ruRU ]] bL["Advanced"] = "Дополнительно"
--[[ ruRU ]] bL["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] bL["Color Format"] = "Формат цвета"
--[[ ruRU ]] bL["Color tag"] = "Формат цвета"
--[[ ruRU ]] bL["<Any tag string>"] = "<Любая строка формата>"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] tL["Mana Text"] = "Текст маны"
--[[ ruRU ]] tL["Mana text options"] = "Настройки текста маны"
--[[ ruRU ]] tL["Enable"] = "Включить"
--[[ ruRU ]] tL["Show mana text on group member nameplates"] = "Отображать текст маны на табличках участников группы"
 
--[[ ruRU ]] tL["Color by type"] = "Окрашивать в цвет типа"
--[[ ruRU ]] tL["Color text differently for mana, energy, rage"] = "Расцвечивать по разному текст для маны, ярости и энергии"
 
--[[ ruRU ]] tL["Typeface"] = "Шрифт"
--[[ ruRU ]] tL["Mana text typeface options"] = "Настройки шрифта текста маны"
--[[ ruRU ]] tL["Font"] = "Шрифт"
--[[ ruRU ]] tL["Sets the font for mana text"] = "Задает шрифт для текста маны"
--[[ ruRU ]] tL["Font Size"] = "Размер шрифта"
--[[ ruRU ]] tL["Sets the font height of the mana text"] = "Задает высоту шрифта для текста маны"
--[[ ruRU ]] tL["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] tL["Show font shadow on mana text"] = "Отображать тень для текста маны"
--[[ ruRU ]] tL["Outline"] = "Контур"
--[[ ruRU ]] tL["Sets the outline for mana text"] = "Задает окантовку для текста маны"
--[[ ruRU ]] tL["Mode"] = "Режим"
--[[ ruRU ]] tL["Choose what to show for mana text"] = "Выбрать, что показывать в тексте маны"
 
--[[ ruRU ]] tL["Position"] = "Позиция"
--[[ ruRU ]] tL["Adjust mana text position"] = "Задать место значения маны"
--[[ ruRU ]] tL["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] tL["Sets the anchor for the mana text"] = "Задает прикрепление текста маны"
--[[ ruRU ]] tL["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] tL["Sets the relative point on the health bar to anchor the mana text"] = "Задает точку для положения текста маны относительно полоски здоровья"
--[[ ruRU ]] tL["X Offset"] = "Смещение по X"
--[[ ruRU ]] tL["X offset of the mana text"] = "Смещение текста маны по X"
--[[ ruRU ]] tL["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] tL["Y offset of the mana text"] = "Смещение текста маны по Y"
--[[ ruRU ]] tL["Alpha"] = "Прозрачность"
--[[ ruRU ]] tL["Sets the alpha of the mana text"] = "Задает прозрачность текста маны"
--[[ ruRU ]] tL["Color"] = "Цвет"
--[[ ruRU ]] tL["Sets the mana text color"] = "Задает цвет текста маны"
 
--[[ ruRU ]] tL["None"] = "Нет"
--[[ ruRU ]] tL["Normal"] = "Обычно"
--[[ ruRU ]] tL["Thick"] = "Жирный"
 
--[[ ruRU ]] tL["Percent"] = "Проценты"
--[[ ruRU ]] tL["Mana"] = "Мана"
--[[ ruRU ]] tL["Mana & Percent"] = "Мана & Проценты"
--[[ ruRU ]] tL["Deficit"] = "Дефицит"
--[[ ruRU ]] tL["Full"] = "Полное"
 
--[[ ruRU ]] tL["Always Show Target"] = "Всегда показывать цель"
--[[ ruRU ]] tL["Always show mana text on active targets in combat"] = "В бою всегда показывать текст маны текущей цели"
 
--[[ ruRU ]] tL["Advanced"] = "Дополнительно"
--[[ ruRU ]] tL["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] tL["Format"] = "Формат"
--[[ ruRU ]] tL["Mana tag"] = "Вид маны"
--[[ ruRU ]] tL["<Any tag string>"] = "<Любая строка формата>"
 
--[[ ruRU ]] tL["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] tL["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] tL["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] tL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] tL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] tL["RIGHT"] = "СПРАВА"
--[[ ruRU ]] tL["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] tL["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] tL["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftMana"] = "AloftMana"
--[[ ruRU ]] mL["Display mana data, bars, and text on nameplates"] = "Отображает данные/тект/полосы маны"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftMana", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] bL["Mana Bar"] = "法力值显示条"
--[[ zhCN ]] bL["Mana Bar options"] = "法力值显示条相关设置"
--[[ zhCN ]] bL["Enable"] = "启用"
--[[ zhCN ]] bL["Show mana bars on group member nameplates"] = "在队友的姓名板上显示法力值显示条"
 
--[[ zhCN ]] bL["Texture"] = "材质"
--[[ zhCN ]] bL["Sets the mana bar texture"] = "设定法力值显示条的材质"
--[[ zhCN ]] bL["Alpha"] = "透明度"
--[[ zhCN ]] bL["Sets the mana bar alpha"] = "设定法力值显示条的透明度"
 
--[[ zhCN ]] bL["Height"] = "高度"
--[[ zhCN ]] bL["Sets the height of the mana bar"] = "设定法力值显示条的高度"
 
--[[ zhCN ]] bL["Position"] = "位置"
--[[ zhCN ]] bL["Adjust the mana bar's position"] = "调整法力值显示条的位置"
--[[ zhCN ]] bL["Left Offset"] = "向左偏移"
--[[ zhCN ]] bL["Sets the offset of the left of the mana bar"] = "设定法力值显示条的向左偏移量"
--[[ zhCN ]] bL["Right Offset"] = "向右偏移"
--[[ zhCN ]] bL["Sets the offset of the right of the mana bar"] = "设定法力值显示条的向右偏移量"
--[[ zhCN ]] bL["Vertical Offset"] = "垂直偏移"
--[[ zhCN ]] bL["Sets the vertical offset of the mana bar"] = "设定法力值显示条的垂直偏移量"
 
--[[ zhCN ]] bL["Colors"] = "颜色"
--[[ zhCN ]] bL["Customize colors"] = "自定义颜色"
--[[ zhCN ]] bL["Backdrop Color"] = "背景颜色"
--[[ zhCN ]] bL["Sets the backdrop color of the mana bar"] = "设定法力值显示条的背景颜色"
--[[ zhCN ]] bL["Mana Color"] = "法力颜色"
--[[ zhCN ]] bL["Sets the color for mana bars"] = "设定法力条的颜色"
--[[ zhCN ]] bL["Rage Color"] = "怒气颜色"
--[[ zhCN ]] bL["Sets the color for rage bars"] = "设定怒气条的颜色"
--[[ zhCN ]] bL["Focus Color"] = "集中值颜色"
--[[ zhCN ]] bL["Sets the color for focus bars"] = "设定集中值显示条的颜色"
--[[ zhCN ]] bL["Energy Color"] = "能量颜色"
--[[ zhCN ]] bL["Sets the color for energy bars"] = "设定能量条的颜色"
--[[ zhCN ]] bL["Happiness Color"] = "快乐值颜色"
--[[ zhCN ]] bL["Sets the color for happiness bars"] = "设定快乐值显示条的颜色"
--[[ zhCN ]] bL["Rune Color"] = "Rune Color"
--[[ zhCN ]] bL["Sets the color for rune bars"] = "Sets the color for rune bars"
--[[ zhCN ]] bL["Runic Power Color"] = "Runic Power Color"
--[[ zhCN ]] bL["Sets the color for runic power bars"] = "Sets the color for runic power bars"
--[[ zhCN ]] bL["Reset to Defaults"] = "重置为默认值"
--[[ zhCN ]] bL["Resets all colors to their defaults"] = "将全部颜色设定重置为默认"
 
--[[ zhCN ]] bL["Border"] = "Border"
--[[ 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 mana bar"] = "Sets the border color of the mana bar"
--[[ zhCN ]] bL["Border Style"] = "边框样式"
--[[ zhCN ]] bL["Sets the style of the mana bar border"] = "Sets the style of the mana bar border"
 
--[[ zhCN ]] --bL["Always Show Target"] = "始终显示目标"
--[[ zhCN ]] --bL["Always show mana bar on active targets in combat"] = "在战斗中始终显示当前目标的法力值"
 
--[[ zhCN ]] bL["Advanced"] = "高级"
--[[ zhCN ]] bL["Options for expert users"] = "高级设置"
--[[ zhCN ]] bL["Color Format"] = "颜色格式"
--[[ zhCN ]] bL["Color tag"] = "颜色标签"
--[[ zhCN ]] bL["<Any tag string>"] = "<任意标签文字>"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] tL["Mana Text"] = "法力提示文字"
--[[ zhCN ]] tL["Mana text options"] = "法力提示文字相关设置"
--[[ zhCN ]] tL["Enable"] = "启用"
--[[ zhCN ]] tL["Show mana text on group member nameplates"] = "在队友的姓名板上显示法力文字"
 
--[[ zhCN ]] tL["Color by type"] = "根据类型显示颜色"
--[[ zhCN ]] tL["Color text differently for mana, energy, rage"] = "根据不同的类型(法力、能量或怒气)显示颜色"
 
--[[ zhCN ]] tL["Typeface"] = "式样"
--[[ zhCN ]] tL["Mana text typeface options"] = "法力提示文字的式样设置"
--[[ zhCN ]] tL["Font"] = "字体"
--[[ zhCN ]] tL["Sets the font for mana text"] = "设定法力提示文字的字体"
--[[ zhCN ]] tL["Font Size"] = "字号"
--[[ zhCN ]] tL["Sets the font height of the mana text"] = "设定法力提示文字的字号"
--[[ zhCN ]] tL["Font Shadow"] = "字体阴影"
--[[ zhCN ]] tL["Show font shadow on mana text"] = "设定法力提示文字的字体阴影"
--[[ zhCN ]] tL["Outline"] = "轮廓"
--[[ zhCN ]] tL["Sets the outline for mana text"] = "设定法力提示文字的字体轮廓"
--[[ zhCN ]] tL["Mode"] = "模式"
--[[ zhCN ]] tL["Choose what to show for mana text"] = "选择在法力提示文字的显示内容"
 
--[[ zhCN ]] tL["Position"] = "位置"
--[[ zhCN ]] tL["Adjust mana text position"] = "设定法力提示文字的位置"
--[[ zhCN ]] tL["Anchor"] = "锚点"
--[[ zhCN ]] tL["Sets the anchor for the mana text"] = "设定法力提示文字的锚点"
--[[ zhCN ]] tL["Anchor To"] = "固定在"
--[[ zhCN ]] tL["Sets the relative point on the health bar to anchor the mana text"] = "设定法力提示文字固定在生命值显示条的相对位置"
--[[ zhCN ]] tL["X Offset"] = "X轴偏移"
--[[ zhCN ]] tL["X offset of the mana text"] = "设定法力提示文字的X轴偏移量"
--[[ zhCN ]] tL["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] tL["Y offset of the mana text"] = "设定法力提示文字的Y轴偏移量"
--[[ zhCN ]] tL["Alpha"] = "透明度"
--[[ zhCN ]] tL["Sets the alpha of the mana text"] = "设定法力提示文字的透明度"
--[[ zhCN ]] tL["Color"] = "颜色"
--[[ zhCN ]] tL["Sets the mana text color"] = "设定法力提示文字的颜色"
 
--[[ zhCN ]] tL["None"] = "无"
--[[ zhCN ]] tL["Normal"] = "正常"
--[[ zhCN ]] tL["Thick"] = "粗"
 
--[[ zhCN ]] tL["Percent"] = "百分比"
--[[ zhCN ]] tL["Mana"] = "法力"
--[[ zhCN ]] tL["Mana & Percent"] = "法力值和百分比"
--[[ zhCN ]] tL["Deficit"] = "不足额"
--[[ zhCN ]] tL["Full"] = "完全"
 
--[[ zhCN ]] tL["Always Show Target"] = "始终显示目标"
--[[ zhCN ]] tL["Always show mana text on active targets in combat"] = "战斗中始终显示当前目标的法力文字"
 
--[[ zhCN ]] tL["Advanced"] = "高级"
--[[ zhCN ]] tL["Options for expert users"] = "高级设置"
--[[ zhCN ]] tL["Format"] = "格式"
--[[ zhCN ]] tL["Mana tag"] = "法力标签"
--[[ zhCN ]] tL["<Any tag string>"] = "<任意标签文字>"
 
--[[ zhCN ]] tL["TOPLEFT"] = "左上"
--[[ zhCN ]] tL["TOP"] = "上"
--[[ zhCN ]] tL["TOPRIGHT"] = "右上"
--[[ zhCN ]] tL["LEFT"] = "å·¦"
--[[ zhCN ]] tL["CENTER"] = "中"
--[[ zhCN ]] tL["RIGHT"] = "右"
--[[ zhCN ]] tL["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] tL["BOTTOM"] = "下"
--[[ zhCN ]] tL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftMana"] = "法力值"
--[[ zhCN ]] mL["Display mana data, bars, and text on nameplates"] = "在姓名板上显示法力值数据和法力条"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftMana", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] bL["Mana Bar"] = "能力條"
--[[ zhTW ]] bL["Mana Bar options"] = "能力條選項"
--[[ zhTW ]] bL["Enable"] = "啟用"
--[[ zhTW ]] bL["Show mana bars on group member nameplates"] = "在團體名牌顯示能力條"
 
--[[ zhTW ]] bL["Texture"] = "紋理"
--[[ zhTW ]] bL["Sets the mana bar texture"] = "能力條紋理"
--[[ zhTW ]] bL["Alpha"] = "透明度"
--[[ zhTW ]] bL["Sets the mana bar alpha"] = "能力條透明度"
 
--[[ zhTW ]] bL["Height"] = "高度"
--[[ zhTW ]] bL["Sets the height of the mana bar"] = "能力條高度"
 
--[[ zhTW ]] bL["Position"] = "位置"
--[[ zhTW ]] bL["Adjust the mana bar's position"] = "能力條位置"
--[[ zhTW ]] bL["Left Offset"] = "左位移"
--[[ zhTW ]] bL["Sets the offset of the left of the mana bar"] = "能力條左位移"
--[[ zhTW ]] bL["Right Offset"] = "右位移"
--[[ zhTW ]] bL["Sets the offset of the right of the mana bar"] = "能力條右位移"
--[[ zhTW ]] bL["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] bL["Sets the vertical offset of the mana bar"] = "能力條垂直位移"
 
--[[ zhTW ]] bL["Colors"] = "顏色"
--[[ zhTW ]] bL["Customize colors"] = "自定顏色"
--[[ zhTW ]] bL["Backdrop Color"] = "背景顏色"
--[[ zhTW ]] bL["Sets the backdrop color of the mana bar"] = "能力條背景顏色"
--[[ zhTW ]] bL["Mana Color"] = "法力顏色"
--[[ zhTW ]] bL["Sets the color for mana bars"] = "法力條顏色"
--[[ zhTW ]] bL["Rage Color"] = "怒氣顏色"
--[[ zhTW ]] bL["Sets the color for rage bars"] = "怒氣條顏色"
--[[ zhTW ]] bL["Focus Color"] = "集中值顏色"
--[[ zhTW ]] bL["Sets the color for focus bars"] = "集中值條顏色"
--[[ zhTW ]] bL["Energy Color"] = "能量顏色"
--[[ zhTW ]] bL["Sets the color for energy bars"] = "能量條顏色"
--[[ zhTW ]] bL["Happiness Color"] = "快樂值顏色"
--[[ zhTW ]] bL["Sets the color for happiness bars"] = "快樂值條顏色"
--[[ zhTW ]] bL["Rune Color"] = "Rune Color"
--[[ zhTW ]] bL["Sets the color for rune bars"] = "Sets the color for rune bars"
--[[ zhTW ]] bL["Runic Power Color"] = "Runic Power Color"
--[[ zhTW ]] bL["Sets the color for runic power bars"] = "Sets the color for runic power bars"
--[[ zhTW ]] bL["Reset to Defaults"] = "重設回預設值"
--[[ zhTW ]] bL["Resets all colors to their defaults"] = "重設全部顏色回預設值"
 
--[[ zhTW ]] bL["Border"] = "Border"
--[[ 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 mana bar"] = "Sets the border color of the mana bar"
--[[ zhTW ]] bL["Border Style"] = "邊框樣式"
--[[ zhTW ]] bL["Sets the style of the mana bar border"] = "Sets the style of the mana bar border"
 
--[[ zhTW ]] --bL["Always Show Target"] = "始終顯示目標"
--[[ zhTW ]] --bL["Always show mana bar on active targets in combat"] = "在戰斗中始終顯示當前目標的法力"
 
--[[ zhTW ]] bL["Advanced"] = "進階"
--[[ zhTW ]] bL["Options for expert users"] = "進階選項"
--[[ zhTW ]] bL["Color Format"] = "顏色格式"
--[[ zhTW ]] bL["Color tag"] = "顏色標籤"
--[[ zhTW ]] bL["<Any tag string>"] = "<任何標籤文字>"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] tL["Mana Text"] = "法力文字"
--[[ zhTW ]] tL["Mana text options"] = "法力文字選項"
--[[ zhTW ]] tL["Enable"] = "啟用"
--[[ zhTW ]] tL["Show mana text on group member nameplates"] = "在團體名牌顯示法力文字"
 
--[[ zhTW ]] tL["Color by type"] = "根據類型上色"
--[[ zhTW ]] tL["Color text differently for mana, energy, rage"] = "根據不同類型 (法力,能量,怒氣) 設定顏色"
 
--[[ zhTW ]] tL["Typeface"] = "字體"
--[[ zhTW ]] tL["Mana text typeface options"] = "法力文字字體選項"
--[[ zhTW ]] tL["Font"] = "字型"
--[[ zhTW ]] tL["Sets the font for mana text"] = "法力文字字型"
--[[ zhTW ]] tL["Font Size"] = "字型大小"
--[[ zhTW ]] tL["Sets the font height of the mana text"] = "法力文字字型大小"
--[[ zhTW ]] tL["Font Shadow"] = "字型陰影"
--[[ zhTW ]] tL["Show font shadow on mana text"] = "法力文字字型陰影"
--[[ zhTW ]] tL["Outline"] = "輪廓"
--[[ zhTW ]] tL["Sets the outline for mana text"] = "法力文字字型輪廓"
--[[ zhTW ]] tL["Mode"] = "模式"
--[[ zhTW ]] tL["Choose what to show for mana text"] = "選擇在法力文字顯示什麼"
 
--[[ zhTW ]] tL["Position"] = "位置"
--[[ zhTW ]] tL["Adjust mana text position"] = "法力文字位置"
--[[ zhTW ]] tL["Anchor"] = "定位點"
--[[ zhTW ]] tL["Sets the anchor for the mana text"] = "法力文字定位點"
--[[ zhTW ]] tL["Anchor To"] = "固定在"
--[[ zhTW ]] tL["Sets the relative point on the health bar to anchor the mana text"] = "法力文字固定在生命力條的位置"
--[[ zhTW ]] tL["X Offset"] = "X位移"
--[[ zhTW ]] tL["X offset of the mana text"] = "法力文字X位移"
--[[ zhTW ]] tL["Y Offset"] = "Y位移"
--[[ zhTW ]] tL["Y offset of the mana text"] = "法力文字Y位移"
--[[ zhTW ]] tL["Alpha"] = "透明度"
--[[ zhTW ]] tL["Sets the alpha of the mana text"] = "法力文字透明度"
--[[ zhTW ]] tL["Color"] = "顏色"
--[[ zhTW ]] tL["Sets the mana text color"] = "法力文字顏色"
 
--[[ zhTW ]] tL["None"] = "無"
--[[ zhTW ]] tL["Normal"] = "正常"
--[[ zhTW ]] tL["Thick"] = "粗"
 
--[[ zhTW ]] tL["Percent"] = "百分比"
--[[ zhTW ]] tL["Mana"] = "法力"
--[[ zhTW ]] tL["Mana & Percent"] = "法力值和百分比"
--[[ zhTW ]] tL["Deficit"] = "不足額"
--[[ zhTW ]] tL["Full"] = "完全"
 
--[[ zhTW ]] tL["Always Show Target"] = "始終顯示目標"
--[[ zhTW ]] tL["Always show mana text on active targets in combat"] = "戰斗中始終顯示當前目標的法力文字"
 
--[[ zhTW ]] tL["Advanced"] = "進階"
--[[ zhTW ]] tL["Options for expert users"] = "進階選項"
--[[ zhTW ]] tL["Format"] = "格式"
--[[ zhTW ]] tL["Mana tag"] = "能力標籤"
--[[ zhTW ]] tL["<Any tag string>"] = "<任何標籤文字>"
 
--[[ zhTW ]] tL["TOPLEFT"] = "左上"
--[[ zhTW ]] tL["TOP"] = "上"
--[[ zhTW ]] tL["TOPRIGHT"] = "右上"
--[[ zhTW ]] tL["LEFT"] = "å·¦"
--[[ zhTW ]] tL["CENTER"] = "中"
--[[ zhTW ]] tL["RIGHT"] = "右"
--[[ zhTW ]] tL["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] tL["BOTTOM"] = "下"
--[[ zhTW ]] tL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftMana"] = "法力值"
--[[ zhTW ]] mL["Display mana data, bars, and text on nameplates"] = "在名牌上顯示法力值資料和法力條"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftMana", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftManaBarOptions = setmetatable(bL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
bL = nil
 
AloftLocale.AloftManaTextOptions = setmetatable(tL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
tL = nil
 
-----------------------------------------------------------------------------
 
end)
 
AloftOptions/AloftClassIcon/AloftClassIconOptions.lua New file
0,0 → 1,123
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftClassIcon", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftClassIcon
if not L then return end
 
local AloftClassIcon = Aloft:GetModule("ClassIcon")
if not AloftClassIcon then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.classIcon =
{
type = 'group',
name = L["Class Icon"],
desc = L["Class icon placement options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftClassIcon:IsEnabled() or not AloftClassIcon.db or not AloftClassIcon.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
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
},
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,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the class icon"],
get = function(i) return AloftClassIcon.db.profile.point end,
set = function(i, v) AloftClassIcon.db.profile.point = v AloftClassIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the class icon"],
get = function(i) return AloftClassIcon.db.profile.relativeToPoint end,
set = function(i, v) AloftClassIcon.db.profile.relativeToPoint = v AloftClassIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the class icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftClassIcon.db.profile.offsetX end,
set = function(i, v) AloftClassIcon.db.profile.offsetX = v AloftClassIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the class icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftClassIcon.db.profile.offsetY end,
set = function(i, v) AloftClassIcon.db.profile.offsetY = v AloftClassIcon:UpdateAll() end
},
},
},
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
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftClassIcon/AloftClassIconLocale.lua New file
0,0 → 1,263
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local L = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftClassIcon", function()
 
-----------------------------------------------------------------------------
 
-- TODO: on the surface, this wastes space in the enUS locale; the metatable could just return the canonical string as the localization;
-- BUT, this serves as a default locale, and also will permit the metatable to check/notify on missing locale strings
 
--[[ enUS ]] L["Class Icon"] = "Class Icon"
--[[ enUS ]] L["Class icon placement options"] = "Class icon placement options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Enable class icon display on the nameplate"] = "Enable class icon display on the nameplate"
--[[ enUS ]] L["Size"] = "Size"
--[[ enUS ]] L["Size in pixels of the class icon"] = "Size in pixels of the class icon"
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust class icon position"] = "Adjust class icon position"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the class icon"] = "X offset of the class icon"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the class icon"] = "Y offset of the class icon"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the class icon"] = "Sets the anchor for the class icon"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the class icon"] = "Sets the relative point on the health bar to anchor the class icon"
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Sets the class icon alpha"] = "Sets the class icon alpha"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
--[[ enUS ]] mL["AloftClassIcon"] = "AloftClassIcon"
--[[ enUS ]] mL["Display class icons on nameplates"] = "Display class icons on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftClassIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Class Icon"] = "Class Icon"
--[[ koKR ]] L["Class icon placement options"] = "Class icon placement options"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Enable class icon display on the nameplate"] = "Enable class icon display on the nameplate"
--[[ koKR ]] L["Size"] = "크기"
--[[ koKR ]] L["Size in pixels of the class icon"] = "Size in pixels of the class icon"
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust class icon position"] = "Adjust class icon position"
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the class icon"] = "X offset of the class icon"
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the class icon"] = "Y offset of the class icon"
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the class icon"] = "Sets the anchor for the class icon"
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the class icon"] = "Sets the relative point on the health bar to anchor the class icon"
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Sets the class icon alpha"] = "Sets the class icon alpha"
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
end)
 
--[[ koKR ]] mL["AloftClassIcon"] = "AloftClassIcon"
--[[ koKR ]] mL["Display class icons on nameplates"] = "Display class icons on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftClassIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Class Icon"] = "Значок класса"
--[[ ruRU ]] L["Class icon placement options"] = "Настройка размещения значка класса"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Enable class icon display on the nameplate"] = "Включить отображение значка класса на табличке"
--[[ ruRU ]] L["Size"] = "Размер"
--[[ ruRU ]] L["Size in pixels of the class icon"] = "Размер значка класса в пикселях"
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust class icon position"] = "Задать место значка класса"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the class icon"] = "Смещение значка класса по X"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the class icon"] = "Смещение значка класса по Y"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the class icon"] = "Задает прикрепление значка класса"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the class icon"] = "Задает точку для положения значка класса относительно полоски здоровья"
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Sets the class icon alpha"] = "Задает прозрачность значка класса"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
end)
 
--[[ ruRU ]] mL["AloftClassIcon"] = "AloftClassIcon"
--[[ ruRU ]] mL["Display class icons on nameplates"] = "Отображает иконку класса на табличке"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftClassIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Class Icon"] = "职业图标"
--[[ zhCN ]] L["Class icon placement options"] = "职业图标位置选项"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Enable class icon display on the nameplate"] = "在姓名板上显示职业图标"
--[[ zhCN ]] L["Size"] = "尺寸"
--[[ zhCN ]] L["Size in pixels of the class icon"] = "职业图标的大小(单位为像素)"
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust class icon position"] = "职业图标位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the class icon"] = "职业图标横轴偏移"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the class icon"] = "职业图标纵轴偏移"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the class icon"] = "职业图标锚点"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the class icon"] = "设置职业图标要依附到生命条的哪个位置"
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Sets the class icon alpha"] = "设置职业图标透明度"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
--[[ zhCN ]] mL["AloftClassIcon"] = "职业图标"
--[[ zhCN ]] mL["Display class icons on nameplates"] = "在姓名板上显示职业图标"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftClassIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Class Icon"] = "職業圖示"
--[[ 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["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["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["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the class icon alpha"] = "設置職業圖示透明度"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
--[[ zhTW ]] mL["AloftClassIcon"] = "職業圖示"
--[[ zhTW ]] mL["Display class icons on nameplates"] = "在名牌上顯示職業圖示"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftClassIcon", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftClassIcon = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftClassIcon/AloftClassIconModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftClassIcon =
{
type = 'toggle',
width = 'full',
name = L["AloftClassIcon"],
desc = L["Display class icons on nameplates"],
get = function(i) return AloftModules.db.profile.AloftClassIcon end,
set = function(i, v) AloftModules.db.profile.AloftClassIcon = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftIsPetData/AloftIsPetDataOptions.lua New file
0,0 → 1,27
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftIsPetDataOptions
if not L then return end
 
local AloftIsPetData = Aloft:GetModule("IsPetData")
if not AloftIsPetData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.pet =
{
type = 'toggle',
width = 'full',
name = L["Save Pet Data"],
desc = L["Stores pet information between sessions"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftIsPetData:IsEnabled() or not AloftIsPetData.db or not AloftIsPetData.db.profile end,
get = function(i) return AloftIsPetData.db.profile.save end,
set = AloftIsPetData.SetSaveData
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftIsPetData/AloftIsPetDataLocale.lua New file
0,0 → 1,64
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Save Pet Data"] = "Save Pet Data"
--[[ enUS ]] L["Stores pet information between sessions"] = "Stores pet information between sessions"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Save Pet Data"] = "소환수 데이터 저장"
--[[ koKR ]] L["Stores pet information between sessions"] = "접속 간 소환수 정보를 저장합니다."
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Save Pet Data"] = "Записать данные о питомцах"
--[[ ruRU ]] L["Stores pet information between sessions"] = "Сохранять данные о питомцах между сессиями"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Save Pet Data"] = "储存宠物信息"
--[[ zhCN ]] L["Stores pet information between sessions"] = "在两次登录的间隔储存宠物信息"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Save Pet Data"] = "儲存寵物資料"
--[[ zhTW ]] L["Stores pet information between sessions"] = "儲存寵物資料"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftIsPetDataOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
AloftOptions/AloftOptions.toc New file
0,0 → 1,270
## Interface: 40100
## Version: 4.3.2
## Title: AloftOptions (Ace3)
## Notes: Options for Aloft
## Notes-deDE: Need translation, seeking volunteers
## Notes-esES: Need translation, seeking volunteers
## Notes-frFR: Need translation, seeking volunteers
## Notes-koKR: Need translation, seeking volunteers
## Notes-ruRU: Need translation, seeking volunteers
## Notes-zhTW: Need translation, seeking volunteers
## Notes-zhCN: Need translation, seeking volunteers
## Author: Acapela (legacy: Roartindon\Silvermoon)
## LoadOnDemand: 1
## Dependencies: Aloft
## OptionalDeps: Ace3, LibStub, LibSharedMedia-3.0
## X-Category: Interface Enhancements
## X-Embeds:
## SavedVariables:
## X-License: LGPL v2.1 or later
 
##
 
Aloft\AloftLocale.lua
Aloft\Aloft.lua
 
Aloft\AloftOptions.lua
 
## AloftModules is included out of alphabetic order because several other things depend on it
 
AloftModules\AloftModulesLocale.lua
AloftModules\AloftModulesOptions.lua
 
## NOTE: AloftTargetTrackingData is included out of alphabetic order because several other things depend on it
 
AloftTargetTrackingData\AloftTargetTrackingDataLocale.lua
AloftTargetTrackingData\AloftTargetTrackingDataOptions.lua
 
##
 
AloftAliasData\AloftAliasDataLocale.lua
AloftAliasData\AloftAliasDataOptions.lua
 
##
 
AloftAlpha\AloftAlphaLocale.lua
AloftAlpha\AloftAlphaModuleOptions.lua
AloftAlpha\AloftAlphaOptions.lua
 
##
 
AloftAutoShow\AloftAutoShowLocale.lua
AloftAutoShow\AloftAutoShowModuleOptions.lua
AloftAutoShow\AloftAutoShowOptions.lua
 
##
 
AloftBossIcon\AloftBossIconLocale.lua
AloftBossIcon\AloftBossIconOptions.lua
 
##
 
AloftBroker\AloftBrokerLocale.lua
AloftBroker\AloftBrokerModuleOptions.lua
 
##
 
AloftCastBar\AloftCastBarLocale.lua
AloftCastBar\AloftCastBarOptions.lua
AloftCastBar\AloftSpellIconOptions.lua
AloftCastBar\AloftCastBarTimeTextModuleOptions.lua
AloftCastBar\AloftCastBarTimeTextOptions.lua
AloftCastBar\AloftSpellNameTextModuleOptions.lua
AloftCastBar\AloftSpellNameTextOptions.lua
 
##
 
AloftClassData\AloftClassDataLocale.lua
AloftClassData\AloftClassDataOptions.lua
 
##
 
AloftClassIcon\AloftClassIconLocale.lua
AloftClassIcon\AloftClassIconModuleOptions.lua
AloftClassIcon\AloftClassIconOptions.lua
 
##
 
AloftClassificationData\AloftClassificationDataLocale.lua
AloftClassificationData\AloftClassificationDataOptions.lua
 
##
 
AloftCombatText\AloftCombatTextLocale.lua
AloftCombatText\AloftCombatTextModuleOptions.lua
AloftCombatText\AloftCombatTextOptions.lua
 
##
 
AloftComment\AloftCommentLocale.lua
AloftComment\AloftCommentModuleOptions.lua
AloftComment\AloftCommentDataOptions.lua
AloftComment\AloftCommentTextOptions.lua
 
##
 
AloftCreatureTypeData\AloftCreatureTypeDataLocale.lua
AloftCreatureTypeData\AloftCreatureTypeDataOptions.lua
 
##
 
AloftCrowdControl\AloftCrowdControlLocale.lua
AloftCrowdControl\AloftCrowdControlModuleOptions.lua
AloftCrowdControl\AloftCrowdControlOptions.lua
AloftCrowdControl\AloftCrowdControlSpellIconOptions.lua
AloftCrowdControl\AloftCrowdControlSpellNameTextOptions.lua
AloftCrowdControl\AloftCrowdControlTimeTextOptions.lua
 
##
 
AloftFaction\AloftFactionLocale.lua
AloftFaction\AloftFactionModuleOptions.lua
AloftFaction\AloftFactionDataOptions.lua
 
##
 
AloftFrame\AloftFrameLocale.lua
AloftFrame\AloftFrameOptions.lua
 
##
 
AloftFu\AloftFuLocale.lua
AloftFu\AloftFuModuleOptions.lua
 
##
 
AloftGuild\AloftGuildLocale.lua
AloftGuild\AloftGuildModuleOptions.lua
AloftGuild\AloftGuildDataOptions.lua
AloftGuild\AloftGuildTextOptions.lua
AloftGuild\AloftShortGuildDataOptions.lua
 
##
 
AloftHealthBar\AloftHealthBarLocale.lua
AloftHealthBar\AloftHealthBarOptions.lua
 
## NOTE: AloftGlow is included out of alphabetic order because it is dependent on AloftHealthBar
## NOTE: AloftThreat now depends on SharedMedia textures registered by AloftGlow; make sure AloftThreat always loads after AloftGlow
 
AloftGlow\AloftGlowLocale.lua
AloftGlow\AloftGlowOptions.lua
 
##
 
AloftHealthText\AloftHealthTextLocale.lua
AloftHealthText\AloftHealthTextModuleOptions.lua
AloftHealthText\AloftHealthTextOptions.lua
 
##
 
AloftHighlight\AloftHighlightLocale.lua
AloftHighlight\AloftHighlightOptions.lua
 
##
 
AloftIsPetData\AloftIsPetDataLocale.lua
AloftIsPetData\AloftIsPetDataOptions.lua
 
##
 
AloftLevelText\AloftLevelTextLocale.lua
AloftLevelText\AloftLevelTextOptions.lua
 
##
 
AloftMana\AloftManaLocale.lua
AloftMana\AloftManaModuleOptions.lua
AloftMana\AloftManaBarOptions.lua
AloftMana\AloftManaTextOptions.lua
 
##
 
AloftNameText\AloftNameTextLocale.lua
AloftNameText\AloftNameTextOptions.lua
 
##
 
AloftPetOwnersNameData\AloftPetOwnersNameDataLocale.lua
AloftPetOwnersNameData\AloftPetOwnersNameDataModuleOptions.lua
AloftPetOwnersNameData\AloftPetOwnersNameDataOptions.lua
 
##
 
AloftPlayerTitleData\AloftPlayerTitleDataLocale.lua
AloftPlayerTitleData\AloftPlayerTitleDataModuleOptions.lua
AloftPlayerTitleData\AloftPlayerTitleDataOptions.lua
 
##
 
AloftPresets\AloftPresetsLocale.lua
AloftPresets\AloftPresetsModuleOptions.lua
AloftPresets\AloftPresetsOptions.lua
 
##
 
AloftRaceData\AloftRaceDataLocale.lua
AloftRaceData\AloftRaceDataOptions.lua
 
##
 
AloftRaidIcon\AloftRaidIconLocale.lua
AloftRaidIcon\AloftRaidIconOptions.lua
 
##
 
AloftRecentlyDamaged\AloftRecentlyDamagedLocale.lua
AloftRecentlyDamaged\AloftRecentlyDamagedModuleOptions.lua
AloftRecentlyDamaged\AloftRecentlyDamagedIconOptions.lua
 
##
 
AloftReportStatusChanges\AloftReportStatusChangesLocale.lua
AloftReportStatusChanges\AloftReportStatusChangesOptions.lua
 
##
 
AloftSetAll\AloftSetAllLocale.lua
AloftSetAll\AloftSetAll.lua
 
##
 
AloftStackedPointsText\AloftStackedPointsTextLocale.lua
AloftStackedPointsText\AloftStackedPointsTextModuleOptions.lua
AloftStackedPointsText\AloftStackedPointsTextOptions.lua
 
##
 
AloftStateIcon\AloftStateIconLocale.lua
AloftStateIcon\AloftStateIconOptions.lua
 
##
 
AloftTarget\AloftTargetLocale.lua
AloftTarget\AloftTargetModuleOptions.lua
AloftTarget\AloftTargetNameDataOptions.lua
 
## NOTE: AloftThreat now depends on SharedMedia textures registered by AloftGlow; make sure AloftThreat always loads after AloftGlow
 
AloftThreat\AloftThreatLocale.lua
AloftThreat\AloftThreatModuleOptions.lua
AloftThreat\AloftThreatDataOptions.lua
AloftThreat\AloftThreatBarOptions.lua
AloftThreat\AloftThreatTextOptions.lua
 
##
 
AloftVisibility\AloftVisibilityLocale.lua
AloftVisibility\AloftVisibilityModuleOptions.lua
AloftVisibility\AloftVisibilityOptions.lua
 
## NOTE: AloftCastWarning depends on several things, including AloftCastBar and AloftVisibility; load AloftCastWarning last
 
AloftCastWarning\AloftCastWarningLocale.lua
AloftCastWarning\AloftCastWarningModuleOptions.lua
AloftCastWarning\AloftCastWarningOptions.lua
AloftCastWarning\AloftCastWarningSpellIconOptions.lua
AloftCastWarning\AloftCastWarningTimeTextOptions.lua
AloftCastWarning\AloftCastWarningSpellNameTextOptions.lua
 
##
AloftOptions/AloftCastBar/AloftCastBarLocale.lua New file
0,0 → 1,998
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
-----------------------------------------------------------------------------
 
local bL = { }
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] bL["Cast Bar"] = "Cast Bar"
--[[ enUS ]] bL["Cast bar options"] = "Cast bar options"
--[[ enUS ]] bL["Enable"] = "Enable"
--[[ enUS ]] bL["Shows the current target's casting bar"] = "Shows the current target's casting bar"
--[[ enUS ]] bL["Position"] = "Position"
--[[ enUS ]] bL["Adjust cast bar position"] = "Adjust cast bar position"
--[[ enUS ]] bL["Left Offset"] = "Left Offset"
--[[ enUS ]] bL["Sets the offset of the left of the cast bar"] = "Sets the offset of the left of the cast bar"
--[[ enUS ]] bL["Right Offset"] = "Right Offset"
--[[ enUS ]] bL["Sets the offset of the right of the cast bar"] = "Sets the offset of the right of the cast bar"
--[[ enUS ]] bL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] bL["Sets the vertical offset of the cast bar"] = "Sets the vertical offset of the cast bar"
--[[ enUS ]] bL["Height"] = "Height"
--[[ enUS ]] bL["Sets the height of the cast bar"] = "Sets the height of the cast bar"
 
--[[ enUS ]] bL["Interruptable Cast Bar"] = "Interruptable Cast Bar"
--[[ enUS ]] bL["Cast bar appearance for interruptable spells"] = "Cast bar appearance for interruptable spells"
--[[ enUS ]] bL["Uninterruptable Cast Bar"] = "Uninterruptable Cast Bar"
--[[ enUS ]] bL["Cast bar appearance for uninterruptable spells"] = "Cast bar appearance for uninterruptable spells"
 
--[[ enUS ]] bL["Cast Bar Color"] = "Cast Bar Color"
--[[ enUS ]] bL["Sets the color of the cast bar"] = "Sets the color of the cast bar"
--[[ enUS ]] bL["Backdrop Color"] = "Backdrop Color"
--[[ enUS ]] bL["Sets the backdrop color of the cast bar"] = "Sets the backdrop color of the cast bar"
--[[ 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 cast bar"] = "Sets the border color of the cast bar"
--[[ enUS ]] bL["Border Style"] = "Border Style"
--[[ enUS ]] bL["Sets the style of the cast bar border"] = "Sets the style of the cast bar border"
--[[ enUS ]] bL["Texture"] = "Texture"
--[[ enUS ]] bL["Sets the cast bar texture"] = "Sets the cast bar texture"
 
-----------------------------------------------------------------------------
 
local iL = { }
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] iL["Spell Icon"] = "Spell Icon"
--[[ enUS ]] iL["Spell icon placement options"] = "Spell icon placement options"
--[[ enUS ]] iL["Enable"] = "Enable"
--[[ enUS ]] iL["Enable spell icon display on the nameplate"] = "Enable spell icon display on the nameplate"
--[[ enUS ]] iL["Position"] = "Position"
--[[ enUS ]] iL["Adjust spell icon position"] = "Adjust spell icon position"
--[[ enUS ]] iL["Anchor"] = "Anchor"
--[[ enUS ]] iL["Sets the anchor for the spell icon"] = "Sets the anchor for the spell icon"
--[[ enUS ]] iL["Anchor To"] = "Anchor To"
--[[ enUS ]] iL["Sets the relative point on the cast bar to anchor the spell icon"] = "Sets the relative point on the cast bar to anchor the spell icon"
--[[ enUS ]] iL["Size"] = "Size"
--[[ enUS ]] iL["Size in pixels of the spell icon"] = "Size in pixels of the spell icon"
--[[ enUS ]] iL["X Offset"] = "X Offset"
--[[ enUS ]] iL["X offset of the spell icon"] = "X offset of the spell icon"
--[[ enUS ]] iL["Y Offset"] = "Y Offset"
--[[ enUS ]] iL["Y offset of the spell icon"] = "Y offset of the spell icon"
 
--[[ enUS ]] iL["Shield"] = "Shield"
--[[ enUS ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ enUS ]] iL["Enable"] = "Enable"
--[[ enUS ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ enUS ]] iL["Style"] = "Style"
--[[ enUS ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ enUS ]] iL["Scale"] = "Scale"
--[[ enUS ]] iL["Scale of the shield graphic"] = "Scale of the shield graphic"
--[[ enUS ]] iL["Color"] = "Color"
--[[ enUS ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
--[[ enUS ]] iL["X Offset"] = "X Offset"
--[[ enUS ]] iL["Y Offset"] = "Y Offset"
 
--[[ enUS ]] iL["SQUARE"] = "SQUARE"
--[[ enUS ]] iL["ROUND"] = "ROUND"
 
--[[ enUS ]] iL["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] iL["TOP"] = "TOP"
--[[ enUS ]] iL["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] iL["LEFT"] = "LEFT"
--[[ enUS ]] iL["CENTER"] = "CENTER"
--[[ enUS ]] iL["RIGHT"] = "RIGHT"
--[[ enUS ]] iL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] iL["BOTTOM"] = "BOTTOM"
--[[ enUS ]] iL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
local nL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] nL["Spell Name"] = "Spell Name"
--[[ enUS ]] nL["Cast bar spell name text options"] = "Cast bar spell name text options"
--[[ enUS ]] nL["Enable"] = "Enable"
--[[ enUS ]] nL["Show spell name on cast bar"] = "Show spell name on cast bar"
--[[ enUS ]] nL["Typeface"] = "Typeface"
--[[ enUS ]] nL["Spell name typeface options"] = "Spell name typeface options"
--[[ enUS ]] nL["Font"] = "Font"
--[[ enUS ]] nL["Sets the font for spell name"] = "Sets the font for spell name"
--[[ enUS ]] nL["Font Size"] = "Font Size"
--[[ enUS ]] nL["Sets the font height of the spell name"] = "Sets the font height of the spell name"
--[[ enUS ]] nL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] nL["Show font shadow on spell name"] = "Show font shadow on spell name"
--[[ enUS ]] nL["Alignment"] = "Alignment"
--[[ enUS ]] nL["Sets the alignment of the spell name"] = "Sets the alignment of the spell name"
--[[ enUS ]] nL["Outline"] = "Outline"
--[[ enUS ]] nL["Sets the font outline for spell name"] = "Sets the font outline for spell name"
--[[ enUS ]] nL["Position"] = "Position"
--[[ enUS ]] nL["Adjust spell name position"] = "Adjust spell name position"
--[[ enUS ]] nL["Left Offset"] = "Left Offset"
--[[ enUS ]] nL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ enUS ]] nL["Right Offset"] = "Right Offset"
--[[ enUS ]] nL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ enUS ]] nL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] nL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
--[[ enUS ]] nL["Color"] = "Color"
--[[ enUS ]] nL["Sets the spell name color"] = "Sets the spell name color"
 
--[[ enUS ]] nL["None"] = "None"
--[[ enUS ]] nL["Normal"] = "Normal"
--[[ enUS ]] nL["Thick"] = "Thick"
 
--[[ enUS ]] nL["LEFT"] = "LEFT"
--[[ enUS ]] nL["CENTER"] = "CENTER"
--[[ enUS ]] nL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftCastBarSpellNameText"] = "AloftCastBarSpellNameText"
--[[ enUS ]] mL["Display spell name on cast bar"] = "Display spell name on cast bar"
 
-----------------------------------------------------------------------------
 
local tL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] tL["Time Text"] = "Time Text"
--[[ enUS ]] tL["Cast bar time text options"] = "Cast bar time text options"
--[[ enUS ]] tL["Enable"] = "Enable"
--[[ enUS ]] tL["Show cast bar time text"] = "Show cast bar time text"
--[[ enUS ]] tL["Typeface"] = "Typeface"
--[[ enUS ]] tL["Cast bar time text typeface options"] = "Cast bar time text typeface options"
--[[ enUS ]] tL["Font"] = "Font"
--[[ enUS ]] tL["Sets the font for cast bar time text"] = "Sets the font for cast bar time text"
--[[ enUS ]] tL["Font Size"] = "Font Size"
--[[ enUS ]] tL["Sets the font height of the cast bar time text"] = "Sets the font height of the cast bar time text"
--[[ enUS ]] tL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] tL["Show font shadow on cast bar time text"] = "Show font shadow on cast bar time text"
--[[ enUS ]] tL["Alignment"] = "Alignment"
--[[ enUS ]] tL["Sets the alignment of the cast bar time text"] = "Sets the alignment of the cast bar time text"
--[[ enUS ]] tL["Outline"] = "Outline"
--[[ enUS ]] tL["Sets the font outline for cast bar time text"] = "Sets the font outline for cast bar time text"
--[[ enUS ]] tL["Position"] = "Position"
--[[ enUS ]] tL["Adjust cast bar time text position"] = "Adjust cast bar time text position"
--[[ enUS ]] tL["Left Offset"] = "Left Offset"
--[[ enUS ]] tL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ enUS ]] tL["Right Offset"] = "Right Offset"
--[[ enUS ]] tL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ enUS ]] tL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] tL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
--[[ enUS ]] tL["Color"] = "Color"
--[[ enUS ]] tL["Sets the cast bar time text color"] = "Sets the cast bar time text color"
 
--[[ enUS ]] tL["None"] = "None"
--[[ enUS ]] tL["Normal"] = "Normal"
--[[ enUS ]] tL["Thick"] = "Thick"
 
--[[ enUS ]] tL["LEFT"] = "LEFT"
--[[ enUS ]] tL["CENTER"] = "CENTER"
--[[ enUS ]] tL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftCastBarTimeText"] = "AloftCastBarTimeText"
--[[ enUS ]] mL["Display cast bar time text"] = "Display cast bar time text"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] bL["Cast Bar"] = "시전바"
--[[ koKR ]] bL["Cast bar options"] = "시전바 설정"
--[[ koKR ]] bL["Enable"] = "사용"
--[[ koKR ]] bL["Shows the current target's casting bar"] = "현재 대상의 시전바를 표시합니다."
--[[ koKR ]] bL["Position"] = "위치"
--[[ koKR ]] bL["Adjust cast bar position"] = "시전바 위치 조절"
--[[ koKR ]] bL["Left Offset"] = "좌측 좌표"
--[[ koKR ]] bL["Sets the offset of the left of the cast bar"] = "시전바의 좌측 좌표를 설정합니다."
--[[ koKR ]] bL["Right Offset"] = "우측 좌표"
--[[ koKR ]] bL["Sets the offset of the right of the cast bar"] = "시전바의 우측 좌표를 설정합니다."
--[[ koKR ]] bL["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] bL["Sets the vertical offset of the cast bar"] = "시전바의 수직 좌표를 설정합니다."
--[[ koKR ]] bL["Height"] = "높이"
--[[ koKR ]] bL["Sets the height of the cast bar"] = "시전바의 높이를 설정합니다."
 
--[[ koKR ]] bL["Interruptable Cast Bar"] = "Interruptable Cast Bar"
--[[ koKR ]] bL["Cast bar appearance for interruptable spells"] = "Cast bar appearance for interruptable spells"
--[[ koKR ]] bL["Uninterruptable Cast Bar"] = "Uninterruptable Cast Bar"
--[[ koKR ]] bL["Cast bar appearance for uninterruptable spells"] = "Cast bar appearance for uninterruptable spells"
 
--[[ koKR ]] bL["Cast Bar Color"] = "Cast Bar Color"
--[[ koKR ]] bL["Sets the color of the cast bar"] = "Sets the color of the cast bar"
--[[ koKR ]] bL["Backdrop Color"] = "배경 색상"
--[[ koKR ]] bL["Sets the backdrop color of the cast bar"] = "시전바의 배경 색상을 설정합니다."
--[[ 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 cast bar"] = "Sets the border color of the cast bar"
--[[ koKR ]] bL["Border Style"] = "테두리 스타일"
--[[ koKR ]] bL["Sets the style of the cast bar border"] = "Sets the style of the cast bar border"
--[[ koKR ]] bL["Texture"] = "텍스쳐"
--[[ koKR ]] bL["Sets the cast bar texture"] = "시전바의 텍스쳐를 설정합니다."
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] iL["Spell Icon"] = "주문 아이콘"
--[[ koKR ]] iL["Spell icon placement options"] = "주문 아이콘 배치 설정"
--[[ koKR ]] iL["Enable"] = "사용"
--[[ koKR ]] iL["Enable spell icon display on the nameplate"] = "이름표에 주문 아이콘을 표시합니다."
--[[ koKR ]] iL["Position"] = "위치"
--[[ koKR ]] iL["Adjust spell icon position"] = "주문 아이콘 위치 조절"
--[[ koKR ]] iL["Anchor"] = "앵커"
--[[ koKR ]] iL["Sets the anchor for the spell icon"] = "주문 아이콘의 앵커를 설정합니다."
--[[ koKR ]] iL["Anchor To"] = "앵커 위치"
--[[ koKR ]] iL["Sets the relative point on the cast bar to anchor the spell icon"] = "시전 바에서 주문 아이콘의 앵커 위치를 설정합니다."
--[[ koKR ]] iL["Size"] = "크기"
--[[ koKR ]] iL["Size in pixels of the spell icon"] = "주문 아이콘의 크기입니다."
--[[ koKR ]] iL["X Offset"] = "X 좌표"
--[[ koKR ]] iL["X offset of the spell icon"] = "주문 아이콘의 X 좌표 입니다."
--[[ koKR ]] iL["Y Offset"] = "Y 좌표"
--[[ koKR ]] iL["Y offset of the spell icon"] = "주문 아이콘의 Y 좌표 입니다."
 
--[[ koKR ]] iL["Shield"] = "Shield"
--[[ koKR ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ koKR ]] iL["Enable"] = "Enable"
--[[ koKR ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ koKR ]] iL["Style"] = "Style"
--[[ koKR ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ koKR ]] iL["Scale"] = "Scale"
--[[ koKR ]] iL["Scale of the shield graphic"] = "Scale of the shield graphic"
--[[ koKR ]] iL["Color"] = "Color"
--[[ koKR ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
--[[ koKR ]] iL["X Offset"] = "X 좌표"
--[[ koKR ]] iL["Y Offset"] = "Y 좌표"
 
--[[ koKR ]] iL["SQUARE"] = "SQUARE"
--[[ koKR ]] iL["ROUND"] = "ROUND"
 
--[[ koKR ]] iL["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] iL["TOP"] = "상단"
--[[ koKR ]] iL["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] iL["LEFT"] = "좌측"
--[[ koKR ]] iL["CENTER"] = "가운데"
--[[ koKR ]] iL["RIGHT"] = "우측"
--[[ koKR ]] iL["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] iL["BOTTOM"] = "하단"
--[[ koKR ]] iL["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] nL["Spell Name"] = "주문명"
--[[ koKR ]] nL["Cast bar spell name text options"] = "시전바 주문명 글자 설정"
--[[ koKR ]] nL["Enable"] = "사용"
--[[ koKR ]] nL["Show spell name on cast bar"] = "시전바에 주문명을 표시합니다."
--[[ koKR ]] nL["Typeface"] = "서체"
--[[ koKR ]] nL["Spell name typeface options"] = "주문명 서체 설정"
--[[ koKR ]] nL["Font"] = "글꼴"
--[[ koKR ]] nL["Sets the font for spell name"] = "주문명의 글꼴을 설정합니다."
--[[ koKR ]] nL["Font Size"] = "글꼴 크기"
--[[ koKR ]] nL["Sets the font height of the spell name"] = "주문명 글자의 높이를 설정합니다."
--[[ koKR ]] nL["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] nL["Show font shadow on spell name"] = "주문명에 그림자를 표시합니다."
--[[ koKR ]] nL["Alignment"] = "정렬"
--[[ koKR ]] nL["Sets the alignment of the spell name"] = "주문명의 정렬을 설정합니다."
--[[ koKR ]] nL["Outline"] = "테두리"
--[[ koKR ]] nL["Sets the font outline for spell name"] = "주문명의 테두리를 설정합니다."
--[[ koKR ]] nL["Position"] = "위치"
--[[ koKR ]] nL["Adjust spell name position"] = "주문명 위치 조절"
--[[ koKR ]] nL["Left Offset"] = "좌측 좌표"
--[[ koKR ]] nL["Sets the offset of the left of the text"] = "글자의 좌측 좌표를 설정합니다."
--[[ koKR ]] nL["Right Offset"] = "우측 좌표"
--[[ koKR ]] nL["Sets the offset of the right of the text"] = "글자의 우측 좌표를 설정합니다."
--[[ koKR ]] nL["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] nL["Sets the vertical offset of the text"] = "글자의 수직 좌표를 설정합니다."
--[[ koKR ]] nL["Color"] = "색상"
--[[ koKR ]] nL["Sets the spell name color"] = "주문명의 색상을 설정합니다."
 
--[[ koKR ]] nL["None"] = "없음"
--[[ koKR ]] nL["Normal"] = "기본"
--[[ koKR ]] nL["Thick"] = "굵게"
 
--[[ koKR ]] nL["LEFT"] = "좌측"
--[[ koKR ]] nL["CENTER"] = "가운데"
--[[ koKR ]] nL["RIGHT"] = "우측"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftCastBarSpellNameText"] = "AloftCastBarSpellNameText"
--[[ koKR ]] mL["Display spell name on cast bar"] = "Display spell name on cast bar"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] tL["Time Text"] = "시전 시간"
--[[ koKR ]] tL["Cast bar time text options"] = "시전 시간 설정"
--[[ koKR ]] tL["Enable"] = "사용"
--[[ koKR ]] tL["Show cast bar time text"] = "시전바에 시간을 표시합니다."
--[[ koKR ]] tL["Typeface"] = "서체"
--[[ koKR ]] tL["Cast bar time text typeface options"] = "시전 시간 서체 설정"
--[[ koKR ]] tL["Font"] = "글꼴"
--[[ koKR ]] tL["Sets the font for cast bar time text"] = "시전 시간의 글꼴을 설정합니다."
--[[ koKR ]] tL["Font Size"] = "글꼴 크기"
--[[ koKR ]] tL["Sets the font height of the cast bar time text"] = "시전 시간의 높이를 설정합니다."
--[[ koKR ]] tL["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] tL["Show font shadow on cast bar time text"] = "시전 시간에 그림자를 표시합니다."
--[[ koKR ]] tL["Alignment"] = "정렬"
--[[ koKR ]] tL["Sets the alignment of the cast bar time text"] = "시전 시간의 정렬을 설정합니다."
--[[ koKR ]] tL["Outline"] = "테두리"
--[[ koKR ]] tL["Sets the font outline for cast bar time text"] = "시전 시간의 테두리를 설정합니다."
--[[ koKR ]] tL["Position"] = "위치"
--[[ koKR ]] tL["Adjust cast bar time text position"] = "시전 시간 위치 조절"
--[[ koKR ]] tL["Left Offset"] = "좌측 좌표"
--[[ koKR ]] tL["Sets the offset of the left of the text"] = "시전 시간의 좌측 좌표를 설정합니다."
--[[ koKR ]] tL["Right Offset"] = "우측 좌표"
--[[ koKR ]] tL["Sets the offset of the right of the text"] = "시전 시간의 우측 좌표를 설정합니다."
--[[ koKR ]] tL["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] tL["Sets the vertical offset of the text"] = "시전 시간의 수직 좌표를 설정합니다."
--[[ koKR ]] tL["Color"] = "색상"
--[[ koKR ]] tL["Sets the cast bar time text color"] = "시전 시간의 색상을 설정합니다."
 
--[[ koKR ]] tL["None"] = "없음"
--[[ koKR ]] tL["Normal"] = "기본"
--[[ koKR ]] tL["Thick"] = "굵게"
 
--[[ koKR ]] tL["LEFT"] = "좌측"
--[[ koKR ]] tL["CENTER"] = "가운데"
--[[ koKR ]] tL["RIGHT"] = "우측"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftCastBarTimeText"] = "AloftCastBarTimeText"
--[[ koKR ]] mL["Display cast bar time text"] = "Display cast bar time text"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] bL["Cast Bar"] = "Полоска каста"
--[[ ruRU ]] bL["Cast bar options"] = "Настройки полоски заклинания"
 
--[[ ruRU ]] bL["Enable"] = "Включить"
--[[ ruRU ]] bL["Shows the current target's casting bar"] = "Отображает каст заклинания текущей цели"
--[[ ruRU ]] bL["Position"] = "Позиция"
--[[ ruRU ]] bL["Adjust cast bar position"] = "Задать место полоски заклинания"
--[[ ruRU ]] bL["Left Offset"] = "Смещение влева"
--[[ ruRU ]] bL["Sets the offset of the left of the cast bar"] = "Задает смещение левого конца полоски заклинания"
--[[ ruRU ]] bL["Right Offset"] = "Смещение вправа"
--[[ ruRU ]] bL["Sets the offset of the right of the cast bar"] = "Задает смещение правого конца полоски заклинания"
--[[ ruRU ]] bL["Vertical Offset"] = "Смещение по вертикале"
--[[ ruRU ]] bL["Sets the vertical offset of the cast bar"] = "Задает вертикальное смещение полоски заклинания"
--[[ ruRU ]] bL["Height"] = "Высота"
--[[ ruRU ]] bL["Sets the height of the cast bar"] = "Задает высоту полоски заклинания"
 
--[[ ruRU ]] bL["Interruptable Cast Bar"] = "Прерываемые заклинания"
--[[ ruRU ]] bL["Cast bar appearance for interruptable spells"] = "Отображение полосы применений для прерываемых заклинаний"
--[[ ruRU ]] bL["Uninterruptable Cast Bar"] = "Непрерываемая заклинания"
--[[ ruRU ]] bL["Cast bar appearance for uninterruptable spells"] = "Отображение полосы применений для непрерываемых заклинаний"
 
--[[ ruRU ]] bL["Cast Bar Color"] = "Цвет полоски заклинания"
--[[ ruRU ]] bL["Sets the color of the cast bar"] = "Задает цвет полоски заклинания"
--[[ ruRU ]] bL["Backdrop Color"] = "Цвет тени"
--[[ ruRU ]] bL["Sets the backdrop color of the cast bar"] = "Задает цвет тени полоски заклинания"
--[[ 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 cast bar"] = "Установка цвета краев полосы применения"
--[[ ruRU ]] bL["Border Style"] = "Стиль рамки"
--[[ ruRU ]] bL["Sets the style of the cast bar border"] = "Установка стиля краев полосы применения"
--[[ ruRU ]] bL["Texture"] = "Текстура"
--[[ ruRU ]] bL["Sets the cast bar texture"] = "Задает текстуру полоски заклинания"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] iL["Spell Icon"] = "Значок заклинания"
--[[ ruRU ]] iL["Spell icon placement options"] = "Настройки положения значка заклинания"
--[[ ruRU ]] iL["Enable"] = "Включить"
--[[ ruRU ]] iL["Enable spell icon display on the nameplate"] = "Включить отображение значка заклинания на табличке"
--[[ ruRU ]] iL["Position"] = "Позиция"
--[[ ruRU ]] iL["Adjust spell icon position"] = "Задать место иконки заклинания"
--[[ ruRU ]] iL["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] iL["Sets the anchor for the spell icon"] = "Задает прикрепление значка заклинания"
--[[ ruRU ]] iL["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] iL["Sets the relative point on the cast bar to anchor the spell icon"] = "Задает точку для положения значка заклинания относительно полоски здоровья"
--[[ ruRU ]] iL["Size"] = "Размер"
--[[ ruRU ]] iL["Size in pixels of the spell icon"] = "Размер значка заклинания в пикселях"
--[[ ruRU ]] iL["X Offset"] = "Смещение по X"
--[[ ruRU ]] iL["X offset of the spell icon"] = "Смещение значка заклинания по X"
--[[ ruRU ]] iL["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] iL["Y offset of the spell icon"] = "Смещение значка заклинания по Y"
 
--[[ ruRU ]] iL["Shield"] = "Щит"
--[[ ruRU ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Показывать графику щита около иконки непрерываемой способности"
--[[ ruRU ]] iL["Enable"] = "Включить"
--[[ ruRU ]] iL["Enables the shield graphic"] = "Включить рисунок щита"
--[[ ruRU ]] iL["Style"] = "Стиль"
--[[ ruRU ]] iL["Sets the shield graphic style"] = "Установка стиля рисунка щита"
--[[ ruRU ]] iL["Scale"] = "Scale"
--[[ ruRU ]] iL["Scale of the shield graphic"] = "Scale of the shield graphic"
--[[ ruRU ]] iL["Color"] = "Цвет"
--[[ ruRU ]] iL["Sets the shield graphic color"] = "Установка цвета рисунка щита"
--[[ ruRU ]] iL["X Offset"] = "Смещение по X"
--[[ ruRU ]] iL["Y Offset"] = "Смещение по Y"
 
--[[ ruRU ]] iL["SQUARE"] = "КВАДРАТ"
--[[ ruRU ]] iL["ROUND"] = "КРУГЛЫЙ"
 
--[[ ruRU ]] iL["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] iL["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] iL["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] iL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] iL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] iL["RIGHT"] = "СПРАВА"
--[[ ruRU ]] iL["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] iL["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] iL["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] nL["Spell Name"] = "Имя заклинания"
--[[ ruRU ]] nL["Cast bar spell name text options"] = "Настройки названия для полоске заклинания"
--[[ ruRU ]] nL["Enable"] = "Включить"
--[[ ruRU ]] nL["Show spell name on cast bar"] = "Отображать название на полоске заклинания"
--[[ ruRU ]] nL["Typeface"] = "Шрифт"
--[[ ruRU ]] nL["Spell name typeface options"] = "Настройки шрифта для заклинания"
--[[ ruRU ]] nL["Font"] = "Шрифт"
--[[ ruRU ]] nL["Sets the font for spell name"] = "Задает шрифт для названия заклинания"
--[[ ruRU ]] nL["Font Size"] = "Размер шрифта"
--[[ ruRU ]] nL["Sets the font height of the spell name"] = "Задает высоту шрифта для названия заклинания"
--[[ ruRU ]] nL["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] nL["Show font shadow on spell name"] = "Отображать тень для названия заклинания"
--[[ ruRU ]] nL["Alignment"] = "Выравнивание"
--[[ ruRU ]] nL["Sets the alignment of the spell name"] = "Задает выравнивание названия заклинания"
--[[ ruRU ]] nL["Outline"] = "Контур"
--[[ ruRU ]] nL["Sets the font outline for spell name"] = "Задает окантовку для названия заклинания"
--[[ ruRU ]] nL["Position"] = "Позиция"
--[[ ruRU ]] nL["Adjust spell name position"] = "Задать место названия заклинания"
--[[ ruRU ]] nL["Left Offset"] = "Смещение влево"
--[[ ruRU ]] nL["Sets the offset of the left of the text"] = "Смещение текста влево"
--[[ ruRU ]] nL["Right Offset"] = "Смещение вправо"
--[[ ruRU ]] nL["Sets the offset of the right of the text"] = "Смещение текста вправо"
--[[ ruRU ]] nL["Vertical Offset"] = "Смещение по вертикале"
--[[ ruRU ]] nL["Sets the vertical offset of the text"] = "Смещение текста по вертикале"
--[[ ruRU ]] nL["Color"] = "Цвет"
--[[ ruRU ]] nL["Sets the spell name color"] = "Задает цвет названия заклинания"
 
--[[ ruRU ]] nL["None"] = "Нет"
--[[ ruRU ]] nL["Normal"] = "Обычно"
--[[ ruRU ]] nL["Thick"] = "Жирный"
 
--[[ ruRU ]] nL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] nL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] nL["RIGHT"] = "СПРАВА"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftCastBarSpellNameText"] = "AloftCastBarSpellNameText"
--[[ ruRU ]] mL["Display spell name on cast bar"] = "Отображение названия заклинаний на полоске заклинаний"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] tL["Time Text"] = "Текст времени"
--[[ ruRU ]] tL["Cast bar time text options"] = "Настройки отображения времени заклинания"
--[[ ruRU ]] tL["Enable"] = "Включить"
--[[ ruRU ]] tL["Show cast bar time text"] = "Отображать текст времени заклинания"
--[[ ruRU ]] tL["Typeface"] = "Шрифт"
--[[ ruRU ]] tL["Cast bar time text typeface options"] = "Настройки шрифта для времени на полоске заклинания"
--[[ ruRU ]] tL["Font"] = "Шрифт"
--[[ ruRU ]] tL["Sets the font for cast bar time text"] = "Задает шрифт для текста времени заклинания"
--[[ ruRU ]] tL["Font Size"] = "Размер шрифта"
--[[ ruRU ]] tL["Sets the font height of the cast bar time text"] = "Задает высоту шрифта для текста времени заклинания"
--[[ ruRU ]] tL["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] tL["Show font shadow on cast bar time text"] = "Отображать тень для текста времени заклинания"
--[[ ruRU ]] tL["Alignment"] = "Выравнивание"
--[[ ruRU ]] tL["Sets the alignment of the cast bar time text"] = "Задает выравнивание текста времени на полоске заклинания"
--[[ ruRU ]] tL["Outline"] = "Контур"
--[[ ruRU ]] tL["Sets the font outline for cast bar time text"] = "Задает окантовку для текста времени заклинания"
--[[ ruRU ]] tL["Position"] = "Позиция"
--[[ ruRU ]] tL["Adjust cast bar time text position"] = "Задать место времени заклинания"
--[[ ruRU ]] tL["Left Offset"] = "Смещение в лева"
--[[ ruRU ]] tL["Sets the offset of the left of the text"] = "Задает смещение левого конца текста"
--[[ ruRU ]] tL["Right Offset"] = "Смещение в права"
--[[ ruRU ]] tL["Sets the offset of the right of the text"] = "Задает смещение правого конца текста"
--[[ ruRU ]] tL["Vertical Offset"] = "Смещение по вертикале"
--[[ ruRU ]] tL["Sets the vertical offset of the text"] = "Задает вертикальное смещение текста"
--[[ ruRU ]] tL["Color"] = "Цвет"
--[[ ruRU ]] tL["Sets the cast bar time text color"] = "Задает цвет текста полоски заклинания"
 
--[[ ruRU ]] tL["None"] = "Нет"
--[[ ruRU ]] tL["Normal"] = "Обычно"
--[[ ruRU ]] tL["Thick"] = "Жирный"
 
--[[ ruRU ]] tL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] tL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] tL["RIGHT"] = "СПРАВА"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftCastBarTimeText"] = "AloftCastBarTimeText"
--[[ ruRU ]] mL["Display cast bar time text"] = "Отображает время на полоске заклинаний"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] bL["Cast Bar"] = "施法条"
--[[ zhCN ]] bL["Cast bar options"] = "施法条相关设置"
--[[ zhCN ]] bL["Enable"] = "启用"
--[[ zhCN ]] bL["Shows the current target's casting bar"] = "显示当前目标的施法条"
--[[ zhCN ]] bL["Position"] = "位置"
--[[ zhCN ]] bL["Adjust cast bar position"] = "调整施法条的位置"
--[[ zhCN ]] bL["Left Offset"] = "向左偏移"
--[[ zhCN ]] bL["Sets the offset of the left of the cast bar"] = "设定施法條的向左偏移量"
--[[ zhCN ]] bL["Right Offset"] = "向右偏移"
--[[ zhCN ]] bL["Sets the offset of the right of the cast bar"] = "设定施法条的向右偏移量"
--[[ zhCN ]] bL["Vertical Offset"] = "垂直偏移"
--[[ zhCN ]] bL["Sets the vertical offset of the cast bar"] = "设定施法条的垂直偏移量"
--[[ zhCN ]] bL["Height"] = "高度"
--[[ zhCN ]] bL["Sets the height of the cast bar"] = "设置施法条的高度"
 
--[[ zhCN ]] bL["Interruptable Cast Bar"] = "Interruptable Cast Bar"
--[[ zhCN ]] bL["Cast bar appearance for interruptable spells"] = "Cast bar appearance for interruptable spells"
--[[ zhCN ]] bL["Uninterruptable Cast Bar"] = "Uninterruptable Cast Bar"
--[[ zhCN ]] bL["Cast bar appearance for uninterruptable spells"] = "Cast bar appearance for uninterruptable spells"
 
--[[ zhCN ]] bL["Cast Bar Color"] = "施法条颜色"
--[[ zhCN ]] bL["Sets the color of the cast bar"] = "设置施法条颜色"
--[[ zhCN ]] bL["Backdrop Color"] = "背景颜色"
--[[ zhCN ]] bL["Sets the backdrop color of the cast bar"] = "设定施法条的背景颜色"
--[[ 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 cast bar"] = "设置施法条边框颜色"
--[[ zhCN ]] bL["Border Style"] = "边框样式"
--[[ zhCN ]] bL["Sets the style of the cast bar border"] = "设置施法条边框样式"
--[[ zhCN ]] bL["Texture"] = "材质"
--[[ zhCN ]] bL["Sets the cast bar texture"] = "设定施法条的材质"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] iL["Spell Icon"] = "法术图标"
--[[ zhCN ]] iL["Spell icon placement options"] = "法术图标相关设置"
--[[ zhCN ]] iL["Enable"] = "启用"
--[[ zhCN ]] iL["Enable spell icon display on the nameplate"] = "在姓名板上显示法术图标"
--[[ zhCN ]] iL["Position"] = "位置"
--[[ zhCN ]] iL["Adjust spell icon position"] = "法术图标位置"
--[[ zhCN ]] iL["Anchor"] = "锚点"
--[[ zhCN ]] iL["Sets the anchor for the spell icon"] = "设定法术图标的锚点"
--[[ zhCN ]] iL["Anchor To"] = "固定在"
--[[ zhCN ]] iL["Sets the relative point on the cast bar to anchor the spell icon"] = "设定法术图标固定在生命值显示条的相对位置"
--[[ zhCN ]] iL["Size"] = "尺寸"
--[[ zhCN ]] iL["Size in pixels of the spell icon"] = "以像素定义的法术图标尺寸"
--[[ zhCN ]] iL["X Offset"] = "X轴偏移"
--[[ zhCN ]] iL["X offset of the spell icon"] = "法术图标的X轴偏移量"
--[[ zhCN ]] iL["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] iL["Y offset of the spell icon"] = "法术图标的Y轴偏移量"
 
--[[ zhCN ]] iL["Shield"] = "Shield"
--[[ zhCN ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ zhCN ]] iL["Enable"] = "Enable"
--[[ zhCN ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ zhCN ]] iL["Style"] = "Style"
--[[ zhCN ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ zhCN ]] iL["Scale"] = "Scale"
--[[ zhCN ]] iL["Scale of the shield graphic"] = "Scale of the shield graphic"
--[[ zhCN ]] iL["Color"] = "Color"
--[[ zhCN ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
--[[ zhCN ]] iL["X Offset"] = "X轴偏移"
--[[ zhCN ]] iL["Y Offset"] = "Y轴偏移"
 
--[[ zhCN ]] iL["SQUARE"] = "SQUARE"
--[[ zhCN ]] iL["ROUND"] = "ROUND"
 
--[[ zhCN ]] iL["TOPLEFT"] = "左上"
--[[ zhCN ]] iL["TOP"] = "上"
--[[ zhCN ]] iL["TOPRIGHT"] = "右上"
--[[ zhCN ]] iL["LEFT"] = "å·¦"
--[[ zhCN ]] iL["CENTER"] = "中"
--[[ zhCN ]] iL["RIGHT"] = "右"
--[[ zhCN ]] iL["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] iL["BOTTOM"] = "下"
--[[ zhCN ]] iL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] nL["Spell Name"] = "法术名称"
--[[ zhCN ]] nL["Cast bar spell name text options"] = "施法条法术名称文字相关设置"
--[[ zhCN ]] nL["Enable"] = "启用"
--[[ zhCN ]] nL["Show spell name on cast bar"] = "在施法条上显示法术名称"
--[[ zhCN ]] nL["Typeface"] = "字体"
--[[ zhCN ]] nL["Spell name typeface options"] = "法术名称文字式样设置"
--[[ zhCN ]] nL["Font"] = "字体"
--[[ zhCN ]] nL["Sets the font for spell name"] = "设定法术名称文字的字体"
--[[ zhCN ]] nL["Font Size"] = "字号"
--[[ zhCN ]] nL["Sets the font height of the spell name"] = "设定法术名称文字的字号"
--[[ zhCN ]] nL["Font Shadow"] = "字体阴影"
--[[ zhCN ]] nL["Show font shadow on spell name"] = "设定法术名称文字的字体阴影"
--[[ zhCN ]] nL["Alignment"] = "对齐"
--[[ zhCN ]] nL["Sets the alignment of the spell name"] = "设定法术名称文字的字体的对齐方式"
--[[ zhCN ]] nL["Outline"] = "轮廓"
--[[ zhCN ]] nL["Sets the font outline for spell name"] = "设定法术名称文字的字体轮廓"
--[[ zhCN ]] nL["Position"] = "位置"
--[[ zhCN ]] nL["Adjust spell name position"] = "调整法术名称文字的位置"
--[[ zhCN ]] nL["Left Offset"] = "向左偏移"
--[[ zhCN ]] nL["Sets the offset of the left of the text"] = "设定法术名称文字的向左偏移量"
--[[ zhCN ]] nL["Right Offset"] = "向右偏移"
--[[ zhCN ]] nL["Sets the offset of the right of the text"] = "设定法术名称文字的向右偏移量"
--[[ zhCN ]] nL["Vertical Offset"] = "垂直位移"
--[[ zhCN ]] nL["Sets the vertical offset of the text"] = "设定法术名称文字的垂直偏移量"
--[[ zhCN ]] nL["Color"] = "颜色"
--[[ zhCN ]] nL["Sets the spell name color"] = "设定法术名称文字的颜色"
 
--[[ zhCN ]] nL["None"] = "无"
--[[ zhCN ]] nL["Normal"] = "正常"
--[[ zhCN ]] nL["Thick"] = "粗"
 
--[[ zhCN ]] nL["LEFT"] = "å·¦"
--[[ zhCN ]] nL["CENTER"] = "中"
--[[ zhCN ]] nL["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftCastBarSpellNameText"] = "施法条法术名"
--[[ zhCN ]] mL["Display spell name on cast bar"] = "在施法条上显示法术名"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] tL["Time Text"] = "计时文字"
--[[ zhCN ]] tL["Cast bar time text options"] = "施法条计时文字相关设置"
--[[ zhCN ]] tL["Enable"] = "启用"
--[[ zhCN ]] tL["Show cast bar time text"] = "显示施法条计时文字"
--[[ zhCN ]] tL["Typeface"] = "式样"
--[[ zhCN ]] tL["Cast bar time text typeface options"] = "施法条计时文字式样设置"
--[[ zhCN ]] tL["Font"] = "字体"
--[[ zhCN ]] tL["Sets the font for cast bar time text"] = "设定施法条计时文字的字体"
--[[ zhCN ]] tL["Font Size"] = "字号"
--[[ zhCN ]] tL["Sets the font height of the cast bar time text"] = "设定施法条计时文字的字号"
--[[ zhCN ]] tL["Font Shadow"] = "字体阴影"
--[[ zhCN ]] tL["Show font shadow on cast bar time text"] = "设定施法条计时文字的字体阴影"
--[[ zhCN ]] tL["Alignment"] = "对齐"
--[[ zhCN ]] tL["Sets the alignment of the cast bar time text"] = "设定施法条计时文字的对齐方式"
--[[ zhCN ]] tL["Outline"] = "轮廓"
--[[ zhCN ]] tL["Sets the font outline for cast bar time text"] = "设定施法条计时文字的字体轮廓"
--[[ zhCN ]] tL["Position"] = "位置"
--[[ zhCN ]] tL["Adjust cast bar time text position"] = "调整施法条计时文字的位置"
--[[ zhCN ]] tL["Left Offset"] = "向左偏移"
--[[ zhCN ]] tL["Sets the offset of the left of the text"] = "设定文字的向左偏移量"
--[[ zhCN ]] tL["Right Offset"] = "向右偏移"
--[[ zhCN ]] tL["Sets the offset of the right of the text"] = "设定文字的向右偏移量"
--[[ zhCN ]] tL["Vertical Offset"] = "垂直偏移"
--[[ zhCN ]] tL["Sets the vertical offset of the text"] = "设定文字的垂直偏移量"
--[[ zhCN ]] tL["Color"] = "颜色"
--[[ zhCN ]] tL["Sets the cast bar time text color"] = "设定施法条计时文字的颜色"
 
--[[ zhCN ]] tL["None"] = "无"
--[[ zhCN ]] tL["Normal"] = "正常"
--[[ zhCN ]] tL["Thick"] = "粗"
 
--[[ zhCN ]] tL["LEFT"] = "å·¦"
--[[ zhCN ]] tL["CENTER"] = "中"
--[[ zhCN ]] tL["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftCastBarTimeText"] = "施法时间"
--[[ zhCN ]] mL["Display cast bar time text"] = "在施法条上显示时间"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] bL["Cast Bar"] = "施法條"
--[[ zhTW ]] bL["Cast bar options"] = "施法條選項"
--[[ zhTW ]] bL["Enable"] = "啟用"
--[[ zhTW ]] bL["Shows the current target's casting bar"] = "顯示目前目標的施法條"
--[[ zhTW ]] bL["Position"] = "位置"
--[[ zhTW ]] bL["Adjust cast bar position"] = "調整施法條位置"
--[[ zhTW ]] bL["Left Offset"] = "左位移"
--[[ zhTW ]] bL["Sets the offset of the left of the cast bar"] = "施法條左位移"
--[[ zhTW ]] bL["Right Offset"] = "右位移"
--[[ zhTW ]] bL["Sets the offset of the right of the cast bar"] = "施法條右位移"
--[[ zhTW ]] bL["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] bL["Sets the vertical offset of the cast bar"] = "施法條垂直位移"
--[[ zhTW ]] bL["Height"] = "高度"
--[[ zhTW ]] bL["Sets the height of the cast bar"] = "施法條高度"
 
--[[ zhTW ]] bL["Interruptable Cast Bar"] = "Interruptable Cast Bar"
--[[ zhTW ]] bL["Cast bar appearance for interruptable spells"] = "Cast bar appearance for interruptable spells"
--[[ zhTW ]] bL["Uninterruptable Cast Bar"] = "Uninterruptable Cast Bar"
--[[ zhTW ]] bL["Cast bar appearance for uninterruptable spells"] = "Cast bar appearance for uninterruptable spells"
 
--[[ zhTW ]] bL["Cast Bar Color"] = "施法條顏色"
--[[ zhTW ]] bL["Sets the color of the cast bar"] = "設置施法條顏色"
--[[ zhTW ]] bL["Backdrop Color"] = "背景顏色"
--[[ zhTW ]] bL["Sets the backdrop color of the cast bar"] = "施法條背景顏色"
--[[ 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 cast bar"] = "設置施法條邊框顏色"
--[[ zhTW ]] bL["Border Style"] = "邊框樣式"
--[[ zhTW ]] bL["Sets the style of the cast bar border"] = "設置施法條邊框樣式"
--[[ zhTW ]] bL["Texture"] = "紋理"
--[[ zhTW ]] bL["Sets the cast bar texture"] = "施法條紋理"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] iL["Spell Icon"] = "法術圖示"
--[[ zhTW ]] iL["Spell icon placement options"] = "法術圖示佈局選項"
--[[ zhTW ]] iL["Enable"] = "啟用"
--[[ zhTW ]] iL["Enable spell icon display on the nameplate"] = "在名牌顯示法術圖示"
--[[ zhTW ]] iL["Position"] = "位置"
--[[ zhTW ]] iL["Adjust spell icon position"] = "法術圖示位置"
--[[ zhTW ]] iL["Anchor"] = "定位點"
--[[ zhTW ]] iL["Sets the anchor for the spell icon"] = "法術圖示定位點"
--[[ zhTW ]] iL["Anchor To"] = "固定在"
--[[ zhTW ]] iL["Sets the relative point on the cast bar to anchor the spell icon"] = "法術圖示固定在生命力條的位置"
--[[ zhTW ]] iL["Size"] = "大小"
--[[ zhTW ]] iL["Size in pixels of the spell icon"] = "法術圖示大小"
--[[ zhTW ]] iL["X Offset"] = "X位移"
--[[ zhTW ]] iL["X offset of the spell icon"] = "法術圖示X位移"
--[[ zhTW ]] iL["Y Offset"] = "Y位移"
--[[ zhTW ]] iL["Y offset of the spell icon"] = "法術圖示Y位移"
 
--[[ zhTW ]] iL["Shield"] = "Shield"
--[[ zhTW ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ zhTW ]] iL["Enable"] = "Enable"
--[[ zhTW ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ zhTW ]] iL["Style"] = "Style"
--[[ zhTW ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ zhTW ]] iL["Scale"] = "Scale"
--[[ zhTW ]] iL["Scale of the shield graphic"] = "Scale of the shield graphic"
--[[ zhTW ]] iL["Color"] = "Color"
--[[ zhTW ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
--[[ zhTW ]] iL["X Offset"] = "X位移"
--[[ zhTW ]] iL["Y Offset"] = "Y位移"
 
--[[ zhTW ]] iL["SQUARE"] = "SQUARE"
--[[ zhTW ]] iL["ROUND"] = "ROUND"
 
--[[ zhTW ]] iL["TOPLEFT"] = "左上"
--[[ zhTW ]] iL["TOP"] = "上"
--[[ zhTW ]] iL["TOPRIGHT"] = "右上"
--[[ zhTW ]] iL["LEFT"] = "å·¦"
--[[ zhTW ]] iL["CENTER"] = "中"
--[[ zhTW ]] iL["RIGHT"] = "右"
--[[ zhTW ]] iL["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] iL["BOTTOM"] = "下"
--[[ zhTW ]] iL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] nL["Spell Name"] = "法術名字"
--[[ zhTW ]] nL["Cast bar spell name text options"] = "施法條法術名字文字選項"
--[[ zhTW ]] nL["Enable"] = "啟用"
--[[ zhTW ]] nL["Show spell name on cast bar"] = "在施法條顯示法術名字"
--[[ zhTW ]] nL["Typeface"] = "字體"
--[[ zhTW ]] nL["Spell name typeface options"] = "法術名字字體選項"
--[[ zhTW ]] nL["Font"] = "字型"
--[[ zhTW ]] nL["Sets the font for spell name"] = "法術名字字型"
--[[ zhTW ]] nL["Font Size"] = "字型大小"
--[[ zhTW ]] nL["Sets the font height of the spell name"] = "法術名字字型大小"
--[[ zhTW ]] nL["Font Shadow"] = "字型陰影"
--[[ zhTW ]] nL["Show font shadow on spell name"] = "法術名字字型陰影"
--[[ zhTW ]] nL["Alignment"] = "對齊"
--[[ zhTW ]] nL["Sets the alignment of the spell name"] = "法術名字對齊"
--[[ zhTW ]] nL["Outline"] = "輪廓"
--[[ zhTW ]] nL["Sets the font outline for spell name"] = "法術名字字型輪廓"
--[[ zhTW ]] nL["Position"] = "位置"
--[[ zhTW ]] nL["Adjust spell name position"] = "法術名字位置"
--[[ zhTW ]] nL["Left Offset"] = "左位移"
--[[ zhTW ]] nL["Sets the offset of the left of the text"] = "文字左位移"
--[[ zhTW ]] nL["Right Offset"] = "右位移"
--[[ zhTW ]] nL["Sets the offset of the right of the text"] = "文字右位移"
--[[ zhTW ]] nL["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] nL["Sets the vertical offset of the text"] = "文字垂直位移"
--[[ zhTW ]] nL["Color"] = "顏色"
--[[ zhTW ]] nL["Sets the spell name color"] = "法術名字顏色"
 
--[[ zhTW ]] nL["None"] = "無"
--[[ zhTW ]] nL["Normal"] = "正常"
--[[ zhTW ]] nL["Thick"] = "粗"
 
--[[ zhTW ]] nL["LEFT"] = "å·¦"
--[[ zhTW ]] nL["CENTER"] = "中"
--[[ zhTW ]] nL["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftCastBarSpellNameText"] = "施法條法術名"
--[[ zhTW ]] mL["Display spell name on cast bar"] = "在施法條上顯示法術名"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] tL["Time Text"] = "時間文字"
--[[ zhTW ]] tL["Cast bar time text options"] = "施法條時間文字選項"
--[[ zhTW ]] tL["Enable"] = "啟用"
--[[ zhTW ]] tL["Show cast bar time text"] = "顯示施法條時間文字"
--[[ zhTW ]] tL["Typeface"] = "字體"
--[[ zhTW ]] tL["Cast bar time text typeface options"] = "施法條時間文字字體選項"
--[[ zhTW ]] tL["Font"] = "字型"
--[[ zhTW ]] tL["Sets the font for cast bar time text"] = "施法條時間文字字型"
--[[ zhTW ]] tL["Font Size"] = "字型大小"
--[[ zhTW ]] tL["Sets the font height of the cast bar time text"] = "施法條時間文字字型大小"
--[[ zhTW ]] tL["Font Shadow"] = "字型陰影"
--[[ zhTW ]] tL["Show font shadow on cast bar time text"] = "施法條時間文字字型陰影"
--[[ zhTW ]] tL["Alignment"] = "對齊"
--[[ zhTW ]] tL["Sets the alignment of the cast bar time text"] = "施法條時間文字對齊"
--[[ zhTW ]] tL["Outline"] = "輪廓"
--[[ zhTW ]] tL["Sets the font outline for cast bar time text"] = "施法條時間文字字型輪廓"
--[[ zhTW ]] tL["Position"] = "位置"
--[[ zhTW ]] tL["Adjust cast bar time text position"] = "施法條時間文字位置"
--[[ zhTW ]] tL["Left Offset"] = "左位移"
--[[ zhTW ]] tL["Sets the offset of the left of the text"] = "文字左位移"
--[[ zhTW ]] tL["Right Offset"] = "右位移"
--[[ zhTW ]] tL["Sets the offset of the right of the text"] = "文字右位移"
--[[ zhTW ]] tL["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] tL["Sets the vertical offset of the text"] = "文字垂直位移"
--[[ zhTW ]] tL["Color"] = "顏色"
--[[ zhTW ]] tL["Sets the cast bar time text color"] = "施法條時間文字顏色"
 
--[[ zhTW ]] tL["None"] = "無"
--[[ zhTW ]] tL["Normal"] = "正常"
--[[ zhTW ]] tL["Thick"] = "粗"
 
--[[ zhTW ]] tL["LEFT"] = "å·¦"
--[[ zhTW ]] tL["CENTER"] = "中"
--[[ zhTW ]] tL["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftCastBarTimeText"] = "施法時間"
--[[ zhTW ]] mL["Display cast bar time text"] = "在施法條上顯示時間"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCastBarOptions = setmetatable(bL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
bL = nil
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftSpellIconOptions = setmetatable(iL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
iL = nil
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarSpellNameText", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftSpellNameTextOptions = setmetatable(nL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
nL = nil
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarTimeText", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCastBarTimeTextOptions = setmetatable(tL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
tL = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCastBar/AloftCastBarTimeTextOptions.lua New file
0,0 → 1,177
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarTimeText", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCastBarTimeTextOptions
if not L then return end
 
local AloftCastBarTimeText = Aloft:GetModule("CastBarTimeText", true)
if not AloftCastBarTimeText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.castBar.args.castBarTimeText =
{
type = 'group',
name = L["Time Text"],
desc = L["Cast bar time text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastBarTimeText:IsEnabled() or not AloftCastBarTimeText.db or not AloftCastBarTimeText.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show cast bar time text"],
disabled = function(i) return not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return AloftCastBarTimeText.db.profile.enable end,
set = function(i, v) AloftCastBarTimeText.db.profile.enable = v AloftCastBarTimeText:Update() end,
order = 1
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Cast bar time text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastBarTimeText:IsEnabled() or not AloftCastBarTimeText.db or not AloftCastBarTimeText.db.profile or not AloftCastBarTimeText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for cast bar time text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.castBar.args.castBarTimeText.args.typeface.args.font.values) do
if v == AloftCastBarTimeText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftCastBarTimeText.db.profile.font = Aloft.Options.args.castBar.args.castBarTimeText.args.typeface.args.font.values[v]
AloftCastBarTimeText:Update()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the cast bar time text"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftCastBarTimeText.db.profile.fontSize end,
set = function(i, value) AloftCastBarTimeText.db.profile.fontSize = value AloftCastBarTimeText:Update() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on cast bar time text"],
get = function(i) return AloftCastBarTimeText.db.profile.shadow end,
set = function(i, v) AloftCastBarTimeText.db.profile.shadow = v AloftCastBarTimeText:Update() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the font outline for cast bar time text"],
get = function(i) return AloftCastBarTimeText.db.profile.outline end,
set = function(i, value) AloftCastBarTimeText.db.profile.outline = value AloftCastBarTimeText:Update() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
alignment =
{
type = 'select',
width = 'full',
name = L["Alignment"],
desc = L["Sets the alignment of the cast bar time text"],
disabled = function(i) return not AloftCastBarTimeText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return AloftCastBarTimeText.db.profile.alignment end,
set = function(i, value) AloftCastBarTimeText.db.profile.alignment = value AloftCastBarTimeText:Update() end,
values = {["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust cast bar time text position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastBarTimeText:IsEnabled() or not AloftCastBarTimeText.db or not AloftCastBarTimeText.db.profile or not AloftCastBarTimeText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastBarTimeText.db.profile.offsets.left end,
set = function(i, v) AloftCastBarTimeText.db.profile.offsets.left = v AloftCastBarTimeText:Update() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastBarTimeText.db.profile.offsets.right end,
set = function(i, v) AloftCastBarTimeText.db.profile.offsets.right = v AloftCastBarTimeText:Update() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastBarTimeText.db.profile.offsets.vertical end,
set = function(i, v) AloftCastBarTimeText.db.profile.offsets.vertical = v AloftCastBarTimeText:Update() end
},
},
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the cast bar time text color"],
disabled = function(i) return not AloftCastBarTimeText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return unpack(AloftCastBarTimeText.db.profile.color) end,
set = function(i, r, g, b, a) AloftCastBarTimeText.db.profile.color = { r, g, b, a } AloftCastBarTimeText:Update() end,
hasAlpha = true
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCastBar/AloftSpellNameTextOptions.lua New file
0,0 → 1,177
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastBarSpellNameText", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftSpellNameTextOptions
if not L then return end
 
local AloftSpellNameText = Aloft:GetModule("SpellNameText", true)
if not AloftSpellNameText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.castBar.args.spellNameText =
{
type = 'group',
name = L["Spell Name"],
desc = L["Cast bar spell name text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftSpellNameText:IsEnabled() or not AloftSpellNameText.db or not AloftSpellNameText.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show spell name on cast bar"],
disabled = function(i) return not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return AloftSpellNameText.db.profile.enable end,
set = function(i, v) AloftSpellNameText.db.profile.enable = v AloftSpellNameText:Update() end,
order = 1
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Spell name typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftSpellNameText:IsEnabled() or not AloftSpellNameText.db or not AloftSpellNameText.db.profile or not AloftSpellNameText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for spell name"],
get = function(i)
for k, v in pairs(Aloft.Options.args.castBar.args.spellNameText.args.typeface.args.font.values) do
if v == AloftSpellNameText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftSpellNameText.db.profile.font = Aloft.Options.args.castBar.args.spellNameText.args.typeface.args.font.values[v]
AloftSpellNameText:Update()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the spell name"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftSpellNameText.db.profile.fontSize end,
set = function(i, value) AloftSpellNameText.db.profile.fontSize = value AloftSpellNameText:Update() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on spell name"],
get = function(i) return AloftSpellNameText.db.profile.shadow end,
set = function(i, v) AloftSpellNameText.db.profile.shadow = v AloftSpellNameText:Update() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the font outline for spell name"],
get = function(i) return AloftSpellNameText.db.profile.outline end,
set = function(i, value) AloftSpellNameText.db.profile.outline = value AloftSpellNameText:Update() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
alignment =
{
type = 'select',
width = 'full',
name = L["Alignment"],
desc = L["Sets the alignment of the spell name"],
disabled = function(i) return not AloftSpellNameText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return AloftSpellNameText.db.profile.alignment end,
set = function(i, value) AloftSpellNameText.db.profile.alignment = value AloftSpellNameText:Update() end,
values = {["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust spell name position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftSpellNameText:IsEnabled() or not AloftSpellNameText.db or not AloftSpellNameText.db.profile or not AloftSpellNameText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftSpellNameText.db.profile.offsets.left end,
set = function(i, v) AloftSpellNameText.db.profile.offsets.left = v AloftSpellNameText:Update() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftSpellNameText.db.profile.offsets.right end,
set = function(i, v) AloftSpellNameText.db.profile.offsets.right = v AloftSpellNameText:Update() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftSpellNameText.db.profile.offsets.vertical end,
set = function(i, v) AloftSpellNameText.db.profile.offsets.vertical = v AloftSpellNameText:Update() end
},
},
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the spell name color"],
disabled = function(i) return not AloftSpellNameText.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return unpack(AloftSpellNameText.db.profile.color) end,
set = function(i, r, g, b, a) AloftSpellNameText.db.profile.color = { r, g, b, a } AloftSpellNameText:Update() end,
hasAlpha = true
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCastBar/AloftSpellIconOptions.lua New file
0,0 → 1,206
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftSpellIconOptions
if not L then return end
 
local AloftSpellIcon = Aloft:GetModule("SpellIcon", true)
if not AloftSpellIcon then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.castBar.args.spellIcon =
{
type = 'group',
name = L["Spell Icon"],
desc = L["Spell icon placement options"],
disabled = function(i)
-- ChatFrame7:AddMessage("Aloft.Options.args.castBar.args.spellIcon.disabled(): " .. tostring(AloftSpellIcon:IsEnabled()) .. "/" .. tostring(AloftSpellIcon:IsEnabled()) .. "/" .. tostring(AloftSpellIcon.db and AloftSpellIcon.db.profile) .. "/" .. tostring(Aloft:GetNameplateCVar("ShowVKeyCastbar")))
return not Aloft:IsEnabled() or not AloftSpellIcon:IsEnabled() or not AloftSpellIcon.db or not AloftSpellIcon.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar")
end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enable spell icon display on the nameplate"],
disabled = function(i) return not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return AloftSpellIcon.db.profile.enable end,
set = function(i, v) AloftSpellIcon.db.profile.enable = v AloftSpellIcon:UpdateAll() end,
order = 1
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust spell icon position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftSpellIcon:IsEnabled() or not AloftSpellIcon.db or not AloftSpellIcon.db.profile or not AloftSpellIcon.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the spell icon"],
get = function(i) return AloftSpellIcon.db.profile.point end,
set = function(i, v) AloftSpellIcon.db.profile.point = v AloftSpellIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the cast bar to anchor the spell icon"],
get = function(i) return AloftSpellIcon.db.profile.relativeToPoint end,
set = function(i, v) AloftSpellIcon.db.profile.relativeToPoint = v AloftSpellIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the spell icon"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftSpellIcon.db.profile.offsetX end,
set = function(i, v) AloftSpellIcon.db.profile.offsetX = v AloftSpellIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the spell icon"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftSpellIcon.db.profile.offsetY end,
set = function(i, v) AloftSpellIcon.db.profile.offsetY = v AloftSpellIcon:UpdateAll() end
},
},
},
size =
{
type = 'range',
width = 'full',
name = L["Size"],
desc = L["Size in pixels of the spell icon"],
min = 4,
max = 32,
step = 1,
disabled = function(i) return not AloftSpellIcon.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return AloftSpellIcon.db.profile.size end,
set = function(i, v) AloftSpellIcon.db.profile.size = v AloftSpellIcon:UpdateAll() end
},
shield =
{
type = 'group',
width = 'full',
name = L["Shield"],
desc = L["Shows a shield graphic around an uninterruptable spell icon"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftSpellIcon:IsEnabled() or not AloftSpellIcon.db or not AloftSpellIcon.db.profile or not AloftSpellIcon.db.profile.enable or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enables the shield graphic"],
get = function(i) return AloftSpellIcon.db.profile.nointerShield end,
set = function(i, v)
AloftSpellIcon.db.profile.nointerShield = v
AloftSpellIcon:UpdateAll()
end,
},
style =
{
type = 'select',
width = 'full',
name = L["Style"],
desc = L["Sets the shield graphic style"],
order = 8,
disabled = function(i) return not AloftSpellIcon.db.profile.enable or not AloftSpellIcon.db.profile.nointerShield end,
get = function(i)
for k, v in pairs(Aloft.Options.args.castBar.args.spellIcon.args.shield.args.style.values) do
if v == AloftSpellIcon.db.profile.nointerStyle then
-- ChatFrame7:AddMessage("Aloft.Options.args.castBar.args.spellIcon.args.shield.args.style.get(): " .. tostring(k))
return k
end
end
end,
set = function(i, v)
AloftSpellIcon.db.profile.nointerStyle = Aloft.Options.args.castBar.args.spellIcon.args.shield.args.style.values[v]
-- ChatFrame7:AddMessage("Aloft.Options.args.castBar.args.spellIcon.args.shield.args.style.set(): " .. tostring(AloftSpellIcon.db.profile.nointerStyle))
AloftSpellIcon:UpdateAll()
end,
values = SML:List("shield"),
},
scale =
{
type = 'range',
width = 'full',
name = L["Scale"],
desc = L["Scale of the shield graphic"],
min = 1,
max = 8,
step = 0.01,
disabled = function(i) return not AloftSpellIcon.db.profile.enable or not AloftSpellIcon.db.profile.nointerShield end,
get = function(i) return AloftSpellIcon.db.profile.nointerScale end,
set = function(i, v) AloftSpellIcon.db.profile.nointerScale = v AloftSpellIcon:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the shield graphic color"],
order = 1,
disabled = function(i) return not AloftSpellIcon.db.profile.enable or not AloftSpellIcon.db.profile.nointerShield end,
get = function(i) return unpack(AloftSpellIcon.db.profile.nointerColor) end,
set = function(i, r, g, b, a) AloftSpellIcon.db.profile.nointerColor = { r, g, b, a } AloftSpellIcon:UpdateAll() end,
hasAlpha = true,
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X Offset"],
min = -32,
max = 32,
step = 1,
disabled = function(i) return not AloftSpellIcon.db.profile.enable or not AloftSpellIcon.db.profile.nointerShield end,
get = function(i) return AloftSpellIcon.db.profile.nointerOffsetX end,
set = function(i, v) AloftSpellIcon.db.profile.nointerOffsetX = v AloftSpellIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y Offset"],
min = -32,
max = 32,
step = 1,
disabled = function(i) return not AloftSpellIcon.db.profile.enable or not AloftSpellIcon.db.profile.nointerShield end,
get = function(i) return AloftSpellIcon.db.profile.nointerOffsetY end,
set = function(i, v) AloftSpellIcon.db.profile.nointerOffsetY = v AloftSpellIcon:UpdateAll() end
},
},
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftCastBar/AloftCastBarTimeTextModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftCastBarTimeText =
{
type = 'toggle',
width = 'full',
name = L["AloftCastBarTimeText"],
desc = L["Display cast bar time text"],
get = function(i) return AloftModules.db.profile.AloftCastBarTimeText end,
set = function(i, v) AloftModules.db.profile.AloftCastBarTimeText = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftCastBar/AloftSpellNameTextModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftCastBarSpellNameText =
{
type = 'toggle',
width = 'full',
name = L["AloftCastBarSpellNameText"],
desc = L["Display spell name on cast bar"],
get = function(i) return AloftModules.db.profile.AloftCastBarSpellNameText end,
set = function(i, v) AloftModules.db.profile.AloftCastBarSpellNameText = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftCastBar/AloftCastBarOptions.lua New file
0,0 → 1,325
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCastBarOptions
if not L then return end
 
local AloftCastBar = Aloft:GetModule("CastBar", true)
if not AloftCastBar then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.castBar =
{
type = 'group',
name = L["Cast Bar"],
desc = L["Cast bar options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastBar:IsEnabled() or not AloftCastBar.db or not AloftCastBar.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Shows the current target's casting bar"],
get = function(i)
-- ChatFrame7:AddMessage("AloftCastBarOptions:enbable.get(): " .. tostring(Aloft:GetNameplateCVar("ShowVKeyCastbar")))
return Aloft:GetNameplateCVar("ShowVKeyCastbar")
end,
set = function(i, v)
Aloft:SetNameplateCVar("ShowVKeyCastbar", v)
-- ChatFrame7:AddMessage("AloftCastBarOptions:enbable.set(): " .. tostring(Aloft:GetNameplateCVar("ShowVKeyCastbar")))
end,
order = 1,
},
height =
{
type = 'range',
width = 'full',
name = L["Height"],
desc = L["Sets the height of the cast bar"],
min = 1,
max = 32,
step = 1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastBar:IsEnabled() or not AloftCastBar.db or not AloftCastBar.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
get = function(i) return AloftCastBar.db.profile.height end,
set = function(i, v) AloftCastBar.db.profile.height = v AloftCastBar:UpdateAll() end,
order = 2,
},
position =
{
type = 'group',
width = 'full',
name = L["Position"],
desc = L["Adjust cast bar position"],
order = 3,
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastBar:IsEnabled() or not AloftCastBar.db or not AloftCastBar.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the cast bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCastBar.db.profile.offsets.left end,
set = function(i, v) AloftCastBar.db.profile.offsets.left = v AloftCastBar:UpdateAll() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the cast bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCastBar.db.profile.offsets.right end,
set = function(i, v) AloftCastBar.db.profile.offsets.right = v AloftCastBar:UpdateAll() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the cast bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCastBar.db.profile.offsets.vertical end,
set = function(i, v) AloftCastBar.db.profile.offsets.vertical = v AloftCastBar:UpdateAll() end
},
},
},
interruptable =
{
type = 'group',
name = L["Interruptable Cast Bar"],
desc = L["Cast bar appearance for interruptable spells"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastBar:IsEnabled() or not AloftCastBar.db or not AloftCastBar.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
order = 4,
args =
{
color =
{
type = 'color',
width = 'full',
name = L["Cast Bar Color"],
desc = L["Sets the color of the cast bar"],
order = 1,
get = function(i) return unpack(AloftCastBar.db.profile.color) end,
set = function(i, r, g, b, a) AloftCastBar.db.profile.color = { r, g, b, a } AloftCastBar:UpdateAll() end,
hasAlpha = true,
},
texture =
{
type = 'select',
width = 'full',
name = L["Texture"],
desc = L["Sets the cast bar texture"],
order = 2,
get = function(i)
for k, v in pairs(Aloft.Options.args.castBar.args.interruptable.args.texture.values) do
if v == AloftCastBar.db.profile.texture then
return k
end
end
end,
set = function(i, v)
AloftCastBar.db.profile.texture = Aloft.Options.args.castBar.args.interruptable.args.texture.values[v]
AloftCastBar:UpdateAll()
end,
values = SML:List("statusbar"),
},
backdrop =
{
type = 'color',
width = 'full',
name = L["Backdrop Color"],
desc = L["Sets the backdrop color of the cast bar"],
order = 3,
get = function(i) return unpack(AloftCastBar.db.profile.backdropColor) end,
set = function(i, r, g, b, a) AloftCastBar.db.profile.backdropColor = { r, g, b, a } AloftCastBar:UpdateAll() end,
hasAlpha = true,
},
border =
{
type = 'select',
width = 'full',
name = L["Border Style"],
desc = L["Sets the style of the cast bar border"],
order = 4,
get = function(i)
for k, v in pairs(Aloft.Options.args.castBar.args.interruptable.args.border.values) do
if v == AloftCastBar.db.profile.border then
return k
end
end
end,
set = function(i, v)
AloftCastBar.db.profile.border = Aloft.Options.args.castBar.args.interruptable.args.border.values[v]
AloftCastBar: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 AloftCastBar.db.profile.borderEdgeSize end,
set = function(i, v) AloftCastBar.db.profile.borderEdgeSize = v AloftCastBar: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 AloftCastBar.db.profile.borderInset end,
set = function(i, v) AloftCastBar.db.profile.borderInset = v AloftCastBar:UpdateAll() end
},
borderColor =
{
type = 'color',
width = 'full',
name = L["Border Color"],
desc = L["Sets the border color of the cast bar"],
order = 5,
disabled = function(i) return AloftCastBar.db.profile.border == "None" end,
get = function(i) return unpack(AloftCastBar.db.profile.borderColor) end,
set = function(i, r, g, b, a) AloftCastBar.db.profile.borderColor = { r, g, b, a } AloftCastBar:UpdateAll() end,
hasAlpha = true,
},
},
},
uninterruptable =
{
type = 'group',
name = L["Uninterruptable Cast Bar"],
desc = L["Cast bar appearance for uninterruptable spells"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastBar:IsEnabled() or not AloftCastBar.db or not AloftCastBar.db.profile or not Aloft:GetNameplateCVar("ShowVKeyCastbar") end,
order = 5,
args =
{
color =
{
type = 'color',
width = 'full',
name = L["Cast Bar Color"],
desc = L["Sets the color of the cast bar"],
order = 1,
get = function(i) return unpack(AloftCastBar.db.profile.nointerColor) end,
set = function(i, r, g, b, a) AloftCastBar.db.profile.nointerColor = { r, g, b, a } AloftCastBar:UpdateAll() end,
hasAlpha = true,
},
texture =
{
type = 'select',
width = 'full',
name = L["Texture"],
desc = L["Sets the cast bar texture"],
order = 2,
get = function(i)
for k, v in pairs(Aloft.Options.args.castBar.args.uninterruptable.args.texture.values) do
if v == AloftCastBar.db.profile.nointerTexture then
return k
end
end
end,
set = function(i, v)
AloftCastBar.db.profile.nointerTexture = Aloft.Options.args.castBar.args.uninterruptable.args.texture.values[v]
AloftCastBar:UpdateAll()
end,
values = SML:List("statusbar"),
},
backdrop =
{
type = 'color',
width = 'full',
name = L["Backdrop Color"],
desc = L["Sets the backdrop color of the cast bar"],
order = 3,
get = function(i) return unpack(AloftCastBar.db.profile.nointerBackdropColor) end,
set = function(i, r, g, b, a) AloftCastBar.db.profile.nointerBackdropColor = { r, g, b, a } AloftCastBar:UpdateAll() end,
hasAlpha = true,
},
border =
{
type = 'select',
width = 'full',
name = L["Border Style"],
desc = L["Sets the style of the cast bar border"],
order = 4,
get = function(i)
for k, v in pairs(Aloft.Options.args.castBar.args.uninterruptable.args.border.values) do
if v == AloftCastBar.db.profile.nointerBorder then
return k
end
end
end,
set = function(i, v)
AloftCastBar.db.profile.nointerBorder = Aloft.Options.args.castBar.args.uninterruptable.args.border.values[v]
AloftCastBar: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 AloftCastBar.db.profile.nointerBorderEdgeSize end,
set = function(i, v) AloftCastBar.db.profile.nointerBorderEdgeSize = v AloftCastBar: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 AloftCastBar.db.profile.nointerBorderInset end,
set = function(i, v) AloftCastBar.db.profile.nointerBorderInset = v AloftCastBar:UpdateAll() end
},
borderColor =
{
type = 'color',
width = 'full',
name = L["Border Color"],
desc = L["Sets the border color of the cast bar"],
order = 5,
disabled = function(i) return AloftCastBar.db.profile.nointerBorder == "None" end,
get = function(i) return unpack(AloftCastBar.db.profile.nointerBorderColor) end,
set = function(i, r, g, b, a) AloftCastBar.db.profile.nointerBorderColor = { r, g, b, a } AloftCastBar:UpdateAll() end,
hasAlpha = true,
},
},
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftCrowdControl/AloftCrowdControlSpellIconOptions.lua New file
0,0 → 1,114
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCrowdControlSpellIconOptions
if not L then return end
 
local AloftCrowdControl = Aloft:GetModule("CrowdControl", true)
if not AloftCrowdControl then return end
 
local AloftCrowdControlSpellIcon = Aloft:GetModule("CrowdControlSpellIcon", true)
if not AloftCrowdControlSpellIcon then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.crowdControl.args.crowdControlSpellIcon =
{
type = 'group',
name = L["Spell Icon"],
desc = L["Crowd control spell icon placement options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable or not AloftCrowdControlSpellIcon:IsEnabled() or not AloftCrowdControlSpellIcon.db or not AloftCrowdControlSpellIcon.db.profile end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enable crowd control spell icon display on the nameplate"],
get = function(i) return AloftCrowdControlSpellIcon.db.profile.enable end,
set = function(i, v) AloftCrowdControlSpellIcon.db.profile.enable = v AloftCrowdControlSpellIcon:UpdateAll() end,
order = 1
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust crowd control spell icon position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable or not AloftCrowdControlSpellIcon:IsEnabled() or not AloftCrowdControlSpellIcon.db or not AloftCrowdControlSpellIcon.db.profile or not AloftCrowdControlSpellIcon.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the crowd control spell icon"],
get = function(i) return AloftCrowdControlSpellIcon.db.profile.point end,
set = function(i, v) AloftCrowdControlSpellIcon.db.profile.point = v AloftCrowdControlSpellIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the crowd control bar to anchor the spell icon"],
get = function(i) return AloftCrowdControlSpellIcon.db.profile.relativeToPoint end,
set = function(i, v) AloftCrowdControlSpellIcon.db.profile.relativeToPoint = v AloftCrowdControlSpellIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the crowd control spell icon"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCrowdControlSpellIcon.db.profile.offsetX end,
set = function(i, v) AloftCrowdControlSpellIcon.db.profile.offsetX = v AloftCrowdControlSpellIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the crowd control spell icon"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCrowdControlSpellIcon.db.profile.offsetY end,
set = function(i, v) AloftCrowdControlSpellIcon.db.profile.offsetY = v AloftCrowdControlSpellIcon:UpdateAll() end
},
},
},
size =
{
type = 'range',
width = 'full',
name = L["Size"],
desc = L["Size in pixels of the crowd control spell icon"],
min = 4,
max = 32,
step = 1,
disabled = function(i) return not AloftCrowdControlSpellIcon.db.profile.enable end,
get = function(i) return AloftCrowdControlSpellIcon.db.profile.size end,
set = function(i, v) AloftCrowdControlSpellIcon.db.profile.size = v AloftCrowdControlSpellIcon:UpdateAll() end
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCrowdControl/AloftCrowdControlOptions.lua New file
0,0 → 1,245
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftPolymorphOptions
if not L then return end
 
local AloftCrowdControl = Aloft:GetModule("CrowdControl", true)
if not AloftCrowdControl then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.crowdControl =
{
type = 'group',
name = L["Crowd Control"],
desc = L["Crowd control options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Shows crowd control timers on nameplates when possible"],
get = function(i) return AloftCrowdControl.db.profile.enable end,
set = function(i, v) AloftCrowdControl.db.profile.enable = v AloftCrowdControl:UpdateAll() end,
order = 1
},
speculativeAttach =
{
type = 'toggle',
width = 'full',
name = L["Speculative Attach"],
desc = L["Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"],
disabled = function(i) return not AloftCrowdControl.db.profile.enable end,
get = function(i) return AloftCrowdControl.db.profile.speculativeAttach end,
set = function(i, v) AloftCrowdControl.db.profile.speculativeAttach = v end,
order = 2
},
texture =
{
type = 'select',
width = 'full',
name = L["Texture"],
desc = L["Sets the crowd control bar texture"],
disabled = function(i) return not AloftCrowdControl.db.profile.enable end,
get = function(i)
for k, v in pairs(Aloft.Options.args.crowdControl.args.texture.values) do
if v == AloftCrowdControl.db.profile.texture then
return k
end
end
end,
set = function(i, v)
AloftCrowdControl.db.profile.texture = Aloft.Options.args.crowdControl.args.texture.values[v]
AloftCrowdControl:UpdateAll()
end,
values = SML:List("statusbar")
},
border = {
type = 'group',
name = L["Border"],
desc = L["Border options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable end,
args =
{
targetOnly =
{
type = 'toggle',
width = 'full',
name = L["Target Only"],
desc = L["Enables the border on the current target only"],
order = 1,
get = function(i) return AloftCrowdControl.db.profile.targetOnly end,
set = function(i, v) AloftCrowdControl.db.profile.targetOnly = v Aloft:DetermineDataSources() AloftCrowdControl:UpdateAll() end,
disabled = function(i) return AloftCrowdControl.db.profile.border == "None" end,
},
style =
{
type = 'select',
width = 'full',
name = L["Border Style"],
desc = L["Sets the style of the crowd control bar border"],
order = 2,
get = function(i)
for k, v in pairs(Aloft.Options.args.crowdControl.args.border.args.style.values) do
if v == AloftCrowdControl.db.profile.border then
return k
end
end
end,
set = function(i, v)
AloftCrowdControl.db.profile.border = Aloft.Options.args.crowdControl.args.border.args.style.values[v]
AloftCrowdControl: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 AloftCrowdControl.db.profile.borderEdgeSize end,
set = function(i, v) AloftCrowdControl.db.profile.borderEdgeSize = v AloftCrowdControl: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 AloftCrowdControl.db.profile.borderInset end,
set = function(i, v) AloftCrowdControl.db.profile.borderInset = v AloftCrowdControl:UpdateAll() end
},
color =
{
type = 'color',
width = 'full',
name = L["Border Color"],
desc = L["Sets the border color of the crowd control bar"],
order = 3,
disabled = function(i) return AloftCrowdControl.db.profile.border == "None" end,
get = function(i) return unpack(AloftCrowdControl.db.profile.borderColor) end,
set = function(i, r, g, b, a) AloftCrowdControl.db.profile.borderColor = { r, g, b, a } AloftCrowdControl:UpdateAll() end,
hasAlpha = true,
},
},
},
colors =
{
type = 'group',
name = L["Colors"],
desc = L["Color options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable end,
args =
{
bar =
{
type = 'color',
width = 'full',
name = L["Bar Color"],
desc = L["Sets the crowd control bar color"],
get = function(i) return unpack(AloftCrowdControl.db.profile.color) end,
set = function(i, r, g, b, a) AloftCrowdControl.db.profile.color = { r, g, b, a } AloftCrowdControl:UpdateAll() end,
hasAlpha = true,
order = 1
},
backdrop =
{
type = 'color',
width = 'full',
name = L["Backdrop Color"],
desc = L["Sets the crowd control backdrop color"],
get = function(i) return unpack(AloftCrowdControl.db.profile.backdropColor) end,
set = function(i, r, g, b, a) AloftCrowdControl.db.profile.backdropColor = { r, g, b, a } AloftCrowdControl:UpdateAll() end,
hasAlpha = true,
order = 2
},
},
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust the crowd control bar's position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the crowd control bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCrowdControl.db.profile.offsets.left end,
set = function(i, v) AloftCrowdControl.db.profile.offsets.left = v AloftCrowdControl:UpdateAll() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the crowd control bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCrowdControl.db.profile.offsets.right end,
set = function(i, v) AloftCrowdControl.db.profile.offsets.right = v AloftCrowdControl:UpdateAll() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the crowd control bar"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCrowdControl.db.profile.offsets.vertical end,
set = function(i, v) AloftCrowdControl.db.profile.offsets.vertical = v AloftCrowdControl:UpdateAll() end
},
},
},
height =
{
type = 'range',
width = 'full',
name = L["Height"],
desc = L["Sets the height of the crowd control bar"],
min = 1,
max = 32,
step = 1,
disabled = function(i) return not AloftCrowdControl.db.profile.enable end,
get = function(i) return AloftCrowdControl.db.profile.height end,
set = function(i, v) AloftCrowdControl.db.profile.height = v AloftCrowdControl:UpdateAll() end
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCrowdControl/AloftCrowdControlLocale.lua New file
0,0 → 1,917
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local bL = { }
 
local iL = { }
 
local nL = { }
 
local tL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] bL["Crowd Control"] = "Crowd Control"
--[[ enUS ]] bL["Crowd control options"] = "Crowd control options"
 
--[[ enUS ]] bL["Enable"] = "Enable"
--[[ enUS ]] bL["Shows crowd control timers on nameplates when possible"] = "Shows crowd control timers on nameplates when possible"
--[[ enUS ]] bL["Speculative Attach"] = "Speculative Attach"
--[[ enUS ]] bL["Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"] = "Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"
--[[ enUS ]] bL["Texture"] = "Texture"
--[[ enUS ]] bL["Sets the crowd control bar texture"] = "Sets the crowd control bar texture"
 
--[[ enUS ]] bL["Border"] = "Border"
--[[ 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 Style"] = "Border Style"
--[[ enUS ]] bL["Sets the style of the crowd control bar border"] = "Sets the style of the crowd control bar border"
--[[ 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 crowd control bar"] = "Sets the border color of the crowd control bar"
 
--[[ enUS ]] bL["Colors"] = "Colors"
--[[ enUS ]] bL["Color options"] = "Color options"
--[[ enUS ]] bL["Bar Color"] = "Bar Color"
--[[ enUS ]] bL["Sets the crowd control bar color"] = "Sets the crowd control bar color"
--[[ enUS ]] bL["Backdrop Color"] = "Backdrop Color"
--[[ enUS ]] bL["Sets the crowd control backdrop color"] = "Sets the crowd control backdrop color"
 
--[[ enUS ]] bL["Height"] = "Height"
--[[ enUS ]] bL["Sets the height of the crowd control bar"] = "Sets the height of the crowd control bar"
 
--[[ enUS ]] bL["Position"] = "Position"
--[[ enUS ]] bL["Adjust the crowd control bar's position"] = "Adjust the crowd control bar's position"
--[[ enUS ]] bL["Left Offset"] = "Left Offset"
--[[ enUS ]] bL["Sets the offset of the left of the crowd control bar"] = "Sets the offset of the left of the crowd control bar"
--[[ enUS ]] bL["Right Offset"] = "Right Offset"
--[[ enUS ]] bL["Sets the offset of the right of the crowd control bar"] = "Sets the offset of the right of the crowd control bar"
--[[ enUS ]] bL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] bL["Sets the vertical offset of the crowd control bar"] = "Sets the vertical offset of the crowd control bar"
 
--[[ enUS ]] bL["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] bL["TOP"] = "TOP"
--[[ enUS ]] bL["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] bL["LEFT"] = "LEFT"
--[[ enUS ]] bL["CENTER"] = "CENTER"
--[[ enUS ]] bL["RIGHT"] = "RIGHT"
--[[ enUS ]] bL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] bL["BOTTOM"] = "BOTTOM"
--[[ enUS ]] bL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] iL["Spell Icon"] = "Spell Icon"
--[[ enUS ]] iL["Crowd control spell icon placement options"] = "Crowd control spell icon placement options"
--[[ enUS ]] iL["Enable"] = "Enable"
--[[ enUS ]] iL["Enable crowd control spell icon display on the nameplate"] = "Enable crowd control spell icon display on the nameplate"
--[[ enUS ]] iL["Position"] = "Position"
--[[ enUS ]] iL["Adjust crowd control spell icon position"] = "Adjust crowd control spell icon position"
--[[ enUS ]] iL["Anchor"] = "Anchor"
--[[ enUS ]] iL["Sets the anchor for the crowd control spell icon"] = "Sets the anchor for the crowd control spell icon"
--[[ enUS ]] iL["Anchor To"] = "Anchor To"
--[[ enUS ]] iL["Sets the relative point on the crowd control bar to anchor the spell icon"] = "Sets the relative point on the crowd control bar to anchor the spell icon"
--[[ enUS ]] iL["Size"] = "Size"
--[[ enUS ]] iL["Size in pixels of the crowd control spell icon"] = "Size in pixels of the crowd control spell icon"
--[[ enUS ]] iL["X Offset"] = "X Offset"
--[[ enUS ]] iL["X offset of the crowd control spell icon"] = "X offset of the crowd control spell icon"
--[[ enUS ]] iL["Y Offset"] = "Y Offset"
--[[ enUS ]] iL["Y offset of the crowd control spell icon"] = "Y offset of the crowd control spell icon"
 
--[[ enUS ]] iL["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] iL["TOP"] = "TOP"
--[[ enUS ]] iL["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] iL["LEFT"] = "LEFT"
--[[ enUS ]] iL["CENTER"] = "CENTER"
--[[ enUS ]] iL["RIGHT"] = "RIGHT"
--[[ enUS ]] iL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] iL["BOTTOM"] = "BOTTOM"
--[[ enUS ]] iL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] nL["Spell Name"] = "Spell Name"
--[[ enUS ]] nL["Crowd control bar spell name text options"] = "Crowd control bar spell name text options"
--[[ enUS ]] nL["Enable"] = "Enable"
--[[ enUS ]] nL["Show spell name on crowd control bar"] = "Show spell name on crowd control bar"
--[[ enUS ]] nL["Typeface"] = "Typeface"
--[[ enUS ]] nL["Spell name typeface options"] = "Spell name typeface options"
--[[ enUS ]] nL["Font"] = "Font"
--[[ enUS ]] nL["Sets the font for spell name"] = "Sets the font for spell name"
--[[ enUS ]] nL["Font Size"] = "Font Size"
--[[ enUS ]] nL["Sets the font height of the spell name"] = "Sets the font height of the spell name"
--[[ enUS ]] nL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] nL["Show font shadow on spell name"] = "Show font shadow on spell name"
--[[ enUS ]] nL["Alignment"] = "Alignment"
--[[ enUS ]] nL["Sets the alignment of the spell name"] = "Sets the alignment of the spell name"
--[[ enUS ]] nL["Outline"] = "Outline"
--[[ enUS ]] nL["Sets the font outline for spell name"] = "Sets the font outline for spell name"
--[[ enUS ]] nL["Position"] = "Position"
--[[ enUS ]] nL["Adjust spell name position"] = "Adjust spell name position"
--[[ enUS ]] nL["Left Offset"] = "Left Offset"
--[[ enUS ]] nL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ enUS ]] nL["Right Offset"] = "Right Offset"
--[[ enUS ]] nL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ enUS ]] nL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] nL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
--[[ enUS ]] nL["Color"] = "Color"
--[[ enUS ]] nL["Sets the spell name color"] = "Sets the spell name color"
 
--[[ enUS ]] nL["None"] = "None"
--[[ enUS ]] nL["Normal"] = "Normal"
--[[ enUS ]] nL["Thick"] = "Thick"
 
--[[ enUS ]] nL["LEFT"] = "LEFT"
--[[ enUS ]] nL["CENTER"] = "CENTER"
--[[ enUS ]] nL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] tL["Time Text"] = "Time Text"
--[[ enUS ]] tL["Crowd control bar time text options"] = "Crowd control bar time text options"
--[[ enUS ]] tL["Enable"] = "Enable"
--[[ enUS ]] tL["Show crowd control bar time text"] = "Show crowd control bar time text"
--[[ enUS ]] tL["Typeface"] = "Typeface"
--[[ enUS ]] tL["Crowd control bar time text typeface options"] = "Crowd control bar time text typeface options"
--[[ enUS ]] tL["Font"] = "Font"
--[[ enUS ]] tL["Sets the font for crowd control bar time text"] = "Sets the font for crowd control bar time text"
--[[ enUS ]] tL["Font Size"] = "Font Size"
--[[ enUS ]] tL["Sets the font height of the crowd control bar time text"] = "Sets the font height of the crowd control bar time text"
--[[ enUS ]] tL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] tL["Show font shadow on crowd control bar time text"] = "Show font shadow on crowd control bar time text"
--[[ enUS ]] tL["Alignment"] = "Alignment"
--[[ enUS ]] tL["Sets the alignment of the crowd control bar time text"] = "Sets the alignment of the crowd control bar time text"
--[[ enUS ]] tL["Outline"] = "Outline"
--[[ enUS ]] tL["Sets the font outline for crowd control bar time text"] = "Sets the font outline for crowd control bar time text"
--[[ enUS ]] tL["Position"] = "Position"
--[[ enUS ]] tL["Adjust crowd control bar time text position"] = "Adjust crowd control bar time text position"
--[[ enUS ]] tL["Left Offset"] = "Left Offset"
--[[ enUS ]] tL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ enUS ]] tL["Right Offset"] = "Right Offset"
--[[ enUS ]] tL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ enUS ]] tL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] tL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
--[[ enUS ]] tL["Color"] = "Color"
--[[ enUS ]] tL["Sets the crowd control bar time text color"] = "Sets the crowd control bar time text color"
 
--[[ enUS ]] tL["None"] = "None"
--[[ enUS ]] tL["Normal"] = "Normal"
--[[ enUS ]] tL["Thick"] = "Thick"
 
--[[ enUS ]] tL["LEFT"] = "LEFT"
--[[ enUS ]] tL["CENTER"] = "CENTER"
--[[ enUS ]] tL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftCrowdControl"] = "AloftCrowdControl"
--[[ enUS ]] mL["Display crowd control timers on nameplates when possible"] = "Display crowd control timers on nameplates when possible"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] bL["Crowd Control"] = "Crowd Control"
--[[ koKR ]] bL["Crowd control options"] = "Crowd control options"
 
--[[ koKR ]] bL["Enable"] = "사용"
--[[ koKR ]] bL["Shows crowd control timers on nameplates when possible"] = "Shows crowd control timers on nameplates when possible"
--[[ koKR ]] bL["Speculative Attach"] = "추리적인 붙이기"
--[[ koKR ]] bL["Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"] = "Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"
--[[ koKR ]] bL["Texture"] = "텍스쳐"
--[[ koKR ]] bL["Sets the crowd control bar texture"] = "Sets the crowd control bar texture"
 
--[[ koKR ]] bL["Border"] = "Border"
--[[ 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 crowd control bar"] = "Sets the border color of the crowd control bar"
--[[ koKR ]] bL["Border Style"] = "테두리 스타일"
--[[ koKR ]] bL["Sets the style of the crowd control bar border"] = "Sets the style of the crowd control bar border"
 
--[[ koKR ]] bL["Colors"] = "색상"
--[[ koKR ]] bL["Color options"] = "색상 설정"
--[[ koKR ]] bL["Bar Color"] = "바 색상"
--[[ koKR ]] bL["Sets the crowd control bar color"] = "Sets the crowd control bar color"
--[[ koKR ]] bL["Backdrop Color"] = "배경 색상"
--[[ koKR ]] bL["Sets the crowd control backdrop color"] = "Sets the crowd control bar color"
 
--[[ koKR ]] bL["Height"] = "높이"
--[[ koKR ]] bL["Sets the height of the crowd control bar"] = "Sets the height of the crowd control bar"
 
--[[ koKR ]] bL["Position"] = "위치"
--[[ koKR ]] bL["Adjust the crowd control bar's position"] = "Adjust the crowd control bar's position"
--[[ koKR ]] bL["Left Offset"] = "좌측 좌표"
--[[ koKR ]] bL["Sets the offset of the left of the crowd control bar"] = "Sets the offset of the left of the crowd control bar"
--[[ koKR ]] bL["Right Offset"] = "우측 좌표"
--[[ koKR ]] bL["Sets the offset of the right of the crowd control bar"] = "Sets the offset of the right of the crowd control bar"
--[[ koKR ]] bL["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] bL["Sets the vertical offset of the crowd control bar"] = "Sets the vertical offset of the crowd control bar"
 
--[[ koKR ]] bL["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] bL["TOP"] = "상단"
--[[ koKR ]] bL["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] bL["LEFT"] = "좌측"
--[[ koKR ]] bL["CENTER"] = "가운데"
--[[ koKR ]] bL["RIGHT"] = "우측"
--[[ koKR ]] bL["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] bL["BOTTOM"] = "하단"
--[[ koKR ]] bL["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] iL["Spell Icon"] = "주문 아이콘"
--[[ koKR ]] iL["Crowd control spell icon placement options"] = "Crowd control spell icon placement options"
--[[ koKR ]] iL["Enable"] = "사용"
--[[ koKR ]] iL["Enable crowd control spell icon display on the nameplate"] = "Enable crowd control spell icon display on the nameplate"
--[[ koKR ]] iL["Position"] = "위치"
--[[ koKR ]] iL["Adjust crowd control spell icon position"] = "Adjust crowd control spell icon position"
--[[ koKR ]] iL["Anchor"] = "앵커"
--[[ koKR ]] iL["Sets the anchor for the crowd control spell icon"] = "Sets the anchor for the crowd control spell icon"
--[[ koKR ]] iL["Anchor To"] = "앵커 위치"
--[[ koKR ]] iL["Sets the relative point on the crowd control bar to anchor the spell icon"] = "Sets the relative point on the crowd control bar to anchor the spell icon"
--[[ koKR ]] iL["Size"] = "크기"
--[[ koKR ]] iL["Size in pixels of the crowd control spell icon"] = "Size in pixels of the crowd control spell icon"
--[[ koKR ]] iL["X Offset"] = "X 좌표"
--[[ koKR ]] iL["X offset of the crowd control spell icon"] = "X offset of the crowd control spell icon"
--[[ koKR ]] iL["Y Offset"] = "Y 좌표"
--[[ koKR ]] iL["Y offset of the crowd control spell icon"] = "Y offset of the crowd control spell icon"
 
--[[ koKR ]] iL["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] iL["TOP"] = "상단"
--[[ koKR ]] iL["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] iL["LEFT"] = "좌측"
--[[ koKR ]] iL["CENTER"] = "가운데"
--[[ koKR ]] iL["RIGHT"] = "우측"
--[[ koKR ]] iL["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] iL["BOTTOM"] = "하단"
--[[ koKR ]] iL["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] nL["Spell Name"] = "주문명"
--[[ koKR ]] nL["Crowd control bar spell name text options"] = "Crowd control bar spell name text options"
--[[ koKR ]] nL["Enable"] = "사용"
--[[ koKR ]] nL["Show spell name on crowd control bar"] = "Show spell name on crowd control bar"
--[[ koKR ]] nL["Typeface"] = "서체"
--[[ koKR ]] nL["Spell name typeface options"] = "주문명 서체 설정"
--[[ koKR ]] nL["Font"] = "글꼴"
--[[ koKR ]] nL["Sets the font for spell name"] = "주문명의 글꼴을 설정합니다."
--[[ koKR ]] nL["Font Size"] = "글꼴 크기"
--[[ koKR ]] nL["Sets the font height of the spell name"] = "주문명 글자의 높이를 설정합니다."
--[[ koKR ]] nL["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] nL["Show font shadow on spell name"] = "주문명에 그림자를 표시합니다."
--[[ koKR ]] nL["Alignment"] = "정렬"
--[[ koKR ]] nL["Sets the alignment of the spell name"] = "주문명의 정렬을 설정합니다."
--[[ koKR ]] nL["Outline"] = "테두리"
--[[ koKR ]] nL["Sets the font outline for spell name"] = "주문명의 테두리를 설정합니다."
--[[ koKR ]] nL["Position"] = "위치"
--[[ koKR ]] nL["Adjust spell name position"] = "주문명 위치 조절"
--[[ koKR ]] nL["Left Offset"] = "좌측 좌표"
--[[ koKR ]] nL["Sets the offset of the left of the text"] = "글자의 좌측 좌표를 설정합니다."
--[[ koKR ]] nL["Right Offset"] = "우측 좌표"
--[[ koKR ]] nL["Sets the offset of the right of the text"] = "글자의 우측 좌표를 설정합니다."
--[[ koKR ]] nL["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] nL["Sets the vertical offset of the text"] = "글자의 수직 좌표를 설정합니다."
--[[ koKR ]] nL["Color"] = "색상"
--[[ koKR ]] nL["Sets the spell name color"] = "주문명의 색상을 설정합니다."
 
--[[ koKR ]] nL["None"] = "없음"
--[[ koKR ]] nL["Normal"] = "기본"
--[[ koKR ]] nL["Thick"] = "굵게"
 
--[[ koKR ]] nL["LEFT"] = "좌측"
--[[ koKR ]] nL["CENTER"] = "가운데"
--[[ koKR ]] nL["RIGHT"] = "우측"
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] tL["Time Text"] = "시전 시간"
--[[ koKR ]] tL["Crowd control bar time text options"] = "Crowd control bar time text options"
--[[ koKR ]] tL["Enable"] = "사용"
--[[ koKR ]] tL["Show crowd control bar time text"] = "Show crowd control bar time text"
--[[ koKR ]] tL["Typeface"] = "서체"
--[[ koKR ]] tL["Crowd control bar time text typeface options"] = "Crowd control bar time text typeface options"
--[[ koKR ]] tL["Font"] = "글꼴"
--[[ koKR ]] tL["Sets the font for crowd control bar time text"] = "Sets the font for crowd control bar time text"
--[[ koKR ]] tL["Font Size"] = "글꼴 크기"
--[[ koKR ]] tL["Sets the font height of the crowd control bar time text"] = "Sets the font height of the crowd control bar time text"
--[[ koKR ]] tL["Font Shadow"] = "글꼴 그림자"
--[[ koKR ]] tL["Show font shadow on crowd control bar time text"] = "Show font shadow on crowd control bar time text"
--[[ koKR ]] tL["Alignment"] = "정렬"
--[[ koKR ]] tL["Sets the alignment of the crowd control bar time text"] = "Sets the alignment of the crowd control bar time text"
--[[ koKR ]] tL["Outline"] = "테두리"
--[[ koKR ]] tL["Sets the font outline for crowd control bar time text"] = "Sets the font outline for crowd control bar time text"
--[[ koKR ]] tL["Position"] = "위치"
--[[ koKR ]] tL["Adjust crowd control bar time text position"] = "Adjust crowd control bar time text position"
--[[ koKR ]] tL["Left Offset"] = "좌측 좌표"
--[[ koKR ]] tL["Sets the offset of the left of the text"] = "시전 시간의 좌측 좌표를 설정합니다."
--[[ koKR ]] tL["Right Offset"] = "우측 좌표"
--[[ koKR ]] tL["Sets the offset of the right of the text"] = "시전 시간의 우측 좌표를 설정합니다."
--[[ koKR ]] tL["Vertical Offset"] = "수직 좌표"
--[[ koKR ]] tL["Sets the vertical offset of the text"] = "시전 시간의 수직 좌표를 설정합니다."
--[[ koKR ]] tL["Color"] = "색상"
--[[ koKR ]] tL["Sets the crowd control bar time text color"] = "Sets the crowd control bar time text color"
 
--[[ koKR ]] tL["None"] = "없음"
--[[ koKR ]] tL["Normal"] = "기본"
--[[ koKR ]] tL["Thick"] = "굵게"
 
--[[ koKR ]] tL["LEFT"] = "좌측"
--[[ koKR ]] tL["CENTER"] = "가운데"
--[[ koKR ]] tL["RIGHT"] = "우측"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftCrowdControl"] = "AloftCrowdControl"
--[[ koKR ]] mL["Display crowd control timers on nameplates when possible"] = "Display crowd control timers on nameplates when possible"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] bL["Crowd Control"] = "Контроль"
--[[ ruRU ]] bL["Crowd control options"] = "Опции контроля"
 
--[[ ruRU ]] bL["Enable"] = "Включить"
--[[ ruRU ]] bL["Shows crowd control timers on nameplates when possible"] = "Отображать таймеры кантроля на табличках если это возможно"
--[[ ruRU ]] bL["Speculative Attach"] = "Рискованное прикрепление"
--[[ ruRU ]] bL["Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"] = "Пытаться прикрепить полосу таймера контроля, когда не известно, что это правильная табличка"
--[[ ruRU ]] bL["Texture"] = "Текстура"
--[[ ruRU ]] bL["Sets the crowd control bar texture"] = "Задает текстуру полоски контроля"
 
--[[ ruRU ]] bL["Border"] = "Края"
--[[ 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 crowd control bar"] = "Задает цвет рамки полосы контроля"
--[[ ruRU ]] bL["Border Style"] = "Стиль рамки"
--[[ ruRU ]] bL["Sets the style of the crowd control bar border"] = "Задает стиль рамки полосы контроля"
 
--[[ ruRU ]] bL["Colors"] = "Цвета"
--[[ ruRU ]] bL["Color options"] = "Настройка цвета"
--[[ ruRU ]] bL["Bar Color"] = "Цвет полоски"
--[[ ruRU ]] bL["Sets the crowd control bar color"] = "Задает цвет полоски контроля"
--[[ ruRU ]] bL["Backdrop Color"] = "Цвет тени"
--[[ ruRU ]] bL["Sets the crowd control backdrop color"] = "Задает цвет тени полоски контроля"
 
--[[ ruRU ]] bL["Height"] = "Высота"
--[[ ruRU ]] bL["Sets the height of the crowd control bar"] = "Задает высоту полоски контроляr"
 
--[[ ruRU ]] bL["Position"] = "Позиция"
--[[ ruRU ]] bL["Adjust the crowd control bar's position"] = "Задать место полоски контроля"
--[[ ruRU ]] bL["Left Offset"] = "Смещение влево"
--[[ ruRU ]] bL["Sets the offset of the left of the crowd control bar"] = "Смещение полоски контроля влево"
--[[ ruRU ]] bL["Right Offset"] = "Смещение вправо"
--[[ ruRU ]] bL["Sets the offset of the right of the crowd control bar"] = "Смещение полоски контроля вправо"
--[[ ruRU ]] bL["Vertical Offset"] = "Смещение по вертикале"
--[[ ruRU ]] bL["Sets the vertical offset of the crowd control bar"] = "Смещение полоски контроля по вертикале"
 
--[[ ruRU ]] bL["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] bL["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] bL["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] bL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] bL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] bL["RIGHT"] = "СПРАВА"
--[[ ruRU ]] bL["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] bL["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] bL["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] iL["Spell Icon"] = "Значок заклинания"
--[[ ruRU ]] iL["Crowd control spell icon placement options"] = "Настройка размещения иконки заклинания контроля"
--[[ ruRU ]] iL["Enable"] = "Включить"
--[[ ruRU ]] iL["Enable crowd control spell icon display on the nameplate"] = "Включить отображение иконки заклинания контроля на табличке"
--[[ ruRU ]] iL["Position"] = "Позиция"
--[[ ruRU ]] iL["Adjust crowd control spell icon position"] = "Регулировка размещения иконки заклинания контроля"
--[[ ruRU ]] iL["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] iL["Sets the anchor for the crowd control spell icon"] = "Установка точки прикрепления иконки заклинания контроля"
--[[ ruRU ]] iL["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] iL["Sets the relative point on the crowd control bar to anchor the spell icon"] = "Задает точку для положения полосы контроля относительно иконки заклинания"
--[[ ruRU ]] iL["Size"] = "Размер"
--[[ ruRU ]] iL["Size in pixels of the crowd control spell icon"] = "Размер иконки заклинания контроля в пикселях"
--[[ ruRU ]] iL["X Offset"] = "Смещение по X"
--[[ ruRU ]] iL["X offset of the crowd control spell icon"] = "Смещение иконки заклинания контроля по X"
--[[ ruRU ]] iL["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] iL["Y offset of the crowd control spell icon"] = "Смещение иконки заклинания контроля по Y"
 
--[[ ruRU ]] iL["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] iL["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] iL["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] iL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] iL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] iL["RIGHT"] = "СПРАВА"
--[[ ruRU ]] iL["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] iL["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] iL["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] nL["Spell Name"] = "Заклинание"
--[[ ruRU ]] nL["Crowd control bar spell name text options"] = "Настройка текста заклинания полосы контроля"
--[[ ruRU ]] nL["Enable"] = "Включить"
--[[ ruRU ]] nL["Show spell name on crowd control bar"] = "Отображать название заклинания в полосе контроля"
--[[ ruRU ]] nL["Typeface"] = "Шрифт"
--[[ ruRU ]] nL["Spell name typeface options"] = "Настройки шрифта названия заклинаний"
--[[ ruRU ]] nL["Font"] = "Шрифт"
--[[ ruRU ]] nL["Sets the font for spell name"] = "Задает шрифт для названия заклинания"
--[[ ruRU ]] nL["Font Size"] = "Размер шрифта"
--[[ ruRU ]] nL["Sets the font height of the spell name"] = "Задает высоту шрифта для названия заклинания"
--[[ ruRU ]] nL["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] nL["Show font shadow on spell name"] = "Отображать тень для названия заклинания"
--[[ ruRU ]] nL["Alignment"] = "Выравнивание"
--[[ ruRU ]] nL["Sets the alignment of the spell name"] = "Задает выравнивание названия заклинания"
--[[ ruRU ]] nL["Outline"] = "Контур"
--[[ ruRU ]] nL["Sets the font outline for spell name"] = "Задает окантовку для названия заклинания"
--[[ ruRU ]] nL["Position"] = "Позиция"
--[[ ruRU ]] nL["Adjust spell name position"] = "Задать место названия заклинания"
--[[ ruRU ]] nL["Left Offset"] = "Смещение влево"
--[[ ruRU ]] nL["Sets the offset of the left of the text"] = "Смещение текста влево"
--[[ ruRU ]] nL["Right Offset"] = "Смещение вправо"
--[[ ruRU ]] nL["Sets the offset of the right of the text"] = "Смещение текста вправо"
--[[ ruRU ]] nL["Vertical Offset"] = "Смещение по вертикале"
--[[ ruRU ]] nL["Sets the vertical offset of the text"] = "Смещение текста по вертикале"
--[[ ruRU ]] nL["Color"] = "Цвет"
--[[ ruRU ]] nL["Sets the spell name color"] = "Задает цвет названия заклинания"
 
--[[ ruRU ]] nL["None"] = "Нет"
--[[ ruRU ]] nL["Normal"] = "Обычно"
--[[ ruRU ]] nL["Thick"] = "Жирный"
 
--[[ ruRU ]] nL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] nL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] nL["RIGHT"] = "СПРАВА"
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] tL["Time Text"] = "Текст времени"
--[[ ruRU ]] tL["Crowd control bar time text options"] = "Настройки текста времени полосы контроля"
--[[ ruRU ]] tL["Enable"] = "Включить"
--[[ ruRU ]] tL["Show crowd control bar time text"] = "Отображать текст времени в полосе контроля"
--[[ ruRU ]] tL["Typeface"] = "Шрифт"
--[[ ruRU ]] tL["Crowd control bar time text typeface options"] = "Настройка шрифта текста времени полосы контроля"
--[[ ruRU ]] tL["Font"] = "Шрифт"
--[[ ruRU ]] tL["Sets the font for crowd control bar time text"] = "Установка шрифта времени полосы контроля"
--[[ ruRU ]] tL["Font Size"] = "Размер шрифта"
--[[ ruRU ]] tL["Sets the font height of the crowd control bar time text"] = "Установка размера шрифта текста времени полосы контроля"
--[[ ruRU ]] tL["Font Shadow"] = "Тень шрифта"
--[[ ruRU ]] tL["Show font shadow on crowd control bar time text"] = "Отображать тень шрифта текста времени полосы контроля"
--[[ ruRU ]] tL["Alignment"] = "Выравнивание"
--[[ ruRU ]] tL["Sets the alignment of the crowd control bar time text"] = "Выравнивание текста времени полосы контроля"
--[[ ruRU ]] tL["Outline"] = "Контур"
--[[ ruRU ]] tL["Sets the font outline for crowd control bar time text"] = "Установка контура текста времени полосы контроля"
--[[ ruRU ]] tL["Position"] = "Позиция"
--[[ ruRU ]] tL["Adjust crowd control bar time text position"] = "Регулировка расположения текста времени полосы контроля"
--[[ ruRU ]] tL["Left Offset"] = "Смещение влево"
--[[ ruRU ]] tL["Sets the offset of the left of the text"] = "Смещение текста влево"
--[[ ruRU ]] tL["Right Offset"] = "Смещение вправо"
--[[ ruRU ]] tL["Sets the offset of the right of the text"] = "ЗСмещение текста вправо"
--[[ ruRU ]] tL["Vertical Offset"] = "Смещение по вертикале"
--[[ ruRU ]] tL["Sets the vertical offset of the text"] = "Смещение текста по вертикале"
--[[ ruRU ]] tL["Color"] = "Цвет"
--[[ ruRU ]] tL["Sets the crowd control bar time text color"] = "Установка цвета текста времени полосы контроля"
 
--[[ ruRU ]] tL["None"] = "Нет"
--[[ ruRU ]] tL["Normal"] = "Обычно"
--[[ ruRU ]] tL["Thick"] = "Жирный"
 
--[[ ruRU ]] tL["LEFT"] = "СЛЕВА"
--[[ ruRU ]] tL["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] tL["RIGHT"] = "СПРАВА"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftCrowdControl"] = "AloftCrowdControl"
--[[ ruRU ]] mL["Display crowd control timers on nameplates when possible"] = "Если это возможно, отображает таймеры контроля"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] bL["Crowd Control"] = "Crowd Control"
--[[ zhCN ]] bL["Crowd control options"] = "Crowd control options"
 
--[[ zhCN ]] bL["Enable"] = "启用"
--[[ zhCN ]] bL["Shows crowd control timers on nameplates when possible"] = "Shows crowd control timers on nameplates when possible"
--[[ zhCN ]] bL["Speculative Attach"] = "推理依附"
--[[ zhCN ]] bL["Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"] = "Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"
--[[ zhCN ]] bL["Texture"] = "材质"
--[[ zhCN ]] bL["Sets the crowd control bar texture"] = "Sets the crowd control bar texture"
 
--[[ zhCN ]] bL["Border"] = "Border"
--[[ 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 crowd control bar"] = "Sets the border color of the crowd control bar"
--[[ zhCN ]] bL["Border Style"] = "边框样式"
--[[ zhCN ]] bL["Sets the style of the crowd control bar border"] = "Sets the style of the crowd control bar border"
 
--[[ zhCN ]] bL["Colors"] = "颜色"
--[[ zhCN ]] bL["Color options"] = "颜色设置"
--[[ zhCN ]] bL["Bar Color"] = "计时条颜色"
--[[ zhCN ]] bL["Sets the crowd control bar color"] = "Sets the crowd control bar color"
--[[ zhCN ]] bL["Backdrop Color"] = "背景颜色"
--[[ zhCN ]] bL["Sets the crowd control backdrop color"] = "Sets the crowd control backdrop color"
 
--[[ zhCN ]] bL["Height"] = "高度"
--[[ zhCN ]] bL["Sets the height of the crowd control bar"] = "Sets the height of the crowd control bar"
 
--[[ zhCN ]] bL["Position"] = "位置"
--[[ zhCN ]] bL["Adjust the crowd control bar's position"] = "Adjust the crowd control bar's position"
--[[ zhCN ]] bL["Left Offset"] = "向左偏移"
--[[ zhCN ]] bL["Sets the offset of the left of the crowd control bar"] = "Sets the offset of the left of the crowd control bar"
--[[ zhCN ]] bL["Right Offset"] = "向右偏移"
--[[ zhCN ]] bL["Sets the offset of the right of the crowd control bar"] = "Sets the offset of the right of the crowd control bar"
--[[ zhCN ]] bL["Vertical Offset"] = "垂直偏移"
--[[ zhCN ]] bL["Sets the vertical offset of the crowd control bar"] = "Sets the vertical offset of the crowd control bar"
 
--[[ zhCN ]] bL["TOPLEFT"] = "左上"
--[[ zhCN ]] bL["TOP"] = "上"
--[[ zhCN ]] bL["TOPRIGHT"] = "右上"
--[[ zhCN ]] bL["LEFT"] = "å·¦"
--[[ zhCN ]] bL["CENTER"] = "中"
--[[ zhCN ]] bL["RIGHT"] = "右"
--[[ zhCN ]] bL["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] bL["BOTTOM"] = "下"
--[[ zhCN ]] bL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] iL["Spell Icon"] = "法术图标"
--[[ zhCN ]] iL["Crowd control spell icon placement options"] = "Crowd control spell icon placement options"
--[[ zhCN ]] iL["Enable"] = "启用"
--[[ zhCN ]] iL["Enable crowd control spell icon display on the nameplate"] = "Enable crowd control spell icon display on the nameplate"
--[[ zhCN ]] iL["Position"] = "位置"
--[[ zhCN ]] iL["Adjust crowd control spell icon position"] = "Adjust crowd control spell icon position"
--[[ zhCN ]] iL["Anchor"] = "锚点"
--[[ zhCN ]] iL["Sets the anchor for the crowd control spell icon"] = "Sets the anchor for the crowd control spell icon"
--[[ zhCN ]] iL["Anchor To"] = "固定在"
--[[ zhCN ]] iL["Sets the relative point on the crowd control bar to anchor the spell icon"] = "Sets the relative point on the crowd control bar to anchor the spell icon"
--[[ zhCN ]] iL["Size"] = "尺寸"
--[[ zhCN ]] iL["Size in pixels of the crowd control spell icon"] = "Size in pixels of the crowd control spell icon"
--[[ zhCN ]] iL["X Offset"] = "X轴偏移"
--[[ zhCN ]] iL["X offset of the crowd control spell icon"] = "X offset of the crowd control spell icon"
--[[ zhCN ]] iL["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] iL["Y offset of the crowd control spell icon"] = "Y offset of the crowd control spell icon"
 
--[[ zhCN ]] iL["TOPLEFT"] = "左上"
--[[ zhCN ]] iL["TOP"] = "上"
--[[ zhCN ]] iL["TOPRIGHT"] = "右上"
--[[ zhCN ]] iL["LEFT"] = "å·¦"
--[[ zhCN ]] iL["CENTER"] = "中"
--[[ zhCN ]] iL["RIGHT"] = "右"
--[[ zhCN ]] iL["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] iL["BOTTOM"] = "下"
--[[ zhCN ]] iL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] nL["Spell Name"] = "法术名称"
--[[ zhCN ]] nL["Crowd control bar spell name text options"] = "Crowd control bar spell name text options"
--[[ zhCN ]] nL["Enable"] = "启用"
--[[ zhCN ]] nL["Show spell name on crowd control bar"] = "Show spell name on crowd control bar"
--[[ zhCN ]] nL["Typeface"] = "字体"
--[[ zhCN ]] nL["Spell name typeface options"] = "法术名称文字式样设置"
--[[ zhCN ]] nL["Font"] = "字体"
--[[ zhCN ]] nL["Sets the font for spell name"] = "设定法术名称文字的字体"
--[[ zhCN ]] nL["Font Size"] = "字号"
--[[ zhCN ]] nL["Sets the font height of the spell name"] = "设定法术名称文字的字号"
--[[ zhCN ]] nL["Font Shadow"] = "字体阴影"
--[[ zhCN ]] nL["Show font shadow on spell name"] = "设定法术名称文字的字体阴影"
--[[ zhCN ]] nL["Alignment"] = "对齐"
--[[ zhCN ]] nL["Sets the alignment of the spell name"] = "设定法术名称文字的字体的对齐方式"
--[[ zhCN ]] nL["Outline"] = "轮廓"
--[[ zhCN ]] nL["Sets the font outline for spell name"] = "设定法术名称文字的字体轮廓"
--[[ zhCN ]] nL["Position"] = "位置"
--[[ zhCN ]] nL["Adjust spell name position"] = "调整法术名称文字的位置"
--[[ zhCN ]] nL["Left Offset"] = "向左偏移"
--[[ zhCN ]] nL["Sets the offset of the left of the text"] = "设定法术名称文字的向左偏移量"
--[[ zhCN ]] nL["Right Offset"] = "向右偏移"
--[[ zhCN ]] nL["Sets the offset of the right of the text"] = "设定法术名称文字的向右偏移量"
--[[ zhCN ]] nL["Vertical Offset"] = "垂直位移"
--[[ zhCN ]] nL["Sets the vertical offset of the text"] = "设定法术名称文字的垂直偏移量"
--[[ zhCN ]] nL["Color"] = "颜色"
--[[ zhCN ]] nL["Sets the spell name color"] = "设定法术名称文字的颜色"
 
--[[ zhCN ]] nL["None"] = "无"
--[[ zhCN ]] nL["Normal"] = "正常"
--[[ zhCN ]] nL["Thick"] = "粗"
 
--[[ zhCN ]] nL["LEFT"] = "å·¦"
--[[ zhCN ]] nL["CENTER"] = "中"
--[[ zhCN ]] nL["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] tL["Time Text"] = "计时文字"
--[[ zhCN ]] tL["Crowd control bar time text options"] = "Crowd control bar time text options"
--[[ zhCN ]] tL["Enable"] = "启用"
--[[ zhCN ]] tL["Show crowd control bar time text"] = "Show crowd control bar time text"
--[[ zhCN ]] tL["Typeface"] = "式样"
--[[ zhCN ]] tL["Crowd control bar time text typeface options"] = "Crowd control bar time text typeface options"
--[[ zhCN ]] tL["Font"] = "字体"
--[[ zhCN ]] tL["Sets the font for crowd control bar time text"] = "Sets the font for crowd control bar time text"
--[[ zhCN ]] tL["Font Size"] = "字号"
--[[ zhCN ]] tL["Sets the font height of the crowd control bar time text"] = "Sets the font height of the crowd control bar time text"
--[[ zhCN ]] tL["Font Shadow"] = "字体阴影"
--[[ zhCN ]] tL["Show font shadow on crowd control bar time text"] = "Show font shadow on crowd control bar time text"
--[[ zhCN ]] tL["Alignment"] = "对齐"
--[[ zhCN ]] tL["Sets the alignment of the crowd control bar time text"] = "Sets the alignment of the crowd control bar time text"
--[[ zhCN ]] tL["Outline"] = "轮廓"
--[[ zhCN ]] tL["Sets the font outline for crowd control bar time text"] = "Sets the font outline for crowd control bar time text"
--[[ zhCN ]] tL["Position"] = "位置"
--[[ zhCN ]] tL["Adjust crowd control bar time text position"] = "Adjust crowd control bar time text position"
--[[ zhCN ]] tL["Left Offset"] = "向左偏移"
--[[ zhCN ]] tL["Sets the offset of the left of the text"] = "设定文字的向左偏移量"
--[[ zhCN ]] tL["Right Offset"] = "向右偏移"
--[[ zhCN ]] tL["Sets the offset of the right of the text"] = "设定文字的向右偏移量"
--[[ zhCN ]] tL["Vertical Offset"] = "垂直偏移"
--[[ zhCN ]] tL["Sets the vertical offset of the text"] = "设定文字的垂直偏移量"
--[[ zhCN ]] tL["Color"] = "颜色"
--[[ zhCN ]] tL["Sets the crowd control bar time text color"] = "Sets the crowd control bar time text color"
 
--[[ zhCN ]] tL["None"] = "无"
--[[ zhCN ]] tL["Normal"] = "正常"
--[[ zhCN ]] tL["Thick"] = "粗"
 
--[[ zhCN ]] tL["LEFT"] = "å·¦"
--[[ zhCN ]] tL["CENTER"] = "中"
--[[ zhCN ]] tL["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftCrowdControl"] = "控场效果"
--[[ zhCN ]] mL["Display crowd control timers on nameplates when possible"] = "可能的情况在姓名板上显示控场效果计时器"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] bL["Crowd Control"] = "Crowd Control"
--[[ zhTW ]] bL["Crowd control options"] = "Crowd control options"
 
--[[ zhTW ]] bL["Enable"] = "啟用"
--[[ zhTW ]] bL["Shows crowd control timers on nameplates when possible"] = "Shows crowd control timers on nameplates when possible"
--[[ zhTW ]] bL["Speculative Attach"] = "推理依附"
--[[ zhTW ]] bL["Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"] = "Attempt to attach the crowd control timer bar when it is not absolutely certain if it is the correct nameplate"
--[[ zhTW ]] bL["Texture"] = "紋理"
--[[ zhTW ]] bL["Sets the crowd control bar texture"] = "Sets the crowd control bar texture"
 
--[[ zhTW ]] bL["Border"] = "Border"
--[[ 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 crowd control bar"] = "Sets the border color of the crowd control bar"
--[[ zhTW ]] bL["Border Style"] = "邊框樣式"
--[[ zhTW ]] bL["Sets the style of the crowd control bar border"] = "Sets the style of the crowd control bar border"
 
--[[ zhTW ]] bL["Colors"] = "顏色"
--[[ zhTW ]] bL["Color options"] = "顏色選項"
--[[ zhTW ]] bL["Bar Color"] = "變形條顏色"
--[[ zhTW ]] bL["Sets the crowd control bar color"] = "Sets the crowd control bar color"
--[[ zhTW ]] bL["Backdrop Color"] = "背景顏色"
--[[ zhTW ]] bL["Sets the crowd control backdrop color"] = "Sets the crowd control backdrop color"
 
--[[ zhTW ]] bL["Height"] = "高度"
--[[ zhTW ]] bL["Sets the height of the crowd control bar"] = "Sets the height of the crowd control bar"
 
--[[ zhTW ]] bL["Position"] = "位置"
--[[ zhTW ]] bL["Adjust the crowd control bar's position"] = "Adjust the crowd control bar's position"
--[[ zhTW ]] bL["Left Offset"] = "左位移"
--[[ zhTW ]] bL["Sets the offset of the left of the crowd control bar"] = "Sets the offset of the left of the crowd control bar"
--[[ zhTW ]] bL["Right Offset"] = "右位移"
--[[ zhTW ]] bL["Sets the offset of the right of the crowd control bar"] = "Sets the offset of the right of the crowd control bar"
--[[ zhTW ]] bL["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] bL["Sets the vertical offset of the crowd control bar"] = "Sets the vertical offset of the crowd control bar"
 
--[[ zhTW ]] bL["TOPLEFT"] = "左上"
--[[ zhTW ]] bL["TOP"] = "上"
--[[ zhTW ]] bL["TOPRIGHT"] = "右上"
--[[ zhTW ]] bL["LEFT"] = "å·¦"
--[[ zhTW ]] bL["CENTER"] = "中"
--[[ zhTW ]] bL["RIGHT"] = "右"
--[[ zhTW ]] bL["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] bL["BOTTOM"] = "下"
--[[ zhTW ]] bL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] iL["Spell Icon"] = "法術圖示"
--[[ zhTW ]] iL["Crowd control spell icon placement options"] = "Crowd control spell icon placement options"
--[[ zhTW ]] iL["Enable"] = "啟用"
--[[ zhTW ]] iL["Enable crowd control spell icon display on the nameplate"] = "Enable crowd control spell icon display on the nameplate"
--[[ zhTW ]] iL["Position"] = "位置"
--[[ zhTW ]] iL["Adjust crowd control spell icon position"] = "Adjust crowd control spell icon position"
--[[ zhTW ]] iL["Anchor"] = "定位點"
--[[ zhTW ]] iL["Sets the anchor for the crowd control spell icon"] = "Sets the anchor for the crowd control spell icon"
--[[ zhTW ]] iL["Anchor To"] = "固定在"
--[[ zhTW ]] iL["Sets the relative point on the crowd control bar to anchor the spell icon"] = "Sets the relative point on the crowd control bar to anchor the spell icon"
--[[ zhTW ]] iL["Size"] = "大小"
--[[ zhTW ]] iL["Size in pixels of the crowd control spell icon"] = "Size in pixels of the crowd control spell icon"
--[[ zhTW ]] iL["X Offset"] = "X位移"
--[[ zhTW ]] iL["X offset of the crowd control spell icon"] = "X offset of the crowd control spell icon"
--[[ zhTW ]] iL["Y Offset"] = "Y位移"
--[[ zhTW ]] iL["Y offset of the crowd control spell icon"] = "Y offset of the crowd control spell icon"
 
--[[ zhTW ]] iL["TOPLEFT"] = "左上"
--[[ zhTW ]] iL["TOP"] = "上"
--[[ zhTW ]] iL["TOPRIGHT"] = "右上"
--[[ zhTW ]] iL["LEFT"] = "å·¦"
--[[ zhTW ]] iL["CENTER"] = "中"
--[[ zhTW ]] iL["RIGHT"] = "右"
--[[ zhTW ]] iL["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] iL["BOTTOM"] = "下"
--[[ zhTW ]] iL["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] nL["Spell Name"] = "法術名字"
--[[ zhTW ]] nL["Crowd control bar spell name text options"] = "Crowd control bar spell name text options"
--[[ zhTW ]] nL["Enable"] = "啟用"
--[[ zhTW ]] nL["Show spell name on crowd control bar"] = "Show spell name on crowd control bar"
--[[ zhTW ]] nL["Typeface"] = "字體"
--[[ zhTW ]] nL["Spell name typeface options"] = "法術名字字體選項"
--[[ zhTW ]] nL["Font"] = "字型"
--[[ zhTW ]] nL["Sets the font for spell name"] = "法術名字字型"
--[[ zhTW ]] nL["Font Size"] = "字型大小"
--[[ zhTW ]] nL["Sets the font height of the spell name"] = "法術名字字型大小"
--[[ zhTW ]] nL["Font Shadow"] = "字型陰影"
--[[ zhTW ]] nL["Show font shadow on spell name"] = "法術名字字型陰影"
--[[ zhTW ]] nL["Alignment"] = "對齊"
--[[ zhTW ]] nL["Sets the alignment of the spell name"] = "法術名字對齊"
--[[ zhTW ]] nL["Outline"] = "輪廓"
--[[ zhTW ]] nL["Sets the font outline for spell name"] = "法術名字字型輪廓"
--[[ zhTW ]] nL["Position"] = "位置"
--[[ zhTW ]] nL["Adjust spell name position"] = "法術名字位置"
--[[ zhTW ]] nL["Left Offset"] = "左位移"
--[[ zhTW ]] nL["Sets the offset of the left of the text"] = "文字左位移"
--[[ zhTW ]] nL["Right Offset"] = "右位移"
--[[ zhTW ]] nL["Sets the offset of the right of the text"] = "文字右位移"
--[[ zhTW ]] nL["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] nL["Sets the vertical offset of the text"] = "文字垂直位移"
--[[ zhTW ]] nL["Color"] = "顏色"
--[[ zhTW ]] nL["Sets the spell name color"] = "法術名字顏色"
 
--[[ zhTW ]] nL["None"] = "無"
--[[ zhTW ]] nL["Normal"] = "正常"
--[[ zhTW ]] nL["Thick"] = "粗"
 
--[[ zhTW ]] nL["LEFT"] = "å·¦"
--[[ zhTW ]] nL["CENTER"] = "中"
--[[ zhTW ]] nL["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] tL["Time Text"] = "時間文字"
--[[ zhTW ]] tL["Crowd control bar time text options"] = "Crowd control bar time text options"
--[[ zhTW ]] tL["Enable"] = "啟用"
--[[ zhTW ]] tL["Show crowd control bar time text"] = "Show crowd control bar time text"
--[[ zhTW ]] tL["Typeface"] = "字體"
--[[ zhTW ]] tL["Crowd control bar time text typeface options"] = "Crowd control bar time text typeface options"
--[[ zhTW ]] tL["Font"] = "字型"
--[[ zhTW ]] tL["Sets the font for crowd control bar time text"] = "Sets the font for crowd control bar time text"
--[[ zhTW ]] tL["Font Size"] = "字型大小"
--[[ zhTW ]] tL["Sets the font height of the crowd control bar time text"] = "Sets the font height of the crowd control bar time text"
--[[ zhTW ]] tL["Font Shadow"] = "字型陰影"
--[[ zhTW ]] tL["Show font shadow on crowd control bar time text"] = "Show font shadow on crowd control bar time text"
--[[ zhTW ]] tL["Alignment"] = "對齊"
--[[ zhTW ]] tL["Sets the alignment of the crowd control bar time text"] = "Sets the alignment of the crowd control bar time text"
--[[ zhTW ]] tL["Outline"] = "輪廓"
--[[ zhTW ]] tL["Sets the font outline for crowd control bar time text"] = "Sets the font outline for crowd control bar time text"
--[[ zhTW ]] tL["Position"] = "位置"
--[[ zhTW ]] tL["Adjust crowd control bar time text position"] = "Adjust crowd control bar time text position"
--[[ zhTW ]] tL["Left Offset"] = "左位移"
--[[ zhTW ]] tL["Sets the offset of the left of the text"] = "文字左位移"
--[[ zhTW ]] tL["Right Offset"] = "右位移"
--[[ zhTW ]] tL["Sets the offset of the right of the text"] = "文字右位移"
--[[ zhTW ]] tL["Vertical Offset"] = "垂直位移"
--[[ zhTW ]] tL["Sets the vertical offset of the text"] = "文字垂直位移"
--[[ zhTW ]] tL["Color"] = "顏色"
--[[ zhTW ]] tL["Sets the crowd control bar time text color"] = "Sets the crowd control bar time text color"
 
--[[ zhTW ]] tL["None"] = "無"
--[[ zhTW ]] tL["Normal"] = "正常"
--[[ zhTW ]] tL["Thick"] = "粗"
 
--[[ zhTW ]] tL["LEFT"] = "å·¦"
--[[ zhTW ]] tL["CENTER"] = "中"
--[[ zhTW ]] tL["RIGHT"] = "右"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftCrowdControl"] = "控場效果"
--[[ zhTW ]] mL["Display crowd control timers on nameplates when possible"] = "可能的情況在名牌上顯示控場效果計時器"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftPolymorphOptions = setmetatable(bL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
bL = nil
 
AloftLocale.AloftCrowdControlSpellIconOptions = setmetatable(iL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
iL = nil
 
AloftLocale.AloftCrowdControlSpellNameTextOptions = setmetatable(nL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
nL = nil
 
AloftLocale.AloftCrowdControlTimeTextOptions = setmetatable(tL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
tL = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCrowdControl/AloftCrowdControlTimeTextOptions.lua New file
0,0 → 1,179
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCrowdControlTimeTextOptions
if not L then return end
 
local AloftCrowdControl = Aloft:GetModule("CrowdControl", true)
if not AloftCrowdControl then return end
 
local AloftCrowdControlTimeText = Aloft:GetModule("CrowdControlTimeText", true)
if not AloftCrowdControlTimeText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.crowdControl.args.crowdControlTimeText =
{
type = 'group',
name = L["Time Text"],
desc = L["Crowd control bar time text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable or not AloftCrowdControlTimeText:IsEnabled() or not AloftCrowdControlTimeText.db or not AloftCrowdControlTimeText.db.profile end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show crowd control bar time text"],
get = function(i) return AloftCrowdControlTimeText.db.profile.enable end,
set = function(i, v) AloftCrowdControlTimeText.db.profile.enable = v AloftCrowdControlTimeText:Update() end,
order = 1
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Crowd control bar time text typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable or not AloftCrowdControlTimeText:IsEnabled() or not AloftCrowdControlTimeText.db or not AloftCrowdControlTimeText.db.profile or not AloftCrowdControlTimeText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for crowd control bar time text"],
get = function(i)
for k, v in pairs(Aloft.Options.args.crowdControl.args.crowdControlTimeText.args.typeface.args.font.values) do
if v == AloftCrowdControlTimeText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftCrowdControlTimeText.db.profile.font = Aloft.Options.args.crowdControl.args.crowdControlTimeText.args.typeface.args.font.values[v]
AloftCrowdControlTimeText:Update()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the crowd control bar time text"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftCrowdControlTimeText.db.profile.fontSize end,
set = function(i, value) AloftCrowdControlTimeText.db.profile.fontSize = value AloftCrowdControlTimeText:Update() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on crowd control bar time text"],
get = function(i) return AloftCrowdControlTimeText.db.profile.shadow end,
set = function(i, v) AloftCrowdControlTimeText.db.profile.shadow = v AloftCrowdControlTimeText:Update() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the font outline for crowd control bar time text"],
get = function(i) return AloftCrowdControlTimeText.db.profile.outline end,
set = function(i, value) AloftCrowdControlTimeText.db.profile.outline = value AloftCrowdControlTimeText:Update() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
alignment =
{
type = 'select',
width = 'full',
name = L["Alignment"],
desc = L["Sets the alignment of the crowd control bar time text"],
disabled = function(i) return not AloftCrowdControlTimeText.db.profile.enable end,
get = function(i) return AloftCrowdControlTimeText.db.profile.alignment end,
set = function(i, value) AloftCrowdControlTimeText.db.profile.alignment = value AloftCrowdControlTimeText:Update() end,
values = {["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust crowd control bar time text position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable or not AloftCrowdControlTimeText:IsEnabled() or not AloftCrowdControlTimeText.db or not AloftCrowdControlTimeText.db.profile or not AloftCrowdControlTimeText.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCrowdControlTimeText.db.profile.offsets.left end,
set = function(i, v) AloftCrowdControlTimeText.db.profile.offsets.left = v AloftCrowdControlTimeText:Update() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCrowdControlTimeText.db.profile.offsets.right end,
set = function(i, v) AloftCrowdControlTimeText.db.profile.offsets.right = v AloftCrowdControlTimeText:Update() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCrowdControlTimeText.db.profile.offsets.vertical end,
set = function(i, v) AloftCrowdControlTimeText.db.profile.offsets.vertical = v AloftCrowdControlTimeText:Update() end
},
},
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the crowd control bar time text color"],
disabled = function(i) return not AloftCrowdControlTimeText.db.profile.enable end,
get = function(i) return unpack(AloftCrowdControlTimeText.db.profile.color) end,
set = function(i, r, g, b, a) AloftCrowdControlTimeText.db.profile.color = { r, g, b, a } AloftCrowdControlTimeText:Update() end,
hasAlpha = true,
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCrowdControl/AloftCrowdControlModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftCrowdControl =
{
type = 'toggle',
width = 'full',
name = L["AloftCrowdControl"],
desc = L["Display crowd control timers on nameplates when possible"],
get = function(i) return AloftModules.db.profile.AloftCrowdControl end,
set = function(i, v) AloftModules.db.profile.AloftCrowdControl = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftCrowdControl/AloftCrowdControlSpellNameTextOptions.lua New file
0,0 → 1,179
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCrowdControl", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCrowdControlSpellNameTextOptions
if not L then return end
 
local AloftCrowdControl = Aloft:GetModule("CrowdControl", true)
if not AloftCrowdControl then return end
 
local AloftCrowdControlSpellNameText = Aloft:GetModule("CrowdControlSpellNameText", true)
if not AloftCrowdControlSpellNameText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.crowdControl.args.crowdControlSpellNameText =
{
type = 'group',
name = L["Spell Name"],
desc = L["Crowd control bar spell name text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable or not AloftCrowdControlSpellNameText:IsEnabled() or not AloftCrowdControlSpellNameText.db or not AloftCrowdControlSpellNameText.db.profile end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show spell name on crowd control bar"],
get = function(i) return AloftCrowdControlSpellNameText.db.profile.enable end,
set = function(i, v) AloftCrowdControlSpellNameText.db.profile.enable = v AloftCrowdControlSpellNameText:Update() end,
order = 1
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Spell name typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable or not AloftCrowdControlSpellNameText:IsEnabled() or not AloftCrowdControlSpellNameText.db or not AloftCrowdControlSpellNameText.db.profile or not AloftCrowdControlSpellNameText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for spell name"],
get = function(i)
for k, v in pairs(Aloft.Options.args.crowdControl.args.crowdControlSpellNameText.args.typeface.args.font.values) do
if v == AloftCrowdControlSpellNameText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftCrowdControlSpellNameText.db.profile.font = Aloft.Options.args.crowdControl.args.crowdControlSpellNameText.args.typeface.args.font.values[v]
AloftCrowdControlSpellNameText:Update()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the spell name"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftCrowdControlSpellNameText.db.profile.fontSize end,
set = function(i, value) AloftCrowdControlSpellNameText.db.profile.fontSize = value AloftCrowdControlSpellNameText:Update() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on spell name"],
get = function(i) return AloftCrowdControlSpellNameText.db.profile.shadow end,
set = function(i, v) AloftCrowdControlSpellNameText.db.profile.shadow = v AloftCrowdControlSpellNameText:Update() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the font outline for spell name"],
get = function(i) return AloftCrowdControlSpellNameText.db.profile.outline end,
set = function(i, value) AloftCrowdControlSpellNameText.db.profile.outline = value AloftCrowdControlSpellNameText:Update() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
alignment =
{
type = 'select',
width = 'full',
name = L["Alignment"],
desc = L["Sets the alignment of the spell name"],
disabled = function(i) return not AloftCrowdControlSpellNameText.db.profile.enable end,
get = function(i) return AloftCrowdControlSpellNameText.db.profile.alignment end,
set = function(i, value) AloftCrowdControlSpellNameText.db.profile.alignment = value AloftCrowdControlSpellNameText:Update() end,
values = {["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust spell name position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCrowdControl:IsEnabled() or not AloftCrowdControl.db or not AloftCrowdControl.db.profile or not AloftCrowdControl.db.profile.enable or not AloftCrowdControlSpellNameText:IsEnabled() or not AloftCrowdControlSpellNameText.db or not AloftCrowdControlSpellNameText.db.profile or not AloftCrowdControlSpellNameText.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCrowdControlSpellNameText.db.profile.offsets.left end,
set = function(i, v) AloftCrowdControlSpellNameText.db.profile.offsets.left = v AloftCrowdControlSpellNameText:Update() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCrowdControlSpellNameText.db.profile.offsets.right end,
set = function(i, v) AloftCrowdControlSpellNameText.db.profile.offsets.right = v AloftCrowdControlSpellNameText:Update() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCrowdControlSpellNameText.db.profile.offsets.vertical end,
set = function(i, v) AloftCrowdControlSpellNameText.db.profile.offsets.vertical = v AloftCrowdControlSpellNameText:Update() end
},
},
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the spell name color"],
disabled = function(i) return not AloftCrowdControlSpellNameText.db.profile.enable end,
get = function(i) return unpack(AloftCrowdControlSpellNameText.db.profile.color) end,
set = function(i, r, g, b, a) AloftCrowdControlSpellNameText.db.profile.color = { r, g, b, a } AloftCrowdControlSpellNameText:Update() end,
hasAlpha = true
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCastWarning/AloftCastWarningLocale.lua New file
0,0 → 1,1466
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-- ChatFrame7:AddMessage("AloftCastWarningLocale: have globals")
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
-- ChatFrame7:AddMessage("AloftCastWarningLocale: have modules locale")
 
local wL = { }
 
local iL = { }
 
local nL = { }
 
local tL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarning", function()
 
-----------------------------------------------------------------------------
 
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] wL["Cast Warning"] = "Cast Warning"
--[[ enUS ]] wL["Cast warning options"] = "Cast warning options"
 
--[[ enUS ]] wL["Enable"] = "Enable"
--[[ enUS ]] wL["Show cast warnings on identifiable enemy nameplates"] = "Show cast warnings on identifiable enemy nameplates"
--[[ enUS ]] wL["Verification Interval"] = "Verification Interval"
--[[ enUS ]] wL["Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"] = "Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"
--[[ enUS ]] wL["Animated Cast Warning"] = "Animated Cast Warning"
--[[ enUS ]] wL["Animate cast warnings as cast bars"] = "Animate cast warnings as cast bars"
--[[ enUS ]] wL["Fade Duration"] = "Fade Duration"
--[[ enUS ]] wL["Sets the fade duration of animated cast warnings (0.0 is no fade)"] = "Sets the fade duration of animated cast warnings (0.0 is no fade)"
--[[ enUS ]] wL["Trade Skills"] = "Trade Skills"
--[[ enUS ]] wL["Show cast warnings for trade skills"] = "Show cast warnings for trade skills"
--[[ enUS ]] wL["Players"] = "Players"
--[[ enUS ]] wL["Show cast warnings for players"] = "Show cast warnings for players"
--[[ enUS ]] wL["Friendly Units"] = "Friendly Units"
--[[ enUS ]] wL["Show cast warnings for friendly units"] = "Show cast warnings for friendly units"
 
--[[ enUS ]] wL["Position"] = "Position"
--[[ enUS ]] wL["Adjust the cast warning's position"] = "Adjust the cast warning's position"
--[[ enUS ]] wL["Left Offset"] = "Left Offset"
--[[ enUS ]] wL["Sets the offset of the left of the cast warning"] = "Sets the offset of the left of the cast warning"
--[[ enUS ]] wL["Right Offset"] = "Right Offset"
--[[ enUS ]] wL["Sets the offset of the right of the cast warning"] = "Sets the offset of the right of the cast warning"
--[[ enUS ]] wL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] wL["Sets the vertical offset of the cast warning"] = "Sets the vertical offset of the cast warning"
 
--[[ enUS ]] wL["Height"] = "Height"
--[[ enUS ]] wL["Sets the height of the cast warning"] = "Sets the height of the cast warning"
 
--[[ enUS ]] wL["Interruptable Cast Warning"] = "Interruptable Cast Warning"
--[[ enUS ]] wL["Cast warning appearance for interruptable spells"] = "Cast warning appearance for interruptable spells"
--[[ enUS ]] wL["Uninterruptable Cast Warning"] = "Uninterruptable Cast Warning"
--[[ enUS ]] wL["Cast warning appearance for uninterruptable spells"] = "Cast warning appearance for uninterruptable spells"
 
--[[ enUS ]] wL["Cast Warning Color"] = "Cast Warning Color"
--[[ enUS ]] wL["Sets the color of the cast warning"] = "Sets the color of the cast warning"
--[[ enUS ]] wL["Backdrop Color"] = "Backdrop Color"
--[[ enUS ]] wL["Sets the backdrop color of the cast warning"] = "Sets the backdrop color of the cast warning"
--[[ enUS ]] wL["Border Edge Size"] = "Border Edge Size"
--[[ enUS ]] wL["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ enUS ]] wL["Border Inset"] = "Border Inset"
--[[ enUS ]] wL["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ enUS ]] wL["Border Color"] = "Border Color"
--[[ enUS ]] wL["Sets the border color of the cast warning"] = "Sets the border color of the cast warning"
--[[ enUS ]] wL["Border Style"] = "Border Style"
--[[ enUS ]] wL["Sets the style of the cast warning border"] = "Sets the style of the cast warning border"
--[[ enUS ]] wL["Texture"] = "Texture"
--[[ enUS ]] wL["Sets the cast warning texture"] = "Sets the cast warning texture"
 
--[[ enUS ]] wL["Cast Warning Alpha Override Enable"] = "Cast Warning Alpha Override Enable"
--[[ enUS ]] wL["Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"] = "Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"
--[[ enUS ]] wL["Cast Warning Alpha Override"] = "Cast Warning Alpha Override"
--[[ enUS ]] wL["Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"] = "Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"
 
--[[ enUS ]] wL["Colors"] = "Colors"
--[[ enUS ]] wL["Customize cast warning colors (based on spell school)"] = "Customize cast warning colors (based on spell school)"
--[[ enUS ]] wL["Default"] = "Default"
--[[ enUS ]] wL["Sets the default color for cast warnings from unknown schools"] = "Sets the default color for cast warnings from unknown schools"
--[[ enUS ]] wL["Physical"] = "Physical"
--[[ enUS ]] wL["Sets the color for physical school cast warnings"] = "Sets the color for physical school cast warnings"
--[[ enUS ]] wL["Holy"] = "Holy"
--[[ enUS ]] wL["Sets the color for holy school cast warnings"] = "Sets the color for holy school cast warnings"
--[[ enUS ]] wL["Fire"] = "Fire"
--[[ enUS ]] wL["Sets the color for fire school cast warnings"] = "Sets the color for fire school cast warnings"
--[[ enUS ]] wL["Nature"] = "Nature"
--[[ enUS ]] wL["Sets the color for nature school cast warnings"] = "Sets the color for nature school cast warnings"
--[[ enUS ]] wL["Frost"] = "Frost"
--[[ enUS ]] wL["Sets the color for frost school cast warnings"] = "Sets the color for frost school cast warnings"
--[[ enUS ]] wL["Shadow"] = "Shadow"
--[[ enUS ]] wL["Sets the color for shadow school cast warnings"] = "Sets the color for shadow school cast warnings"
--[[ enUS ]] wL["Arcane"] = "Arcane"
--[[ enUS ]] wL["Sets the color for arcane school cast warnings"] = "Sets the color for arcane school cast warnings"
--[[ enUS ]] wL["Healing"] = "Healing"
--[[ enUS ]] wL["Sets the color for healing school cast warnings"] = "Sets the color for healing school cast warnings"
 
--[[ enUS ]] wL["Reset to Defaults"] = "Reset to Defaults"
--[[ enUS ]] wL["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftCastWarning"] = "AloftCastWarning"
--[[ enUS ]] mL["Add cast warnings to Aloft unit nameplates"] = "Add cast warnings to Aloft unit nameplates"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] iL["Spell Icon"] = "Spell Icon"
--[[ enUS ]] iL["Cast warning spell icon placement options"] = "Cast warning spell icon placement options"
--[[ enUS ]] iL["Enable"] = "Enable"
--[[ enUS ]] iL["Enable cast warning spell icon display on the nameplate"] = "Enable cast warning spell icon display on the nameplate"
--[[ enUS ]] iL["Position"] = "Position"
--[[ enUS ]] iL["Adjust cast warning spell icon position"] = "Adjust cast warning spell icon position"
--[[ enUS ]] iL["Anchor"] = "Anchor"
--[[ enUS ]] iL["Sets the anchor for the cast warning spell icon"] = "Sets the anchor for the cast warning spell icon"
--[[ enUS ]] iL["Anchor To"] = "Anchor To"
--[[ enUS ]] iL["Sets the relative point on the cast warning to anchor the spell icon"] = "Sets the relative point on the cast warning to anchor the spell icon"
--[[ enUS ]] iL["X Offset"] = "X Offset"
--[[ enUS ]] iL["X offset of the cast warning spell icon"] = "X offset of the cast warning spell icon"
--[[ enUS ]] iL["Y Offset"] = "Y Offset"
--[[ enUS ]] iL["Y offset of the cast warning spell icon"] = "Y offset of the cast warning spell icon"
--[[ enUS ]] iL["Size"] = "Size"
--[[ enUS ]] iL["Size in pixels of the cast warning spell icon"] = "Size in pixels of the cast warning spell icon"
 
--[[ enUS ]] iL["Shield"] = "Shield"
--[[ enUS ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ enUS ]] iL["Enable"] = "Enable"
--[[ enUS ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ enUS ]] iL["Style"] = "Style"
--[[ enUS ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ enUS ]] iL["Color"] = "Color"
--[[ enUS ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
 
--[[ enUS ]] iL["SQUARE"] = "SQUARE"
--[[ enUS ]] iL["ROUND"] = "ROUND"
 
--[[ enUS ]] iL["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] iL["TOP"] = "TOP"
--[[ enUS ]] iL["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] iL["LEFT"] = "LEFT"
--[[ enUS ]] iL["CENTER"] = "CENTER"
--[[ enUS ]] iL["RIGHT"] = "RIGHT"
--[[ enUS ]] iL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] iL["BOTTOM"] = "BOTTOM"
--[[ enUS ]] iL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftCastWarningSpellIcon"] = "AloftCastWarningSpellIcon"
--[[ enUS ]] mL["Display spell icon on cast warning"] = "Display spell icon on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] nL["Spell Name"] = "Spell Name"
--[[ enUS ]] nL["Cast warning spell name text options"] = "Cast warning spell name text options"
 
--[[ enUS ]] nL["Enable"] = "Enable"
--[[ enUS ]] nL["Show cast warning spell name"] = "Show cast warning spell name"
--[[ enUS ]] nL["Display Rank"] = "Display Rank"
--[[ enUS ]] nL["Show cast warning spell rank"] = "Show cast warning spell rank"
--[[ enUS ]] nL["Display Min/Max Range"] = "Display Min/Max Range"
--[[ enUS ]] nL["Show cast warning spell minimum/maximum range"] = "Show cast warning spell minimum/maximum range"
--[[ enUS ]] nL["Display Outcome"] = "Display Outcome"
--[[ enUS ]] nL["Show cast warning spell outcome"] = "Show cast warning spell outcome"
--[[ enUS ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ enUS ]] nL["Show cast warning spell outcome reason"] = "Show cast warning spell outcome reason"
--[[ enUS ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ enUS ]] nL["Show cast warning spell outcome reason (failure type, interrupting spell)"] = "Show cast warning spell outcome reason (failure type, interrupting spell)"
 
--[[ enUS ]] nL["Typeface"] = "Typeface"
--[[ enUS ]] nL["Spell name typeface options"] = "Spell name typeface options"
--[[ enUS ]] nL["Font"] = "Font"
--[[ enUS ]] nL["Sets the font for spell name"] = "Sets the font for spell name"
--[[ enUS ]] nL["Font Size"] = "Font Size"
--[[ enUS ]] nL["Sets the font height of the spell name"] = "Sets the font height of the spell name"
--[[ enUS ]] nL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] nL["Show font shadow on spell name"] = "Show font shadow on spell name"
--[[ enUS ]] nL["Outline"] = "Outline"
--[[ enUS ]] nL["Sets the font outline for spell name"] = "Sets the font outline for spell name"
 
--[[ enUS ]] nL["Alignment"] = "Alignment"
--[[ enUS ]] nL["Sets the alignment of the spell name"] = "Sets the alignment of the spell name"
 
--[[ enUS ]] nL["Position"] = "Position"
--[[ enUS ]] nL["Adjust spell name position"] = "Adjust spell name position"
--[[ enUS ]] nL["Left Offset"] = "Left Offset"
--[[ enUS ]] nL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ enUS ]] nL["Right Offset"] = "Right Offset"
--[[ enUS ]] nL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ enUS ]] nL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] nL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ enUS ]] nL["Colors"] = "Colors"
--[[ enUS ]] nL["Sets the spell name colors"] = "Sets the spell name colors"
--[[ enUS ]] nL["Cast Color"] = "Cast Color"
--[[ enUS ]] nL["Sets the spell name color during active casting"] = "Sets the spell name color during active casting"
--[[ enUS ]] nL["Fade Color"] = "Fade Color"
--[[ enUS ]] nL["Sets the spell name color during cast warning fade"] = "Sets the spell name color during cast warning fade"
 
--[[ enUS ]] nL["None"] = "None"
--[[ enUS ]] nL["Normal"] = "Normal"
--[[ enUS ]] nL["Thick"] = "Thick"
 
--[[ enUS ]] nL["LEFT"] = "LEFT"
--[[ enUS ]] nL["CENTER"] = "CENTER"
--[[ enUS ]] nL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftCastWarningSpellNameText"] = "AloftCastWarningSpellNameText"
--[[ enUS ]] mL["Display spell name on cast warning"] = "Display spell name on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] tL["Spell Time"] = "Spell Time"
--[[ enUS ]] tL["Cast warning spell time text options"] = "Cast warning spell time text options"
--[[ enUS ]] tL["Enable"] = "Enable"
--[[ enUS ]] tL["Show cast warning spell time"] = "Show cast warning spell time"
--[[ enUS ]] tL["Typeface"] = "Typeface"
--[[ enUS ]] tL["Spell time typeface options"] = "Spell time typeface options"
--[[ enUS ]] tL["Font"] = "Font"
--[[ enUS ]] tL["Sets the font for spell time"] = "Sets the font for spell time"
--[[ enUS ]] tL["Font Size"] = "Font Size"
--[[ enUS ]] tL["Sets the font height of the spell time"] = "Sets the font height of the spell time"
--[[ enUS ]] tL["Font Shadow"] = "Font Shadow"
--[[ enUS ]] tL["Show font shadow on spell time"] = "Show font shadow on spell time"
--[[ enUS ]] tL["Outline"] = "Outline"
--[[ enUS ]] tL["Sets the font outline for spell time"] = "Sets the font outline for spell time"
--[[ enUS ]] tL["Alignment"] = "Alignment"
--[[ enUS ]] tL["Sets the alignment of the spell time"] = "Sets the alignment of the spell time"
--[[ enUS ]] tL["Position"] = "Position"
--[[ enUS ]] tL["Adjust spell time position"] = "Adjust spell time position"
--[[ enUS ]] tL["Left Offset"] = "Left Offset"
--[[ enUS ]] tL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ enUS ]] tL["Right Offset"] = "Right Offset"
--[[ enUS ]] tL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ enUS ]] tL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] tL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ enUS ]] tL["Colors"] = "Colors"
--[[ enUS ]] tL["Sets the spell time colors"] = "Sets the spell time colors"
--[[ enUS ]] tL["Cast Color"] = "Cast Color"
--[[ enUS ]] tL["Sets the spell time color during active casting"] = "Sets the spell time color during active casting"
--[[ enUS ]] tL["Fade Color"] = "Fade Color"
--[[ enUS ]] tL["Sets the spell time color during cast warning fade"] = "Sets the spell time color during cast warning fade"
 
--[[ enUS ]] tL["None"] = "None"
--[[ enUS ]] tL["Normal"] = "Normal"
--[[ enUS ]] tL["Thick"] = "Thick"
 
--[[ enUS ]] tL["LEFT"] = "LEFT"
--[[ enUS ]] tL["CENTER"] = "CENTER"
--[[ enUS ]] tL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftCastWarningTimeText"] = "AloftCastWarningTimeText"
--[[ enUS ]] mL["Display time text on cast warning"] = "Display time text on cast warning"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarning", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] wL["Cast Warning"] = "Cast Warning"
--[[ koKR ]] wL["Cast warning options"] = "Cast warning options"
 
--[[ koKR ]] wL["Enable"] = "Enable"
--[[ koKR ]] wL["Show cast warnings on identifiable enemy nameplates"] = "Show cast warnings on identifiable enemy nameplates"
--[[ koKR ]] wL["Verification Interval"] = "Verification Interval"
--[[ koKR ]] wL["Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"] = "Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"
--[[ koKR ]] wL["Animated Cast Warning"] = "Animated Cast Warning"
--[[ koKR ]] wL["Animate cast warnings as cast bars"] = "Animate cast warnings as cast bars"
--[[ koKR ]] wL["Fade Duration"] = "Fade Duration"
--[[ koKR ]] wL["Sets the fade duration of animated cast warnings (0.0 is no fade)"] = "Sets the fade duration of animated cast warnings (0.0 is no fade)"
--[[ koKR ]] wL["Trade Skills"] = "Trade Skills"
--[[ koKR ]] wL["Show cast warnings for trade skills"] = "Show cast warnings for trade skills"
--[[ koKR ]] wL["Players"] = "Players"
--[[ koKR ]] wL["Show cast warnings for players"] = "Show cast warnings for players"
--[[ koKR ]] wL["Friendly Units"] = "Friendly Units"
--[[ koKR ]] wL["Show cast warnings for friendly units"] = "Show cast warnings for friendly units"
 
--[[ koKR ]] wL["Position"] = "Position"
--[[ koKR ]] wL["Adjust the cast warning's position"] = "Adjust the cast warning's position"
--[[ koKR ]] wL["Left Offset"] = "Left Offset"
--[[ koKR ]] wL["Sets the offset of the left of the cast warning"] = "Sets the offset of the left of the cast warning"
--[[ koKR ]] wL["Right Offset"] = "Right Offset"
--[[ koKR ]] wL["Sets the offset of the right of the cast warning"] = "Sets the offset of the right of the cast warning"
--[[ koKR ]] wL["Vertical Offset"] = "Vertical Offset"
--[[ koKR ]] wL["Sets the vertical offset of the cast warning"] = "Sets the vertical offset of the cast warning"
 
--[[ koKR ]] wL["Height"] = "Height"
--[[ koKR ]] wL["Sets the height of the cast warning"] = "Sets the height of the cast warning"
 
--[[ koKR ]] wL["Interruptable Cast Warning"] = "Interruptable Cast Warning"
--[[ koKR ]] wL["Cast warning appearance for interruptable spells"] = "Cast warning appearance for interruptable spells"
--[[ koKR ]] wL["Uninterruptable Cast Warning"] = "Uninterruptable Cast Warning"
--[[ koKR ]] wL["Cast warning appearance for uninterruptable spells"] = "Cast warning appearance for uninterruptable spells"
 
--[[ koKR ]] wL["Cast Warning Color"] = "Cast Warning Color"
--[[ koKR ]] wL["Sets the color of the cast warning"] = "Sets the color of the cast warning"
--[[ koKR ]] wL["Backdrop Color"] = "Backdrop Color"
--[[ koKR ]] wL["Sets the backdrop color of the cast warning"] = "Sets the backdrop color of the cast warning"
--[[ koKR ]] wL["Border Edge Size"] = "Border Edge Size"
--[[ koKR ]] wL["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ koKR ]] wL["Border Inset"] = "Border Inset"
--[[ koKR ]] wL["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ koKR ]] wL["Border Color"] = "Border Color"
--[[ koKR ]] wL["Sets the border color of the cast warning"] = "Sets the border color of the cast warning"
--[[ koKR ]] wL["Border Style"] = "Border Style"
--[[ koKR ]] wL["Sets the style of the cast warning border"] = "Sets the style of the cast warning border"
--[[ koKR ]] wL["Texture"] = "Texture"
--[[ koKR ]] wL["Sets the cast warning texture"] = "Sets the cast warning texture"
 
--[[ koKR ]] wL["Cast Warning Alpha Override Enable"] = "Cast Warning Alpha Override Enable"
--[[ koKR ]] wL["Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"] = "Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"
--[[ koKR ]] wL["Cast Warning Alpha Override"] = "Cast Warning Alpha Override"
--[[ koKR ]] wL["Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"] = "Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"
 
--[[ koKR ]] wL["Colors"] = "Colors"
--[[ koKR ]] wL["Customize cast warning colors (based on spell school)"] = "Customize cast warning colors (based on spell school)"
--[[ koKR ]] wL["Default"] = "Default"
--[[ koKR ]] wL["Sets the default color for cast warnings from unknown schools"] = "Sets the default color for cast warnings from unknown schools"
--[[ koKR ]] wL["Physical"] = "Physical"
--[[ koKR ]] wL["Sets the color for physical school cast warnings"] = "Sets the color for physical school cast warnings"
--[[ koKR ]] wL["Holy"] = "Holy"
--[[ koKR ]] wL["Sets the color for holy school cast warnings"] = "Sets the color for holy school cast warnings"
--[[ koKR ]] wL["Fire"] = "Fire"
--[[ koKR ]] wL["Sets the color for fire school cast warnings"] = "Sets the color for fire school cast warnings"
--[[ koKR ]] wL["Nature"] = "Nature"
--[[ koKR ]] wL["Sets the color for nature school cast warnings"] = "Sets the color for nature school cast warnings"
--[[ koKR ]] wL["Frost"] = "Frost"
--[[ koKR ]] wL["Sets the color for frost school cast warnings"] = "Sets the color for frost school cast warnings"
--[[ koKR ]] wL["Shadow"] = "Shadow"
--[[ koKR ]] wL["Sets the color for shadow school cast warnings"] = "Sets the color for shadow school cast warnings"
--[[ koKR ]] wL["Arcane"] = "Arcane"
--[[ koKR ]] wL["Sets the color for arcane school cast warnings"] = "Sets the color for arcane school cast warnings"
--[[ koKR ]] wL["Healing"] = "Healing"
--[[ koKR ]] wL["Sets the color for healing school cast warnings"] = "Sets the color for healing school cast warnings"
 
--[[ koKR ]] wL["Reset to Defaults"] = "Reset to Defaults"
--[[ koKR ]] wL["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftCastWarning"] = "AloftCastWarning"
--[[ koKR ]] mL["Add cast warnings to Aloft unit nameplates"] = "Add cast warnings to Aloft unit nameplates"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] iL["Spell Icon"] = "Spell Icon"
--[[ koKR ]] iL["Cast warning spell icon placement options"] = "Cast warning spell icon placement options"
--[[ koKR ]] iL["Enable"] = "Enable"
--[[ koKR ]] iL["Enable cast warning spell icon display on the nameplate"] = "Enable cast warning spell icon display on the nameplate"
--[[ koKR ]] iL["Position"] = "Position"
--[[ koKR ]] iL["Adjust cast warning spell icon position"] = "Adjust cast warning spell icon position"
--[[ koKR ]] iL["Anchor"] = "Anchor"
--[[ koKR ]] iL["Sets the anchor for the cast warning spell icon"] = "Sets the anchor for the cast warning spell icon"
--[[ koKR ]] iL["Anchor To"] = "Anchor To"
--[[ koKR ]] iL["Sets the relative point on the cast warning to anchor the spell icon"] = "Sets the relative point on the cast warning to anchor the spell icon"
--[[ koKR ]] iL["X Offset"] = "X Offset"
--[[ koKR ]] iL["X offset of the cast warning spell icon"] = "X offset of the cast warning spell icon"
--[[ koKR ]] iL["Y Offset"] = "Y Offset"
--[[ koKR ]] iL["Y offset of the cast warning spell icon"] = "Y offset of the cast warning spell icon"
--[[ koKR ]] iL["Size"] = "Size"
--[[ koKR ]] iL["Size in pixels of the cast warning spell icon"] = "Size in pixels of the cast warning spell icon"
 
--[[ koKR ]] iL["Shield"] = "Shield"
--[[ koKR ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ koKR ]] iL["Enable"] = "Enable"
--[[ koKR ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ koKR ]] iL["Style"] = "Style"
--[[ koKR ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ koKR ]] iL["Color"] = "Color"
--[[ koKR ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
 
--[[ koKR ]] iL["SQUARE"] = "SQUARE"
--[[ koKR ]] iL["ROUND"] = "ROUND"
 
--[[ koKR ]] iL["TOPLEFT"] = "TOPLEFT"
--[[ koKR ]] iL["TOP"] = "TOP"
--[[ koKR ]] iL["TOPRIGHT"] = "TOPRIGHT"
--[[ koKR ]] iL["LEFT"] = "LEFT"
--[[ koKR ]] iL["CENTER"] = "CENTER"
--[[ koKR ]] iL["RIGHT"] = "RIGHT"
--[[ koKR ]] iL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ koKR ]] iL["BOTTOM"] = "BOTTOM"
--[[ koKR ]] iL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftCastWarningSpellIcon"] = "AloftCastWarningSpellIcon"
--[[ koKR ]] mL["Display spell icon on cast warning"] = "Display spell icon on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] nL["Spell Name"] = "Spell Name"
--[[ koKR ]] nL["Cast warning spell name text options"] = "Cast warning spell name text options"
 
--[[ koKR ]] nL["Enable"] = "Enable"
--[[ koKR ]] nL["Show cast warning spell name"] = "Show cast warning spell name"
--[[ koKR ]] nL["Display Rank"] = "Display Rank"
--[[ koKR ]] nL["Show cast warning spell rank"] = "Show cast warning spell rank"
--[[ koKR ]] nL["Display Min/Max Range"] = "Display Min/Max Range"
--[[ koKR ]] nL["Show cast warning spell minimum/maximum range"] = "Show cast warning spell minimum/maximum range"
--[[ koKR ]] nL["Display Outcome"] = "Display Outcome"
--[[ koKR ]] nL["Show cast warning spell outcome"] = "Show cast warning spell outcome"
--[[ koKR ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ koKR ]] nL["Show cast warning spell outcome reason"] = "Show cast warning spell outcome reason"
--[[ koKR ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ koKR ]] nL["Show cast warning spell outcome reason (failure type, interrupting spell)"] = "Show cast warning spell outcome reason (failure type, interrupting spell)"
 
--[[ koKR ]] nL["Typeface"] = "Typeface"
--[[ koKR ]] nL["Spell name typeface options"] = "Spell name typeface options"
--[[ koKR ]] nL["Font"] = "Font"
--[[ koKR ]] nL["Sets the font for spell name"] = "Sets the font for spell name"
--[[ koKR ]] nL["Font Size"] = "Font Size"
--[[ koKR ]] nL["Sets the font height of the spell name"] = "Sets the font height of the spell name"
--[[ koKR ]] nL["Font Shadow"] = "Font Shadow"
--[[ koKR ]] nL["Show font shadow on spell name"] = "Show font shadow on spell name"
--[[ koKR ]] nL["Outline"] = "Outline"
--[[ koKR ]] nL["Sets the font outline for spell name"] = "Sets the font outline for spell name"
 
--[[ koKR ]] nL["Alignment"] = "Alignment"
--[[ koKR ]] nL["Sets the alignment of the spell name"] = "Sets the alignment of the spell name"
 
--[[ koKR ]] nL["Position"] = "Position"
--[[ koKR ]] nL["Adjust spell name position"] = "Adjust spell name position"
--[[ koKR ]] nL["Left Offset"] = "Left Offset"
--[[ koKR ]] nL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ koKR ]] nL["Right Offset"] = "Right Offset"
--[[ koKR ]] nL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ koKR ]] nL["Vertical Offset"] = "Vertical Offset"
--[[ koKR ]] nL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ koKR ]] nL["Colors"] = "Colors"
--[[ koKR ]] nL["Sets the spell name colors"] = "Sets the spell name colors"
--[[ koKR ]] nL["Cast Color"] = "Cast Color"
--[[ koKR ]] nL["Sets the spell name color during active casting"] = "Sets the spell name color during active casting"
--[[ koKR ]] nL["Fade Color"] = "Fade Color"
--[[ koKR ]] nL["Sets the spell name color during cast warning fade"] = "Sets the spell name color during cast warning fade"
 
--[[ koKR ]] nL["None"] = "None"
--[[ koKR ]] nL["Normal"] = "Normal"
--[[ koKR ]] nL["Thick"] = "Thick"
 
--[[ koKR ]] nL["LEFT"] = "LEFT"
--[[ koKR ]] nL["CENTER"] = "CENTER"
--[[ koKR ]] nL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftCastWarningSpellNameText"] = "AloftCastWarningSpellNameText"
--[[ koKR ]] mL["Display spell name on cast warning"] = "Display spell name on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] tL["Spell Time"] = "Spell Time"
--[[ koKR ]] tL["Cast warning spell time text options"] = "Cast warning spell time text options"
--[[ koKR ]] tL["Enable"] = "Enable"
--[[ koKR ]] tL["Show cast warning spell time"] = "Show cast warning spell time"
--[[ koKR ]] tL["Typeface"] = "Typeface"
--[[ koKR ]] tL["Spell time typeface options"] = "Spell time typeface options"
--[[ koKR ]] tL["Font"] = "Font"
--[[ koKR ]] tL["Sets the font for spell time"] = "Sets the font for spell time"
--[[ koKR ]] tL["Font Size"] = "Font Size"
--[[ koKR ]] tL["Sets the font height of the spell time"] = "Sets the font height of the spell time"
--[[ koKR ]] tL["Font Shadow"] = "Font Shadow"
--[[ koKR ]] tL["Show font shadow on spell time"] = "Show font shadow on spell time"
--[[ koKR ]] tL["Outline"] = "Outline"
--[[ koKR ]] tL["Sets the font outline for spell time"] = "Sets the font outline for spell time"
--[[ koKR ]] tL["Alignment"] = "Alignment"
--[[ koKR ]] tL["Sets the alignment of the spell time"] = "Sets the alignment of the spell time"
--[[ koKR ]] tL["Position"] = "Position"
--[[ koKR ]] tL["Adjust spell time position"] = "Adjust spell time position"
--[[ koKR ]] tL["Left Offset"] = "Left Offset"
--[[ koKR ]] tL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ koKR ]] tL["Right Offset"] = "Right Offset"
--[[ koKR ]] tL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ koKR ]] tL["Vertical Offset"] = "Vertical Offset"
--[[ koKR ]] tL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ koKR ]] tL["Colors"] = "Colors"
--[[ koKR ]] tL["Sets the spell time colors"] = "Sets the spell time colors"
--[[ koKR ]] tL["Cast Color"] = "Cast Color"
--[[ koKR ]] tL["Sets the spell time color during active casting"] = "Sets the spell time color during active casting"
--[[ koKR ]] tL["Fade Color"] = "Fade Color"
--[[ koKR ]] tL["Sets the spell time color during cast warning fade"] = "Sets the spell time color during cast warning fade"
 
--[[ koKR ]] tL["None"] = "None"
--[[ koKR ]] tL["Normal"] = "Normal"
--[[ koKR ]] tL["Thick"] = "Thick"
 
--[[ koKR ]] tL["LEFT"] = "LEFT"
--[[ koKR ]] tL["CENTER"] = "CENTER"
--[[ koKR ]] tL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftCastWarningTimeText"] = "AloftCastWarningTimeText"
--[[ koKR ]] mL["Display time text on cast warning"] = "Display time text on cast warning"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarning", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] wL["Cast Warning"] = "Cast Warning"
--[[ ruRU ]] wL["Cast warning options"] = "Cast warning options"
 
--[[ ruRU ]] wL["Enable"] = "Enable"
--[[ ruRU ]] wL["Show cast warnings on identifiable enemy nameplates"] = "Show cast warnings on identifiable enemy nameplates"
--[[ ruRU ]] wL["Verification Interval"] = "Verification Interval"
--[[ ruRU ]] wL["Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"] = "Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"
--[[ ruRU ]] wL["Animated Cast Warning"] = "Animated Cast Warning"
--[[ ruRU ]] wL["Animate cast warnings as cast bars"] = "Animate cast warnings as cast bars"
--[[ ruRU ]] wL["Fade Duration"] = "Fade Duration"
--[[ ruRU ]] wL["Sets the fade duration of animated cast warnings (0.0 is no fade)"] = "Sets the fade duration of animated cast warnings (0.0 is no fade)"
--[[ ruRU ]] wL["Trade Skills"] = "Trade Skills"
--[[ ruRU ]] wL["Show cast warnings for trade skills"] = "Show cast warnings for trade skills"
--[[ ruRU ]] wL["Players"] = "Players"
--[[ ruRU ]] wL["Show cast warnings for players"] = "Show cast warnings for players"
--[[ ruRU ]] wL["Friendly Units"] = "Friendly Units"
--[[ ruRU ]] wL["Show cast warnings for friendly units"] = "Show cast warnings for friendly units"
 
--[[ ruRU ]] wL["Position"] = "Position"
--[[ ruRU ]] wL["Adjust the cast warning's position"] = "Adjust the cast warning's position"
--[[ ruRU ]] wL["Left Offset"] = "Left Offset"
--[[ ruRU ]] wL["Sets the offset of the left of the cast warning"] = "Sets the offset of the left of the cast warning"
--[[ ruRU ]] wL["Right Offset"] = "Right Offset"
--[[ ruRU ]] wL["Sets the offset of the right of the cast warning"] = "Sets the offset of the right of the cast warning"
--[[ ruRU ]] wL["Vertical Offset"] = "Vertical Offset"
--[[ ruRU ]] wL["Sets the vertical offset of the cast warning"] = "Sets the vertical offset of the cast warning"
 
--[[ ruRU ]] wL["Height"] = "Height"
--[[ ruRU ]] wL["Sets the height of the cast warning"] = "Sets the height of the cast warning"
 
--[[ ruRU ]] wL["Interruptable Cast Warning"] = "Interruptable Cast Warning"
--[[ ruRU ]] wL["Cast warning appearance for interruptable spells"] = "Cast warning appearance for interruptable spells"
--[[ ruRU ]] wL["Uninterruptable Cast Warning"] = "Uninterruptable Cast Warning"
--[[ ruRU ]] wL["Cast warning appearance for uninterruptable spells"] = "Cast warning appearance for uninterruptable spells"
 
--[[ ruRU ]] wL["Cast Warning Color"] = "Cast Warning Color"
--[[ ruRU ]] wL["Sets the color of the cast warning"] = "Sets the color of the cast warning"
--[[ ruRU ]] wL["Backdrop Color"] = "Backdrop Color"
--[[ ruRU ]] wL["Sets the backdrop color of the cast warning"] = "Sets the backdrop color of the cast warning"
--[[ ruRU ]] wL["Border Edge Size"] = "Border Edge Size"
--[[ ruRU ]] wL["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ ruRU ]] wL["Border Inset"] = "Border Inset"
--[[ ruRU ]] wL["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ ruRU ]] wL["Border Color"] = "Border Color"
--[[ ruRU ]] wL["Sets the border color of the cast warning"] = "Sets the border color of the cast warning"
--[[ ruRU ]] wL["Border Style"] = "Border Style"
--[[ ruRU ]] wL["Sets the style of the cast warning border"] = "Sets the style of the cast warning border"
--[[ ruRU ]] wL["Texture"] = "Texture"
--[[ ruRU ]] wL["Sets the cast warning texture"] = "Sets the cast warning texture"
 
--[[ ruRU ]] wL["Cast Warning Override Enable"] = "Cast Warning Override Enable"
--[[ ruRU ]] wL["Enable changing alpha of actively casting units"] = "Enable changing alpha of actively casting units"
--[[ ruRU ]] wL["Cast Warning Override Alpha"] = "Cast Warning Override Alpha"
--[[ ruRU ]] wL["Sets the alpha of actively casting units"] = "Sets the alpha of actively casting units"
 
--[[ ruRU ]] wL["Colors"] = "Colors"
--[[ ruRU ]] wL["Customize cast warning colors (based on spell school)"] = "Customize cast warning colors (based on spell school)"
--[[ ruRU ]] wL["Default"] = "Default"
--[[ ruRU ]] wL["Sets the default color for cast warnings from unknown schools"] = "Sets the default color for cast warnings from unknown schools"
--[[ ruRU ]] wL["Physical"] = "Physical"
--[[ ruRU ]] wL["Sets the color for physical school cast warnings"] = "Sets the color for physical school cast warnings"
--[[ ruRU ]] wL["Holy"] = "Holy"
--[[ ruRU ]] wL["Sets the color for holy school cast warnings"] = "Sets the color for holy school cast warnings"
--[[ ruRU ]] wL["Fire"] = "Fire"
--[[ ruRU ]] wL["Sets the color for fire school cast warnings"] = "Sets the color for fire school cast warnings"
--[[ ruRU ]] wL["Nature"] = "Nature"
--[[ ruRU ]] wL["Sets the color for nature school cast warnings"] = "Sets the color for nature school cast warnings"
--[[ ruRU ]] wL["Frost"] = "Frost"
--[[ ruRU ]] wL["Sets the color for frost school cast warnings"] = "Sets the color for frost school cast warnings"
--[[ ruRU ]] wL["Shadow"] = "Shadow"
--[[ ruRU ]] wL["Sets the color for shadow school cast warnings"] = "Sets the color for shadow school cast warnings"
--[[ ruRU ]] wL["Arcane"] = "Arcane"
--[[ ruRU ]] wL["Sets the color for arcane school cast warnings"] = "Sets the color for arcane school cast warnings"
--[[ ruRU ]] wL["Healing"] = "Healing"
--[[ ruRU ]] wL["Sets the color for healing school cast warnings"] = "Sets the color for healing school cast warnings"
 
--[[ ruRU ]] wL["Reset to Defaults"] = "Reset to Defaults"
--[[ ruRU ]] wL["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftCastWarning"] = "AloftCastWarning"
--[[ ruRU ]] mL["Add cast warnings to Aloft unit nameplates"] = "Добавить предупреждения о вражеских заклинаниях к табличкам Aloft"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] iL["Spell Icon"] = "Spell Icon"
--[[ ruRU ]] iL["Cast warning spell icon placement options"] = "Cast warning spell icon placement options"
--[[ ruRU ]] iL["Enable"] = "Enable"
--[[ ruRU ]] iL["Enable cast warning spell icon display on the nameplate"] = "Enable cast warning spell icon display on the nameplate"
--[[ ruRU ]] iL["Position"] = "Position"
--[[ ruRU ]] iL["Adjust cast warning spell icon position"] = "Adjust cast warning spell icon position"
--[[ ruRU ]] iL["Anchor"] = "Anchor"
--[[ ruRU ]] iL["Sets the anchor for the cast warning spell icon"] = "Sets the anchor for the cast warning spell icon"
--[[ ruRU ]] iL["Anchor To"] = "Anchor To"
--[[ ruRU ]] iL["Sets the relative point on the cast warning to anchor the spell icon"] = "Sets the relative point on the cast warning to anchor the spell icon"
--[[ ruRU ]] iL["X Offset"] = "X Offset"
--[[ ruRU ]] iL["X offset of the cast warning spell icon"] = "X offset of the cast warning spell icon"
--[[ ruRU ]] iL["Y Offset"] = "Y Offset"
--[[ ruRU ]] iL["Y offset of the cast warning spell icon"] = "Y offset of the cast warning spell icon"
--[[ ruRU ]] iL["Size"] = "Size"
--[[ ruRU ]] iL["Size in pixels of the cast warning spell icon"] = "Size in pixels of the cast warning spell icon"
 
--[[ ruRU ]] iL["Shield"] = "Shield"
--[[ ruRU ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ ruRU ]] iL["Enable"] = "Enable"
--[[ ruRU ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ ruRU ]] iL["Style"] = "Style"
--[[ ruRU ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ ruRU ]] iL["Color"] = "Color"
--[[ ruRU ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
 
--[[ ruRU ]] iL["SQUARE"] = "SQUARE"
--[[ ruRU ]] iL["ROUND"] = "ROUND"
 
--[[ ruRU ]] iL["TOPLEFT"] = "TOPLEFT"
--[[ ruRU ]] iL["TOP"] = "TOP"
--[[ ruRU ]] iL["TOPRIGHT"] = "TOPRIGHT"
--[[ ruRU ]] iL["LEFT"] = "LEFT"
--[[ ruRU ]] iL["CENTER"] = "CENTER"
--[[ ruRU ]] iL["RIGHT"] = "RIGHT"
--[[ ruRU ]] iL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ ruRU ]] iL["BOTTOM"] = "BOTTOM"
--[[ ruRU ]] iL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftCastWarningSpellIcon"] = "AloftCastWarningSpellIcon"
--[[ ruRU ]] mL["Display spell icon on cast warning"] = "Display spell icon on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] nL["Spell Name"] = "Spell Name"
--[[ ruRU ]] nL["Cast warning spell name text options"] = "Cast warning spell name text options"
 
--[[ ruRU ]] nL["Enable"] = "Enable"
--[[ ruRU ]] nL["Show cast warning spell name"] = "Show cast warning spell name"
--[[ ruRU ]] nL["Display Rank"] = "Display Rank"
--[[ ruRU ]] nL["Show cast warning spell rank"] = "Show cast warning spell rank"
--[[ ruRU ]] nL["Display Min/Max Range"] = "Display Min/Max Range"
--[[ ruRU ]] nL["Show cast warning spell minimum/maximum range"] = "Show cast warning spell minimum/maximum range"
--[[ ruRU ]] nL["Display Outcome"] = "Display Outcome"
--[[ ruRU ]] nL["Show cast warning spell outcome"] = "Show cast warning spell outcome"
--[[ ruRU ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ ruRU ]] nL["Show cast warning spell outcome reason"] = "Show cast warning spell outcome reason"
--[[ ruRU ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ ruRU ]] nL["Show cast warning spell outcome reason (failure type, interrupting spell)"] = "Show cast warning spell outcome reason (failure type, interrupting spell)"
 
--[[ ruRU ]] nL["Typeface"] = "Typeface"
--[[ ruRU ]] nL["Spell name typeface options"] = "Spell name typeface options"
--[[ ruRU ]] nL["Font"] = "Font"
--[[ ruRU ]] nL["Sets the font for spell name"] = "Sets the font for spell name"
--[[ ruRU ]] nL["Font Size"] = "Font Size"
--[[ ruRU ]] nL["Sets the font height of the spell name"] = "Sets the font height of the spell name"
--[[ ruRU ]] nL["Font Shadow"] = "Font Shadow"
--[[ ruRU ]] nL["Show font shadow on spell name"] = "Show font shadow on spell name"
--[[ ruRU ]] nL["Outline"] = "Outline"
--[[ ruRU ]] nL["Sets the font outline for spell name"] = "Sets the font outline for spell name"
 
--[[ ruRU ]] nL["Alignment"] = "Alignment"
--[[ ruRU ]] nL["Sets the alignment of the spell name"] = "Sets the alignment of the spell name"
 
--[[ ruRU ]] nL["Position"] = "Position"
--[[ ruRU ]] nL["Adjust spell name position"] = "Adjust spell name position"
--[[ ruRU ]] nL["Left Offset"] = "Left Offset"
--[[ ruRU ]] nL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ ruRU ]] nL["Right Offset"] = "Right Offset"
--[[ ruRU ]] nL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ ruRU ]] nL["Vertical Offset"] = "Vertical Offset"
--[[ ruRU ]] nL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ ruRU ]] nL["Colors"] = "Colors"
--[[ ruRU ]] nL["Sets the spell name colors"] = "Sets the spell name colors"
--[[ ruRU ]] nL["Cast Color"] = "Cast Color"
--[[ ruRU ]] nL["Sets the spell name color during active casting"] = "Sets the spell name color during active casting"
--[[ ruRU ]] nL["Fade Color"] = "Fade Color"
--[[ ruRU ]] nL["Sets the spell name color during cast warning fade"] = "Sets the spell name color during cast warning fade"
 
--[[ ruRU ]] nL["None"] = "None"
--[[ ruRU ]] nL["Normal"] = "Normal"
--[[ ruRU ]] nL["Thick"] = "Thick"
 
--[[ ruRU ]] nL["LEFT"] = "LEFT"
--[[ ruRU ]] nL["CENTER"] = "CENTER"
--[[ ruRU ]] nL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftCastWarningSpellNameText"] = "AloftCastWarningSpellNameText"
--[[ ruRU ]] mL["Display spell name on cast warning"] = "Display spell name on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] tL["Spell Time"] = "Spell Time"
--[[ ruRU ]] tL["Cast warning spell time text options"] = "Cast warning spell time text options"
--[[ ruRU ]] tL["Enable"] = "Enable"
--[[ ruRU ]] tL["Show cast warning spell time"] = "Show cast warning spell time"
--[[ ruRU ]] tL["Typeface"] = "Typeface"
--[[ ruRU ]] tL["Spell time typeface options"] = "Spell time typeface options"
--[[ ruRU ]] tL["Font"] = "Font"
--[[ ruRU ]] tL["Sets the font for spell time"] = "Sets the font for spell time"
--[[ ruRU ]] tL["Font Size"] = "Font Size"
--[[ ruRU ]] tL["Sets the font height of the spell time"] = "Sets the font height of the spell time"
--[[ ruRU ]] tL["Font Shadow"] = "Font Shadow"
--[[ ruRU ]] tL["Show font shadow on spell time"] = "Show font shadow on spell time"
--[[ ruRU ]] tL["Outline"] = "Outline"
--[[ ruRU ]] tL["Sets the font outline for spell time"] = "Sets the font outline for spell time"
--[[ ruRU ]] tL["Alignment"] = "Alignment"
--[[ ruRU ]] tL["Sets the alignment of the spell time"] = "Sets the alignment of the spell time"
--[[ ruRU ]] tL["Position"] = "Position"
--[[ ruRU ]] tL["Adjust spell time position"] = "Adjust spell time position"
--[[ ruRU ]] tL["Left Offset"] = "Left Offset"
--[[ ruRU ]] tL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ ruRU ]] tL["Right Offset"] = "Right Offset"
--[[ ruRU ]] tL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ ruRU ]] tL["Vertical Offset"] = "Vertical Offset"
--[[ ruRU ]] tL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ ruRU ]] tL["Colors"] = "Colors"
--[[ ruRU ]] tL["Sets the spell time colors"] = "Sets the spell time colors"
--[[ ruRU ]] tL["Cast Color"] = "Cast Color"
--[[ ruRU ]] tL["Sets the spell time color during active casting"] = "Sets the spell time color during active casting"
--[[ ruRU ]] tL["Fade Color"] = "Fade Color"
--[[ ruRU ]] tL["Sets the spell time color during cast warning fade"] = "Sets the spell time color during cast warning fade"
 
--[[ ruRU ]] tL["None"] = "None"
--[[ ruRU ]] tL["Normal"] = "Normal"
--[[ ruRU ]] tL["Thick"] = "Thick"
 
--[[ ruRU ]] tL["LEFT"] = "LEFT"
--[[ ruRU ]] tL["CENTER"] = "CENTER"
--[[ ruRU ]] tL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftCastWarningTimeText"] = "AloftCastWarningTimeText"
--[[ ruRU ]] mL["Display time text on cast warning"] = "Display time text on cast warning"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarning", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] wL["Cast Warning"] = "Cast Warning"
--[[ zhCN ]] wL["Cast warning options"] = "Cast warning options"
 
--[[ zhCN ]] wL["Enable"] = "Enable"
--[[ zhCN ]] wL["Show cast warnings on identifiable enemy nameplates"] = "Show cast warnings on identifiable enemy nameplates"
--[[ zhCN ]] wL["Verification Interval"] = "Verification Interval"
--[[ zhCN ]] wL["Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"] = "Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"
--[[ zhCN ]] wL["Animated Cast Warning"] = "Animated Cast Warning"
--[[ zhCN ]] wL["Animate cast warnings as cast bars"] = "Animate cast warnings as cast bars"
--[[ zhCN ]] wL["Fade Duration"] = "Fade Duration"
--[[ zhCN ]] wL["Sets the fade duration of animated cast warnings (0.0 is no fade)"] = "Sets the fade duration of animated cast warnings (0.0 is no fade)"
--[[ zhCN ]] wL["Trade Skills"] = "Trade Skills"
--[[ zhCN ]] wL["Show cast warnings for trade skills"] = "Show cast warnings for trade skills"
--[[ zhCN ]] wL["Players"] = "Players"
--[[ zhCN ]] wL["Show cast warnings for players"] = "Show cast warnings for players"
--[[ zhCN ]] wL["Friendly Units"] = "Friendly Units"
--[[ zhCN ]] wL["Show cast warnings for friendly units"] = "Show cast warnings for friendly units"
 
--[[ zhCN ]] wL["Position"] = "Position"
--[[ zhCN ]] wL["Adjust the cast warning's position"] = "Adjust the cast warning's position"
--[[ zhCN ]] wL["Left Offset"] = "Left Offset"
--[[ zhCN ]] wL["Sets the offset of the left of the cast warning"] = "Sets the offset of the left of the cast warning"
--[[ zhCN ]] wL["Right Offset"] = "Right Offset"
--[[ zhCN ]] wL["Sets the offset of the right of the cast warning"] = "Sets the offset of the right of the cast warning"
--[[ zhCN ]] wL["Vertical Offset"] = "Vertical Offset"
--[[ zhCN ]] wL["Sets the vertical offset of the cast warning"] = "Sets the vertical offset of the cast warning"
 
--[[ zhCN ]] wL["Height"] = "Height"
--[[ zhCN ]] wL["Sets the height of the cast warning"] = "Sets the height of the cast warning"
 
--[[ zhCN ]] wL["Interruptable Cast Warning"] = "Interruptable Cast Warning"
--[[ zhCN ]] wL["Cast warning appearance for interruptable spells"] = "Cast warning appearance for interruptable spells"
--[[ zhCN ]] wL["Uninterruptable Cast Warning"] = "Uninterruptable Cast Warning"
--[[ zhCN ]] wL["Cast warning appearance for uninterruptable spells"] = "Cast warning appearance for uninterruptable spells"
 
--[[ zhCN ]] wL["Cast Warning Color"] = "Cast Warning Color"
--[[ zhCN ]] wL["Sets the color of the cast warning"] = "Sets the color of the cast warning"
--[[ zhCN ]] wL["Backdrop Color"] = "Backdrop Color"
--[[ zhCN ]] wL["Sets the backdrop color of the cast warning"] = "Sets the backdrop color of the cast warning"
--[[ zhCN ]] wL["Border Edge Size"] = "Border Edge Size"
--[[ zhCN ]] wL["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ zhCN ]] wL["Border Inset"] = "Border Inset"
--[[ zhCN ]] wL["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ zhCN ]] wL["Border Color"] = "Border Color"
--[[ zhCN ]] wL["Sets the border color of the cast warning"] = "Sets the border color of the cast warning"
--[[ zhCN ]] wL["Border Style"] = "Border Style"
--[[ zhCN ]] wL["Sets the style of the cast warning border"] = "Sets the style of the cast warning border"
--[[ zhCN ]] wL["Texture"] = "Texture"
--[[ zhCN ]] wL["Sets the cast warning texture"] = "Sets the cast warning texture"
 
--[[ zhCN ]] wL["Cast Warning Alpha Override Enable"] = "Cast Warning Alpha Override Enable"
--[[ zhCN ]] wL["Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"] = "Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"
--[[ zhCN ]] wL["Cast Warning Alpha Override"] = "Cast Warning Alpha Override"
--[[ zhCN ]] wL["Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"] = "Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"
 
--[[ zhCN ]] wL["Colors"] = "Colors"
--[[ zhCN ]] wL["Customize cast warning colors (based on spell school)"] = "Customize cast warning colors (based on spell school)"
--[[ zhCN ]] wL["Default"] = "Default"
--[[ zhCN ]] wL["Sets the default color for cast warnings from unknown schools"] = "Sets the default color for cast warnings from unknown schools"
--[[ zhCN ]] wL["Physical"] = "Physical"
--[[ zhCN ]] wL["Sets the color for physical school cast warnings"] = "Sets the color for physical school cast warnings"
--[[ zhCN ]] wL["Holy"] = "Holy"
--[[ zhCN ]] wL["Sets the color for holy school cast warnings"] = "Sets the color for holy school cast warnings"
--[[ zhCN ]] wL["Fire"] = "Fire"
--[[ zhCN ]] wL["Sets the color for fire school cast warnings"] = "Sets the color for fire school cast warnings"
--[[ zhCN ]] wL["Nature"] = "Nature"
--[[ zhCN ]] wL["Sets the color for nature school cast warnings"] = "Sets the color for nature school cast warnings"
--[[ zhCN ]] wL["Frost"] = "Frost"
--[[ zhCN ]] wL["Sets the color for frost school cast warnings"] = "Sets the color for frost school cast warnings"
--[[ zhCN ]] wL["Shadow"] = "Shadow"
--[[ zhCN ]] wL["Sets the color for shadow school cast warnings"] = "Sets the color for shadow school cast warnings"
--[[ zhCN ]] wL["Arcane"] = "Arcane"
--[[ zhCN ]] wL["Sets the color for arcane school cast warnings"] = "Sets the color for arcane school cast warnings"
--[[ zhCN ]] wL["Healing"] = "Healing"
--[[ zhCN ]] wL["Sets the color for healing school cast warnings"] = "Sets the color for healing school cast warnings"
 
--[[ zhCN ]] wL["Reset to Defaults"] = "Reset to Defaults"
--[[ zhCN ]] wL["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftCastWarning"] = "AloftCastWarning"
--[[ zhCN ]] mL["Add cast warnings to Aloft unit nameplates"] = "Add cast warnings to Aloft unit nameplates"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] iL["Spell Icon"] = "Spell Icon"
--[[ zhCN ]] iL["Cast warning spell icon placement options"] = "Cast warning spell icon placement options"
--[[ zhCN ]] iL["Enable"] = "Enable"
--[[ zhCN ]] iL["Enable cast warning spell icon display on the nameplate"] = "Enable cast warning spell icon display on the nameplate"
--[[ zhCN ]] iL["Position"] = "Position"
--[[ zhCN ]] iL["Adjust cast warning spell icon position"] = "Adjust cast warning spell icon position"
--[[ zhCN ]] iL["Anchor"] = "Anchor"
--[[ zhCN ]] iL["Sets the anchor for the cast warning spell icon"] = "Sets the anchor for the cast warning spell icon"
--[[ zhCN ]] iL["Anchor To"] = "Anchor To"
--[[ zhCN ]] iL["Sets the relative point on the cast warning to anchor the spell icon"] = "Sets the relative point on the cast warning to anchor the spell icon"
--[[ zhCN ]] iL["X Offset"] = "X Offset"
--[[ zhCN ]] iL["X offset of the cast warning spell icon"] = "X offset of the cast warning spell icon"
--[[ zhCN ]] iL["Y Offset"] = "Y Offset"
--[[ zhCN ]] iL["Y offset of the cast warning spell icon"] = "Y offset of the cast warning spell icon"
--[[ zhCN ]] iL["Size"] = "Size"
--[[ zhCN ]] iL["Size in pixels of the cast warning spell icon"] = "Size in pixels of the cast warning spell icon"
 
--[[ zhCN ]] iL["Shield"] = "Shield"
--[[ zhCN ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ zhCN ]] iL["Enable"] = "Enable"
--[[ zhCN ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ zhCN ]] iL["Style"] = "Style"
--[[ zhCN ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ zhCN ]] iL["Color"] = "Color"
--[[ zhCN ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
 
--[[ zhCN ]] iL["SQUARE"] = "SQUARE"
--[[ zhCN ]] iL["ROUND"] = "ROUND"
 
--[[ zhCN ]] iL["TOPLEFT"] = "TOPLEFT"
--[[ zhCN ]] iL["TOP"] = "TOP"
--[[ zhCN ]] iL["TOPRIGHT"] = "TOPRIGHT"
--[[ zhCN ]] iL["LEFT"] = "LEFT"
--[[ zhCN ]] iL["CENTER"] = "CENTER"
--[[ zhCN ]] iL["RIGHT"] = "RIGHT"
--[[ zhCN ]] iL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ zhCN ]] iL["BOTTOM"] = "BOTTOM"
--[[ zhCN ]] iL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftCastWarningSpellIcon"] = "AloftCastWarningSpellIcon"
--[[ zhCN ]] mL["Display spell icon on cast warning"] = "Display spell icon on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] nL["Spell Name"] = "Spell Name"
--[[ zhCN ]] nL["Cast warning spell name text options"] = "Cast warning spell name text options"
 
--[[ zhCN ]] nL["Enable"] = "Enable"
--[[ zhCN ]] nL["Show cast warning spell name"] = "Show cast warning spell name"
--[[ zhCN ]] nL["Display Rank"] = "Display Rank"
--[[ zhCN ]] nL["Show cast warning spell rank"] = "Show cast warning spell rank"
--[[ zhCN ]] nL["Display Min/Max Range"] = "Display Min/Max Range"
--[[ zhCN ]] nL["Show cast warning spell minimum/maximum range"] = "Show cast warning spell minimum/maximum range"
--[[ zhCN ]] nL["Display Outcome"] = "Display Outcome"
--[[ zhCN ]] nL["Show cast warning spell outcome"] = "Show cast warning spell outcome"
--[[ zhCN ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ zhCN ]] nL["Show cast warning spell outcome reason"] = "Show cast warning spell outcome reason"
--[[ zhCN ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ zhCN ]] nL["Show cast warning spell outcome reason (failure type, interrupting spell)"] = "Show cast warning spell outcome reason (failure type, interrupting spell)"
 
--[[ zhCN ]] nL["Typeface"] = "Typeface"
--[[ zhCN ]] nL["Spell name typeface options"] = "Spell name typeface options"
--[[ zhCN ]] nL["Font"] = "Font"
--[[ zhCN ]] nL["Sets the font for spell name"] = "Sets the font for spell name"
--[[ zhCN ]] nL["Font Size"] = "Font Size"
--[[ zhCN ]] nL["Sets the font height of the spell name"] = "Sets the font height of the spell name"
--[[ zhCN ]] nL["Font Shadow"] = "Font Shadow"
--[[ zhCN ]] nL["Show font shadow on spell name"] = "Show font shadow on spell name"
--[[ zhCN ]] nL["Outline"] = "Outline"
--[[ zhCN ]] nL["Sets the font outline for spell name"] = "Sets the font outline for spell name"
 
--[[ zhCN ]] nL["Alignment"] = "Alignment"
--[[ zhCN ]] nL["Sets the alignment of the spell name"] = "Sets the alignment of the spell name"
 
--[[ zhCN ]] nL["Position"] = "Position"
--[[ zhCN ]] nL["Adjust spell name position"] = "Adjust spell name position"
--[[ zhCN ]] nL["Left Offset"] = "Left Offset"
--[[ zhCN ]] nL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ zhCN ]] nL["Right Offset"] = "Right Offset"
--[[ zhCN ]] nL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ zhCN ]] nL["Vertical Offset"] = "Vertical Offset"
--[[ zhCN ]] nL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ zhCN ]] nL["Colors"] = "Colors"
--[[ zhCN ]] nL["Sets the spell name colors"] = "Sets the spell name colors"
--[[ zhCN ]] nL["Cast Color"] = "Cast Color"
--[[ zhCN ]] nL["Sets the spell name color during active casting"] = "Sets the spell name color during active casting"
--[[ zhCN ]] nL["Fade Color"] = "Fade Color"
--[[ zhCN ]] nL["Sets the spell name color during cast warning fade"] = "Sets the spell name color during cast warning fade"
 
--[[ zhCN ]] nL["None"] = "None"
--[[ zhCN ]] nL["Normal"] = "Normal"
--[[ zhCN ]] nL["Thick"] = "Thick"
 
--[[ zhCN ]] nL["LEFT"] = "LEFT"
--[[ zhCN ]] nL["CENTER"] = "CENTER"
--[[ zhCN ]] nL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftCastWarningSpellNameText"] = "AloftCastWarningSpellNameText"
--[[ zhCN ]] mL["Display spell name on cast warning"] = "Display spell name on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] tL["Spell Time"] = "Spell Time"
--[[ zhCN ]] tL["Cast warning spell time text options"] = "Cast warning spell time text options"
--[[ zhCN ]] tL["Enable"] = "Enable"
--[[ zhCN ]] tL["Show cast warning spell time"] = "Show cast warning spell time"
--[[ zhCN ]] tL["Typeface"] = "Typeface"
--[[ zhCN ]] tL["Spell time typeface options"] = "Spell time typeface options"
--[[ zhCN ]] tL["Font"] = "Font"
--[[ zhCN ]] tL["Sets the font for spell time"] = "Sets the font for spell time"
--[[ zhCN ]] tL["Font Size"] = "Font Size"
--[[ zhCN ]] tL["Sets the font height of the spell time"] = "Sets the font height of the spell time"
--[[ zhCN ]] tL["Font Shadow"] = "Font Shadow"
--[[ zhCN ]] tL["Show font shadow on spell time"] = "Show font shadow on spell time"
--[[ zhCN ]] tL["Outline"] = "Outline"
--[[ zhCN ]] tL["Sets the font outline for spell time"] = "Sets the font outline for spell time"
--[[ zhCN ]] tL["Alignment"] = "Alignment"
--[[ zhCN ]] tL["Sets the alignment of the spell time"] = "Sets the alignment of the spell time"
--[[ zhCN ]] tL["Position"] = "Position"
--[[ zhCN ]] tL["Adjust spell time position"] = "Adjust spell time position"
--[[ zhCN ]] tL["Left Offset"] = "Left Offset"
--[[ zhCN ]] tL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ zhCN ]] tL["Right Offset"] = "Right Offset"
--[[ zhCN ]] tL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ zhCN ]] tL["Vertical Offset"] = "Vertical Offset"
--[[ zhCN ]] tL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ zhCN ]] tL["Colors"] = "Colors"
--[[ zhCN ]] tL["Sets the spell time colors"] = "Sets the spell time colors"
--[[ zhCN ]] tL["Cast Color"] = "Cast Color"
--[[ zhCN ]] tL["Sets the spell time color during active casting"] = "Sets the spell time color during active casting"
--[[ zhCN ]] tL["Fade Color"] = "Fade Color"
--[[ zhCN ]] tL["Sets the spell time color during cast warning fade"] = "Sets the spell time color during cast warning fade"
 
--[[ zhCN ]] tL["None"] = "None"
--[[ zhCN ]] tL["Normal"] = "Normal"
--[[ zhCN ]] tL["Thick"] = "Thick"
 
--[[ zhCN ]] tL["LEFT"] = "LEFT"
--[[ zhCN ]] tL["CENTER"] = "CENTER"
--[[ zhCN ]] tL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftCastWarningTimeText"] = "AloftCastWarningTimeText"
--[[ zhCN ]] mL["Display time text on cast warning"] = "Display time text on cast warning"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarning", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] wL["Cast Warning"] = "Cast Warning"
--[[ zhTW ]] wL["Cast warning options"] = "Cast warning options"
 
--[[ zhTW ]] wL["Enable"] = "Enable"
--[[ zhTW ]] wL["Show cast warnings on identifiable enemy nameplates"] = "Show cast warnings on identifiable enemy nameplates"
--[[ zhTW ]] wL["Verification Interval"] = "Verification Interval"
--[[ zhTW ]] wL["Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"] = "Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"
--[[ zhTW ]] wL["Animated Cast Warning"] = "Animated Cast Warning"
--[[ zhTW ]] wL["Animate cast warnings as cast bars"] = "Animate cast warnings as cast bars"
--[[ zhTW ]] wL["Fade Duration"] = "Fade Duration"
--[[ zhTW ]] wL["Sets the fade duration of animated cast warnings (0.0 is no fade)"] = "Sets the fade duration of animated cast warnings (0.0 is no fade)"
--[[ zhTW ]] wL["Trade Skills"] = "Trade Skills"
--[[ zhTW ]] wL["Show cast warnings for trade skills"] = "Show cast warnings for trade skills"
--[[ zhTW ]] wL["Players"] = "Players"
--[[ zhTW ]] wL["Show cast warnings for players"] = "Show cast warnings for players"
--[[ zhTW ]] wL["Friendly Units"] = "Friendly Units"
--[[ zhTW ]] wL["Show cast warnings for friendly units"] = "Show cast warnings for friendly units"
 
--[[ zhTW ]] wL["Position"] = "Position"
--[[ zhTW ]] wL["Adjust the cast warning's position"] = "Adjust the cast warning's position"
--[[ zhTW ]] wL["Left Offset"] = "Left Offset"
--[[ zhTW ]] wL["Sets the offset of the left of the cast warning"] = "Sets the offset of the left of the cast warning"
--[[ zhTW ]] wL["Right Offset"] = "Right Offset"
--[[ zhTW ]] wL["Sets the offset of the right of the cast warning"] = "Sets the offset of the right of the cast warning"
--[[ zhTW ]] wL["Vertical Offset"] = "Vertical Offset"
--[[ zhTW ]] wL["Sets the vertical offset of the cast warning"] = "Sets the vertical offset of the cast warning"
 
--[[ zhTW ]] wL["Height"] = "Height"
--[[ zhTW ]] wL["Sets the height of the cast warning"] = "Sets the height of the cast warning"
 
--[[ zhTW ]] wL["Interruptable Cast Warning"] = "Interruptable Cast Warning"
--[[ zhTW ]] wL["Cast warning appearance for interruptable spells"] = "Cast warning appearance for interruptable spells"
--[[ zhTW ]] wL["Uninterruptable Cast Warning"] = "Uninterruptable Cast Warning"
--[[ zhTW ]] wL["Cast warning appearance for uninterruptable spells"] = "Cast warning appearance for uninterruptable spells"
 
--[[ zhTW ]] wL["Cast Warning Color"] = "Cast Warning Color"
--[[ zhTW ]] wL["Sets the color of the cast warning"] = "Sets the color of the cast warning"
--[[ zhTW ]] wL["Backdrop Color"] = "Backdrop Color"
--[[ zhTW ]] wL["Sets the backdrop color of the cast warning"] = "Sets the backdrop color of the cast warning"
--[[ zhTW ]] wL["Border Edge Size"] = "Border Edge Size"
--[[ zhTW ]] wL["Sets the thickness of the border"] = "Sets the thickness of the border"
--[[ zhTW ]] wL["Border Inset"] = "Border Inset"
--[[ zhTW ]] wL["Sets the padding aroundthe border"] = "Sets the padding around the border"
--[[ zhTW ]] wL["Border Color"] = "Border Color"
--[[ zhTW ]] wL["Sets the border color of the cast warning"] = "Sets the border color of the cast warning"
--[[ zhTW ]] wL["Border Style"] = "Border Style"
--[[ zhTW ]] wL["Sets the style of the cast warning border"] = "Sets the style of the cast warning border"
--[[ zhTW ]] wL["Texture"] = "Texture"
--[[ zhTW ]] wL["Sets the cast warning texture"] = "Sets the cast warning texture"
 
--[[ zhTW ]] wL["Cast Warning Alpha Override Enable"] = "Cast Warning Alpha Override Enable"
--[[ zhTW ]] wL["Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"] = "Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"
--[[ zhTW ]] wL["Cast Warning Alpha Override"] = "Cast Warning Alpha Override"
--[[ zhTW ]] wL["Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"] = "Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"
 
--[[ zhTW ]] wL["Colors"] = "Colors"
--[[ zhTW ]] wL["Customize cast warning colors (based on spell school)"] = "Customize cast warning colors (based on spell school)"
--[[ zhTW ]] wL["Default"] = "Default"
--[[ zhTW ]] wL["Sets the default color for cast warnings from unknown schools"] = "Sets the default color for cast warnings from unknown schools"
--[[ zhTW ]] wL["Physical"] = "Physical"
--[[ zhTW ]] wL["Sets the color for physical school cast warnings"] = "Sets the color for physical school cast warnings"
--[[ zhTW ]] wL["Holy"] = "Holy"
--[[ zhTW ]] wL["Sets the color for holy school cast warnings"] = "Sets the color for holy school cast warnings"
--[[ zhTW ]] wL["Fire"] = "Fire"
--[[ zhTW ]] wL["Sets the color for fire school cast warnings"] = "Sets the color for fire school cast warnings"
--[[ zhTW ]] wL["Nature"] = "Nature"
--[[ zhTW ]] wL["Sets the color for nature school cast warnings"] = "Sets the color for nature school cast warnings"
--[[ zhTW ]] wL["Frost"] = "Frost"
--[[ zhTW ]] wL["Sets the color for frost school cast warnings"] = "Sets the color for frost school cast warnings"
--[[ zhTW ]] wL["Shadow"] = "Shadow"
--[[ zhTW ]] wL["Sets the color for shadow school cast warnings"] = "Sets the color for shadow school cast warnings"
--[[ zhTW ]] wL["Arcane"] = "Arcane"
--[[ zhTW ]] wL["Sets the color for arcane school cast warnings"] = "Sets the color for arcane school cast warnings"
--[[ zhTW ]] wL["Healing"] = "Healing"
--[[ zhTW ]] wL["Sets the color for healing school cast warnings"] = "Sets the color for healing school cast warnings"
 
--[[ zhTW ]] wL["Reset to Defaults"] = "Reset to Defaults"
--[[ zhTW ]] wL["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftCastWarning"] = "AloftCastWarning"
--[[ zhTW ]] mL["Add cast warnings to Aloft unit nameplates"] = "Add cast warnings to Aloft unit nameplates"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellIcon", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] iL["Spell Icon"] = "Spell Icon"
--[[ zhTW ]] iL["Cast warning spell icon placement options"] = "Cast warning spell icon placement options"
--[[ zhTW ]] iL["Enable"] = "Enable"
--[[ zhTW ]] iL["Enable cast warning spell icon display on the nameplate"] = "Enable cast warning spell icon display on the nameplate"
--[[ zhTW ]] iL["Position"] = "Position"
--[[ zhTW ]] iL["Adjust cast warning spell icon position"] = "Adjust cast warning spell icon position"
--[[ zhTW ]] iL["Anchor"] = "Anchor"
--[[ zhTW ]] iL["Sets the anchor for the cast warning spell icon"] = "Sets the anchor for the cast warning spell icon"
--[[ zhTW ]] iL["Anchor To"] = "Anchor To"
--[[ zhTW ]] iL["Sets the relative point on the cast warning to anchor the spell icon"] = "Sets the relative point on the cast warning to anchor the spell icon"
--[[ zhTW ]] iL["X Offset"] = "X Offset"
--[[ zhTW ]] iL["X offset of the cast warning spell icon"] = "X offset of the cast warning spell icon"
--[[ zhTW ]] iL["Y Offset"] = "Y Offset"
--[[ zhTW ]] iL["Y offset of the cast warning spell icon"] = "Y offset of the cast warning spell icon"
--[[ zhTW ]] iL["Size"] = "Size"
--[[ zhTW ]] iL["Size in pixels of the cast warning spell icon"] = "Size in pixels of the cast warning spell icon"
 
--[[ zhTW ]] iL["Shield"] = "Shield"
--[[ zhTW ]] iL["Shows a shield graphic around an uninterruptable spell icon"] = "Shows a shield graphic around an uninterruptable spell icon"
--[[ zhTW ]] iL["Enable"] = "Enable"
--[[ zhTW ]] iL["Enables the shield graphic"] = "Enables the shield graphic"
--[[ zhTW ]] iL["Style"] = "Style"
--[[ zhTW ]] iL["Sets the shield graphic style"] = "Sets the shield graphic style"
--[[ zhTW ]] iL["Color"] = "Color"
--[[ zhTW ]] iL["Sets the shield graphic color"] = "Sets the shield graphic color"
 
--[[ zhTW ]] iL["SQUARE"] = "SQUARE"
--[[ zhTW ]] iL["ROUND"] = "ROUND"
 
--[[ zhTW ]] iL["TOPLEFT"] = "TOPLEFT"
--[[ zhTW ]] iL["TOP"] = "TOP"
--[[ zhTW ]] iL["TOPRIGHT"] = "TOPRIGHT"
--[[ zhTW ]] iL["LEFT"] = "LEFT"
--[[ zhTW ]] iL["CENTER"] = "CENTER"
--[[ zhTW ]] iL["RIGHT"] = "RIGHT"
--[[ zhTW ]] iL["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ zhTW ]] iL["BOTTOM"] = "BOTTOM"
--[[ zhTW ]] iL["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftCastWarningSpellIcon"] = "AloftCastWarningSpellIcon"
--[[ zhTW ]] mL["Display spell icon on cast warning"] = "Display spell icon on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellNameText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] nL["Spell Name"] = "Spell Name"
--[[ zhTW ]] nL["Cast warning spell name text options"] = "Cast warning spell name text options"
 
--[[ zhTW ]] nL["Enable"] = "Enable"
--[[ zhTW ]] nL["Show cast warning spell name"] = "Show cast warning spell name"
--[[ zhTW ]] nL["Display Rank"] = "Display Rank"
--[[ zhTW ]] nL["Show cast warning spell rank"] = "Show cast warning spell rank"
--[[ zhTW ]] nL["Display Min/Max Range"] = "Display Min/Max Range"
--[[ zhTW ]] nL["Show cast warning spell minimum/maximum range"] = "Show cast warning spell minimum/maximum range"
--[[ zhTW ]] nL["Display Outcome"] = "Display Outcome"
--[[ zhTW ]] nL["Show cast warning spell outcome"] = "Show cast warning spell outcome"
--[[ zhTW ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ zhTW ]] nL["Show cast warning spell outcome reason"] = "Show cast warning spell outcome reason"
--[[ zhTW ]] nL["Display Outcome Reason"] = "Display Outcome Reason"
--[[ zhTW ]] nL["Show cast warning spell outcome reason (failure type, interrupting spell)"] = "Show cast warning spell outcome reason (failure type, interrupting spell)"
 
--[[ zhTW ]] nL["Typeface"] = "Typeface"
--[[ zhTW ]] nL["Spell name typeface options"] = "Spell name typeface options"
--[[ zhTW ]] nL["Font"] = "Font"
--[[ zhTW ]] nL["Sets the font for spell name"] = "Sets the font for spell name"
--[[ zhTW ]] nL["Font Size"] = "Font Size"
--[[ zhTW ]] nL["Sets the font height of the spell name"] = "Sets the font height of the spell name"
--[[ zhTW ]] nL["Font Shadow"] = "Font Shadow"
--[[ zhTW ]] nL["Show font shadow on spell name"] = "Show font shadow on spell name"
--[[ zhTW ]] nL["Outline"] = "Outline"
--[[ zhTW ]] nL["Sets the font outline for spell name"] = "Sets the font outline for spell name"
 
--[[ zhTW ]] nL["Alignment"] = "Alignment"
--[[ zhTW ]] nL["Sets the alignment of the spell name"] = "Sets the alignment of the spell name"
 
--[[ zhTW ]] nL["Position"] = "Position"
--[[ zhTW ]] nL["Adjust spell name position"] = "Adjust spell name position"
--[[ zhTW ]] nL["Left Offset"] = "Left Offset"
--[[ zhTW ]] nL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ zhTW ]] nL["Right Offset"] = "Right Offset"
--[[ zhTW ]] nL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ zhTW ]] nL["Vertical Offset"] = "Vertical Offset"
--[[ zhTW ]] nL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ zhTW ]] nL["Colors"] = "Colors"
--[[ zhTW ]] nL["Sets the spell name colors"] = "Sets the spell name colors"
--[[ zhTW ]] nL["Cast Color"] = "Cast Color"
--[[ zhTW ]] nL["Sets the spell name color during active casting"] = "Sets the spell name color during active casting"
--[[ zhTW ]] nL["Fade Color"] = "Fade Color"
--[[ zhTW ]] nL["Sets the spell name color during cast warning fade"] = "Sets the spell name color during cast warning fade"
 
--[[ zhTW ]] nL["None"] = "None"
--[[ zhTW ]] nL["Normal"] = "Normal"
--[[ zhTW ]] nL["Thick"] = "Thick"
 
--[[ zhTW ]] nL["LEFT"] = "LEFT"
--[[ zhTW ]] nL["CENTER"] = "CENTER"
--[[ zhTW ]] nL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftCastWarningSpellNameText"] = "AloftCastWarningSpellNameText"
--[[ zhTW ]] mL["Display spell name on cast warning"] = "Display spell name on cast warning"
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningTimeText", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] tL["Spell Time"] = "Spell Time"
--[[ zhTW ]] tL["Cast warning spell time text options"] = "Cast warning spell time text options"
--[[ zhTW ]] tL["Enable"] = "Enable"
--[[ zhTW ]] tL["Show cast warning spell time"] = "Show cast warning spell time"
--[[ zhTW ]] tL["Typeface"] = "Typeface"
--[[ zhTW ]] tL["Spell time typeface options"] = "Spell time typeface options"
--[[ zhTW ]] tL["Font"] = "Font"
--[[ zhTW ]] tL["Sets the font for spell time"] = "Sets the font for spell time"
--[[ zhTW ]] tL["Font Size"] = "Font Size"
--[[ zhTW ]] tL["Sets the font height of the spell time"] = "Sets the font height of the spell time"
--[[ zhTW ]] tL["Font Shadow"] = "Font Shadow"
--[[ zhTW ]] tL["Show font shadow on spell time"] = "Show font shadow on spell time"
--[[ zhTW ]] tL["Outline"] = "Outline"
--[[ zhTW ]] tL["Sets the font outline for spell time"] = "Sets the font outline for spell time"
--[[ zhTW ]] tL["Alignment"] = "Alignment"
--[[ zhTW ]] tL["Sets the alignment of the spell time"] = "Sets the alignment of the spell time"
--[[ zhTW ]] tL["Position"] = "Position"
--[[ zhTW ]] tL["Adjust spell time position"] = "Adjust spell time position"
--[[ zhTW ]] tL["Left Offset"] = "Left Offset"
--[[ zhTW ]] tL["Sets the offset of the left of the text"] = "Sets the offset of the left of the text"
--[[ zhTW ]] tL["Right Offset"] = "Right Offset"
--[[ zhTW ]] tL["Sets the offset of the right of the text"] = "Sets the offset of the right of the text"
--[[ zhTW ]] tL["Vertical Offset"] = "Vertical Offset"
--[[ zhTW ]] tL["Sets the vertical offset of the text"] = "Sets the vertical offset of the text"
 
--[[ zhTW ]] tL["Colors"] = "Colors"
--[[ zhTW ]] tL["Sets the spell time colors"] = "Sets the spell time colors"
--[[ zhTW ]] tL["Cast Color"] = "Cast Color"
--[[ zhTW ]] tL["Sets the spell time color during active casting"] = "Sets the spell time color during active casting"
--[[ zhTW ]] tL["Fade Color"] = "Fade Color"
--[[ zhTW ]] tL["Sets the spell time color during cast warning fade"] = "Sets the spell time color during cast warning fade"
 
--[[ zhTW ]] tL["None"] = "None"
--[[ zhTW ]] tL["Normal"] = "Normal"
--[[ zhTW ]] tL["Thick"] = "Thick"
 
--[[ zhTW ]] tL["LEFT"] = "LEFT"
--[[ zhTW ]] tL["CENTER"] = "CENTER"
--[[ zhTW ]] tL["RIGHT"] = "RIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftCastWarningTimeText"] = "AloftCastWarningTimeText"
--[[ zhTW ]] mL["Display time text on cast warning"] = "Display time text on cast warning"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarning", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCastWarningOptions = setmetatable(wL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
local wL = nil
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellIcon", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCastWarningSpellIconOptions = setmetatable(iL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
local iL = nil
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellNameText", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCastWarningSpellNameTextOptions = setmetatable(nL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
local nL = nil
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningTimeText", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftCastWarningTimeTextOptions = setmetatable(tL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
local tL = nil
 
-----------------------------------------------------------------------------
 
end)
 
-- ChatFrame7:AddMessage("AloftCastWarningLocale: have all initializers")
 
-----------------------------------------------------------------------------
AloftOptions/AloftCastWarning/AloftCastWarningTimeTextOptions.lua New file
0,0 → 1,198
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningTimeText", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCastWarningTimeTextOptions
if not L then return end
 
local AloftCastWarning = Aloft:GetModule("CastWarning", true)
if not AloftCastWarning then return end
 
local AloftCastWarningTimeText = Aloft:GetModule("CastWarningTimeText", true)
if not AloftCastWarningTimeText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.castWarning.args.castWarningTimeText =
{
type = 'group',
name = L["Spell Time"],
desc = L["Cast warning spell time text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningTimeText:IsEnabled() or not AloftCastWarningTimeText.db or not AloftCastWarningTimeText.db.profile end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show cast warning spell time"],
get = function(i) return AloftCastWarningTimeText.db.profile.enable end,
set = function(i, v) AloftCastWarningTimeText.db.profile.enable = v AloftCastWarningTimeText:UpdateAll() end,
order = 1
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Spell time typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningTimeText:IsEnabled() or not AloftCastWarningTimeText.db or not AloftCastWarningTimeText.db.profile or not AloftCastWarningTimeText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for spell time"],
get = function(i)
for k, v in pairs(Aloft.Options.args.castWarning.args.castWarningTimeText.args.typeface.args.font.values) do
if v == AloftCastWarningTimeText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftCastWarningTimeText.db.profile.font = Aloft.Options.args.castWarning.args.castWarningTimeText.args.typeface.args.font.values[v]
AloftCastWarningTimeText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the spell time"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftCastWarningTimeText.db.profile.fontSize end,
set = function(i, value) AloftCastWarningTimeText.db.profile.fontSize = value AloftCastWarningTimeText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on spell time"],
get = function(i) return AloftCastWarningTimeText.db.profile.shadow end,
set = function(i, v) AloftCastWarningTimeText.db.profile.shadow = v AloftCastWarningTimeText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the font outline for spell time"],
get = function(i) return AloftCastWarningTimeText.db.profile.outline end,
set = function(i, value) AloftCastWarningTimeText.db.profile.outline = value AloftCastWarningTimeText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
alignment =
{
type = 'select',
width = 'full',
name = L["Alignment"],
desc = L["Sets the alignment of the spell time"],
disabled = function(i) return not AloftCastWarningTimeText.db.profile.enable end,
get = function(i) return AloftCastWarningTimeText.db.profile.alignment end,
set = function(i, value) AloftCastWarningTimeText.db.profile.alignment = value AloftCastWarningTimeText:UpdateAll() end,
values = {["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust spell time position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningTimeText:IsEnabled() or not AloftCastWarningTimeText.db or not AloftCastWarningTimeText.db.profile or not AloftCastWarningTimeText.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastWarningTimeText.db.profile.offsets.left end,
set = function(i, v) AloftCastWarningTimeText.db.profile.offsets.left = v AloftCastWarningTimeText:UpdateAll() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastWarningTimeText.db.profile.offsets.right end,
set = function(i, v) AloftCastWarningTimeText.db.profile.offsets.right = v AloftCastWarningTimeText:UpdateAll() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastWarningTimeText.db.profile.offsets.vertical end,
set = function(i, v) AloftCastWarningTimeText.db.profile.offsets.vertical = v AloftCastWarningTimeText:UpdateAll() end
},
},
},
color =
{
type = 'group',
name = L["Colors"],
desc = L["Sets the spell time colors"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningTimeText:IsEnabled() or not AloftCastWarningTimeText.db or not AloftCastWarningTimeText.db.profile or not AloftCastWarningTimeText.db.profile.enable end,
args =
{
castColor =
{
type = 'color',
width = 'full',
name = L["Cast Color"],
desc = L["Sets the spell time color during active casting"],
get = function(i) return unpack(AloftCastWarningTimeText.db.profile.castColor) end,
set = function(i, r, g, b, a) AloftCastWarningTimeText.db.profile.castColor = { r, g, b, a } AloftCastWarningSpellNameText:UpdateAll() end,
hasAlpha = true
},
fadeColor =
{
type = 'color',
width = 'full',
name = L["Fade Color"],
desc = L["Sets the spell time color during cast warning fade"],
get = function(i) return unpack(AloftCastWarningTimeText.db.profile.fadeColor) end,
set = function(i, r, g, b, a) AloftCastWarningTimeText.db.profile.fadeColor = { r, g, b, a } AloftCastWarningSpellNameText:UpdateAll() end,
hasAlpha = true
},
},
},
},
}
 
-----------------------------------------------------------------------------
 
end)
\ No newline at end of file
AloftOptions/AloftCastWarning/AloftCastWarningModuleOptions.lua New file
0,0 → 1,65
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftCastWarning =
{
type = 'toggle',
width = 'full',
name = L["AloftCastWarning"],
desc = L["Add cast warnings to Aloft unit nameplates"],
disabled = function(i) return AloftModules.db.profile.AloftCastWarningSpellIcon or AloftModules.db.profile.AloftCastWarningSpellNameText or AloftModules.db.profile.AloftCastWarningTimeText end,
get = function(i) return AloftModules.db.profile.AloftCastWarning end,
set = function(i, v) AloftModules.db.profile.AloftCastWarning = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftCastWarningSpellIcon =
{
type = 'toggle',
width = 'full',
name = L["AloftCastWarningSpellIcon"],
desc = L["Display spell icon on cast warning"],
disabled = function(i) return not AloftModules.db.profile.AloftCastWarning end,
get = function(i) return AloftModules.db.profile.AloftCastWarningSpellIcon end,
set = function(i, v) AloftModules.db.profile.AloftCastWarningSpellIcon = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftCastWarningSpellNameText =
{
type = 'toggle',
width = 'full',
name = L["AloftCastWarningSpellNameText"],
desc = L["Display spell name on cast warning"],
disabled = function(i) return not AloftModules.db.profile.AloftCastWarning end,
get = function(i) return AloftModules.db.profile.AloftCastWarningSpellNameText end,
set = function(i, v) AloftModules.db.profile.AloftCastWarningSpellNameText = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftCastWarningTimeText =
{
type = 'toggle',
width = 'full',
name = L["AloftCastWarningTimeText"],
desc = L["Display time text on cast warning"],
disabled = function(i) return not AloftModules.db.profile.AloftCastWarning end,
get = function(i) return AloftModules.db.profile.AloftCastWarningTimeText end,
set = function(i, v) AloftModules.db.profile.AloftCastWarningTimeText = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftCastWarning/AloftCastWarningSpellNameTextOptions.lua New file
0,0 → 1,242
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellNameText", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCastWarningSpellNameTextOptions
if not L then return end
 
local AloftCastWarning = Aloft:GetModule("CastWarning", true)
if not AloftCastWarning then return end
 
local AloftCastWarningSpellNameText = Aloft:GetModule("CastWarningSpellNameText", true)
if not AloftCastWarningSpellNameText then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.castWarning.args.castWarningSpellNameText =
{
type = 'group',
name = L["Spell Name"],
desc = L["Cast warning spell name text options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningSpellNameText:IsEnabled() or not AloftCastWarningSpellNameText.db or not AloftCastWarningSpellNameText.db.profile end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show cast warning spell name"],
get = function(i) return AloftCastWarningSpellNameText.db.profile.enable end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.enable = v AloftCastWarningSpellNameText:UpdateAll() end,
order = 1,
},
rank =
{
type = 'toggle',
width = 'full',
name = L["Display Rank"],
desc = L["Show cast warning spell rank"],
disabled = function(i) return not AloftCastWarningSpellNameText.db.profile.enable end,
get = function(i) return AloftCastWarningSpellNameText.db.profile.rank end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.rank = v AloftCastWarningSpellNameText:UpdateAll() end,
order = 2,
},
range =
{
type = 'toggle',
width = 'full',
name = L["Display Min/Max Range"],
desc = L["Show cast warning spell minimum/maximum range"],
disabled = function(i) return not AloftCastWarningSpellNameText.db.profile.enable end,
get = function(i) return AloftCastWarningSpellNameText.db.profile.range end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.range = v AloftCastWarningSpellNameText:UpdateAll() end,
order = 3,
},
outcome =
{
type = 'toggle',
width = 'full',
name = L["Display Outcome"],
desc = L["Show cast warning spell outcome"],
disabled = function(i) return not AloftCastWarningSpellNameText.db.profile.enable end,
get = function(i) return AloftCastWarningSpellNameText.db.profile.outcome end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.outcome = v AloftCastWarningSpellNameText:UpdateAll() end,
order = 4,
},
extra =
{
type = 'toggle',
width = 'full',
name = L["Display Outcome Reason"],
desc = L["Show cast warning spell outcome reason (failure type, interrupting spell)"],
disabled = function(i) return not AloftCastWarningSpellNameText.db.profile.enable end,
get = function(i) return AloftCastWarningSpellNameText.db.profile.extra end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.extra = v AloftCastWarningSpellNameText:UpdateAll() end,
order = 5,
},
typeface =
{
type = 'group',
name = L["Typeface"],
desc = L["Spell name typeface options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningSpellNameText:IsEnabled() or not AloftCastWarningSpellNameText.db or not AloftCastWarningSpellNameText.db.profile or not AloftCastWarningSpellNameText.db.profile.enable end,
args =
{
font =
{
type = 'select',
width = 'full',
name = L["Font"],
desc = L["Sets the font for spell name"],
get = function(i)
for k, v in pairs(Aloft.Options.args.castWarning.args.castWarningSpellNameText.args.typeface.args.font.values) do
if v == AloftCastWarningSpellNameText.db.profile.font then
return k
end
end
end,
set = function(i, v)
AloftCastWarningSpellNameText.db.profile.font = Aloft.Options.args.castWarning.args.castWarningSpellNameText.args.typeface.args.font.values[v]
AloftCastWarningSpellNameText:UpdateAll()
end,
values = SML:List("font"),
},
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Size"],
desc = L["Sets the font height of the spell name"],
max = 16,
min = 5,
step = 1,
get = function(i) return AloftCastWarningSpellNameText.db.profile.fontSize end,
set = function(i, value) AloftCastWarningSpellNameText.db.profile.fontSize = value AloftCastWarningSpellNameText:UpdateAll() end
},
shadow =
{
type = 'toggle',
width = 'full',
name = L["Font Shadow"],
desc = L["Show font shadow on spell name"],
get = function(i) return AloftCastWarningSpellNameText.db.profile.shadow end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.shadow = v AloftCastWarningSpellNameText:UpdateAll() end
},
outline =
{
type = 'select',
width = 'full',
name = L["Outline"],
desc = L["Sets the font outline for spell name"],
get = function(i) return AloftCastWarningSpellNameText.db.profile.outline end,
set = function(i, value) AloftCastWarningSpellNameText.db.profile.outline = value AloftCastWarningSpellNameText:UpdateAll() end,
values = { [""] = L["None"], ["OUTLINE"] = L["Normal"], ["THICKOUTLINE"] = L["Thick"] },
},
},
},
alignment =
{
type = 'select',
width = 'full',
name = L["Alignment"],
desc = L["Sets the alignment of the spell name"],
disabled = function(i) return not AloftCastWarningSpellNameText.db.profile.enable end,
get = function(i) return AloftCastWarningSpellNameText.db.profile.alignment end,
set = function(i, value) AloftCastWarningSpellNameText.db.profile.alignment = value AloftCastWarningSpellNameText:UpdateAll() end,
values = {["LEFT"]= L["LEFT"], ["CENTER"]= L["CENTER"], ["RIGHT"]= L["RIGHT"] },
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust spell name position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningSpellNameText:IsEnabled() or not AloftCastWarningSpellNameText.db or not AloftCastWarningSpellNameText.db.profile or not AloftCastWarningSpellNameText.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastWarningSpellNameText.db.profile.offsets.left end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.offsets.left = v AloftCastWarningSpellNameText:UpdateAll() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastWarningSpellNameText.db.profile.offsets.right end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.offsets.right = v AloftCastWarningSpellNameText:UpdateAll() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the text"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastWarningSpellNameText.db.profile.offsets.vertical end,
set = function(i, v) AloftCastWarningSpellNameText.db.profile.offsets.vertical = v AloftCastWarningSpellNameText:UpdateAll() end
},
},
},
color =
{
type = 'group',
name = L["Colors"],
desc = L["Sets the spell name colors"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningSpellNameText:IsEnabled() or not AloftCastWarningSpellNameText.db or not AloftCastWarningSpellNameText.db.profile or not AloftCastWarningSpellNameText.db.profile.enable end,
args =
{
castColor =
{
type = 'color',
width = 'full',
name = L["Cast Color"],
desc = L["Sets the spell name color during active casting"],
get = function(i) return unpack(AloftCastWarningSpellNameText.db.profile.castColor) end,
set = function(i, r, g, b, a) AloftCastWarningSpellNameText.db.profile.castColor = { r, g, b, a } AloftCastWarningSpellNameText:UpdateAll() end,
hasAlpha = true
},
fadeColor =
{
type = 'color',
width = 'full',
name = L["Fade Color"],
desc = L["Sets the spell name color during cast warning fade"],
get = function(i) return unpack(AloftCastWarningSpellNameText.db.profile.fadeColor) end,
set = function(i, r, g, b, a) AloftCastWarningSpellNameText.db.profile.fadeColor = { r, g, b, a } AloftCastWarningSpellNameText:UpdateAll() end,
hasAlpha = true
},
},
},
},
}
 
-----------------------------------------------------------------------------
 
end)
\ No newline at end of file
AloftOptions/AloftCastWarning/AloftCastWarningSpellIconOptions.lua New file
0,0 → 1,164
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarningSpellIcon", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCastWarningSpellIconOptions
if not L then return end
 
local AloftCastWarning = Aloft:GetModule("CastWarning", true)
if not AloftCastWarning then return end
 
local AloftCastWarningSpellIcon = Aloft:GetModule("CastWarningSpellIcon", true)
if not AloftCastWarningSpellIcon then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.castWarning.args.castWarningSpellIcon =
{
type = 'group',
name = L["Spell Icon"],
desc = L["Cast warning spell icon placement options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningSpellIcon:IsEnabled() or not AloftCastWarningSpellIcon.db or not AloftCastWarningSpellIcon.db.profile end,
order = -1,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enable cast warning spell icon display on the nameplate"],
get = function(i) return AloftCastWarningSpellIcon.db.profile.enable end,
set = function(i, v) AloftCastWarningSpellIcon.db.profile.enable = v AloftCastWarningSpellIcon:UpdateAll() end,
order = 1,
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust cast warning spell icon position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningSpellIcon:IsEnabled() or not AloftCastWarningSpellIcon.db or not AloftCastWarningSpellIcon.db.profile or not AloftCastWarningSpellIcon.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the cast warning spell icon"],
get = function(i) return AloftCastWarningSpellIcon.db.profile.point end,
set = function(i, v) AloftCastWarningSpellIcon.db.profile.point = v AloftCastWarningSpellIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the cast warning to anchor the spell icon"],
get = function(i) return AloftCastWarningSpellIcon.db.profile.relativeToPoint end,
set = function(i, v) AloftCastWarningSpellIcon.db.profile.relativeToPoint = v AloftCastWarningSpellIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the cast warning spell icon"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastWarningSpellIcon.db.profile.offsetX end,
set = function(i, v) AloftCastWarningSpellIcon.db.profile.offsetX = v AloftCastWarningSpellIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the cast warning spell icon"],
min = -32,
max = 32,
step = 1,
get = function(i) return AloftCastWarningSpellIcon.db.profile.offsetY end,
set = function(i, v) AloftCastWarningSpellIcon.db.profile.offsetY = v AloftCastWarningSpellIcon:UpdateAll() end
},
},
},
size =
{
type = 'range',
width = 'full',
name = L["Size"],
desc = L["Size in pixels of the cast warning spell icon"],
min = 4,
max = 32,
step = 1,
disabled = function(i) return not AloftCastWarningSpellIcon.db.profile.enable end,
get = function(i) return AloftCastWarningSpellIcon.db.profile.size end,
set = function(i, v) AloftCastWarningSpellIcon.db.profile.size = v AloftCastWarningSpellIcon:UpdateAll() end
},
shield =
{
type = 'group',
name = L["Shield"],
desc = L["Shows a shield graphic around an uninterruptable spell icon"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable or not AloftCastWarningSpellIcon:IsEnabled() or not AloftCastWarningSpellIcon.db or not AloftCastWarningSpellIcon.db.profile or not AloftCastWarningSpellIcon.db.profile.enable end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enables the shield graphic"],
get = function(i) return AloftCastWarningSpellIcon.db.profile.nointerShield end,
set = function(i, v)
AloftCastWarningSpellIcon.db.profile.nointerShield = v
AloftCastWarningSpellIcon:UpdateAll()
end,
},
style =
{
type = 'select',
width = 'full',
name = L["Style"],
desc = L["Sets the shield graphic style"],
order = 8,
disabled = function(i) return not AloftCastWarningSpellIcon.db.profile.enable or not AloftCastWarningSpellIcon.db.profile.nointerShield end,
get = function(i) return AloftCastWarningSpellIcon.db.profile.nointerStyle end,
set = function(i, v) AloftCastWarningSpellIcon.db.profile.nointerStyle = v AloftCastWarningSpellIcon:UpdateAll() end,
values =
{
["ROUND"] = L["ROUND"],
["SQUARE"] = L["SQUARE"],
},
},
color =
{
type = 'color',
width = 'full',
name = L["Color"],
desc = L["Sets the shield graphic color"],
order = 1,
disabled = function(i) return not AloftCastWarningSpellIcon.db.profile.enable or not AloftCastWarningSpellIcon.db.profile.nointerShield end,
get = function(i) return unpack(AloftCastWarningSpellIcon.db.profile.nointerColor) end,
set = function(i, r, g, b, a) AloftCastWarningSpellIcon.db.profile.nointerColor = { r, g, b, a } AloftCastWarningSpellIcon:UpdateAll() end,
hasAlpha = true,
},
},
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftCastWarning/AloftCastWarningOptions.lua New file
0,0 → 1,576
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftCastWarning", function(i)
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftCastWarningOptions
if not L then return end
 
local AloftCastWarning = Aloft:GetModule("CastWarning", true)
if not AloftCastWarning then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
-- TODO: make these all attributes of AloftCastWarning
 
-- needs to be maintained to match the definitions in AloftCastWarning.lua/AloftCastWarningSpellProcess.lua; these masks are lifted from Blizzard; buried somewhere in a global table somewhere
local SPELL_SCHOOL_NONE = SCHOOL_MASK_NONE
local SPELL_SCHOOL_PHYSICAL = SCHOOL_MASK_PHYSICAL
local SPELL_SCHOOL_HOLY = SCHOOL_MASK_HOLY
local SPELL_SCHOOL_FIRE = SCHOOL_MASK_FIRE
local SPELL_SCHOOL_NATURE = SCHOOL_MASK_NATURE
local SPELL_SCHOOL_FROST = SCHOOL_MASK_FROST
local SPELL_SCHOOL_SHADOW = SCHOOL_MASK_SHADOW
local SPELL_SCHOOL_ARCANE = SCHOOL_MASK_ARCANE
local SPELL_SCHOOL_HEAL = 0x40000000 -- this is an imaginary catch-all school for healing spells; make certain no bits are in common
 
-- needs to be maintained to match the definitions in AloftCastWarning.lua; these are lifted loosely from Blizzard(tm); Interface\AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua (i.e. Blizzard combat log processing)
local SPELL_COLOR_NONE = { 1.00, 1.00, 1.00, 1.00, } -- this is an imaginary color for spells with no known school (a medium gray)
local SPELL_COLOR_PHYSICAL = { 0.80, 0.60, 0.40, 1.00, } -- basically the warrior class color
local SPELL_COLOR_HOLY = { 1.00, 0.90, 0.50, 1.00, }
local SPELL_COLOR_FIRE = { 1.00, 0.00, 0.00, 1.00, } -- red
local SPELL_COLOR_NATURE = { 0.30, 1.00, 0.30, 1.00, }
local SPELL_COLOR_FROST = { 0.50, 1.00, 1.00, 1.00, }
local SPELL_COLOR_SHADOW = { 0.50, 0.50, 1.00, 1.00, } -- basically the warlock class color
local SPELL_COLOR_ARCANE = { 1.00, 0.50, 1.00, 1.00, }
local SPELL_COLOR_HEAL = { 1.00, 0.50, 0.00, 1.00, } -- this is an imaginary catch-all color for healing spells (yellow-orange)
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.castWarning =
{
type = 'group',
name = L["Cast Warning"],
desc = L["Cast warning options"] .. " (" .. AloftCastWarning.version .. ")",
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Show cast warnings on identifiable enemy nameplates"],
order = 1,
get = function(i) return AloftCastWarning.db.profile.enable end,
set = function(i, v) AloftCastWarning.db.profile.enable = v Aloft:DetermineDataSources() AloftCastWarning:UpdateAll() end,
},
castWarningOverrideEnable =
{
type = 'toggle',
width = 'full',
name = L["Cast Warning Alpha Override Enable"],
desc = L["Enable changing alpha of actively casting units (requires AloftAlpha module to be enabled at UI load)"],
order = 2,
disabled = function(i) return not AloftCastWarning.db.profile.enable or not Aloft:GetModule("Alpha", true) end,
get = function(i) return AloftCastWarning.db.profile.alphaOverrideEnable end,
set = function(i, v)
AloftCastWarning.db.profile.alphaOverrideEnable = v
if Aloft:GetModule("Alpha", true) then Aloft:GetModule("Alpha"):EnableChange() end
end,
},
castWarningOverrideAlpha =
{
type = 'range',
width = 'full',
name = L["Cast Warning Alpha Override"],
desc = L["Sets the alpha value of actively casting units (requires AloftAlpha module to be enabled at UI load)"],
order = 3,
min = 0.01,
max = 1,
step = 0.01,
disabled = function(i) return not AloftCastWarning.db.profile.enable or not AloftCastWarning.db.profile.alphaOverrideEnable or not Aloft:GetModule("Alpha", true) end,
get = function(i) return AloftCastWarning.db.profile.alphaOverride end,
set = function(i, v) AloftCastWarning.db.profile.alphaOverride = v AloftCastWarning:AdjustOptionValues() end,
},
verifyInterval =
{
type = 'range',
width = 'full',
name = L["Verification Interval"],
desc = L["Sets the rate at which spell cast verification is performed; this queries the casting unit regularly, after cast activity begins, to verify what spell (if any) is still being cast (0.0 is as fast as possible)"],
order = 4,
min = 0.0,
max = 5.0,
step = 0.01,
disabled = function(i) return not AloftCastWarning.db.profile.enable end,
get = function(i) return AloftCastWarning.db.profile.verifyInterval end,
set = function(i, v) AloftCastWarning.db.profile.verifyInterval = v AloftCastWarning:UpdateAll() end
},
tradeSkill =
{
type = 'toggle',
width = 'full',
name = L["Trade Skills"],
desc = L["Show cast warnings for trade skills"],
order = 5,
disabled = function(i) return not AloftCastWarning.db.profile.enable end,
get = function(i) return AloftCastWarning.db.profile.tradeSkill end,
set = function(i, v) AloftCastWarning.db.profile.tradeSkill = v Aloft:DetermineDataSources() AloftCastWarning:UpdateAll() end,
},
players =
{
type = 'toggle',
width = 'full',
name = L["Players"],
desc = L["Show cast warnings for players"],
order = 6,
disabled = function(i) return not AloftCastWarning.db.profile.enable end,
get = function(i) return AloftCastWarning.db.profile.players end,
set = function(i, v) AloftCastWarning.db.profile.players = v Aloft:DetermineDataSources() AloftCastWarning:UpdateAll() end,
},
friendly =
{
type = 'toggle',
width = 'full',
name = L["Friendly Units"],
desc = L["Show cast warnings for friendly units"],
order = 7,
disabled = function(i) return not AloftCastWarning.db.profile.enable end,
get = function(i) return AloftCastWarning.db.profile.friendly end,
set = function(i, v) AloftCastWarning.db.profile.friendly = v Aloft:DetermineDataSources() AloftCastWarning:UpdateAll() end,
},
animate =
{
type = 'toggle',
width = 'full',
name = L["Animated Cast Warning"],
desc = L["Animate cast warnings as cast bars"],
order = 8,
disabled = function(i) return not AloftCastWarning.db.profile.enable end,
get = function(i) return AloftCastWarning.db.profile.animate end,
set = function(i, v) AloftCastWarning.db.profile.animate = v Aloft:DetermineDataSources() AloftCastWarning:UpdateAll() end,
},
fadeDuration =
{
type = 'range',
width = 'full',
name = L["Fade Duration"],
desc = L["Sets the fade duration of animated cast warnings (0.0 is no fade)"],
order = 9,
min = 0.0,
max = 5.0, -- same as the ACTIVE_CAST_TIMEOUT constant in AloftCastWarning.lua
step = 0.1,
order = 7,
disabled = function(i) return not (AloftCastWarning.db.profile.enable and AloftCastWarning.db.profile.animate) end,
get = function(i) return AloftCastWarning.db.profile.fadeDuration end,
set = function(i, v) AloftCastWarning.db.profile.fadeDuration = v AloftCastWarning:UpdateAll() end
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust the cast warning's position"],
order = 10,
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable end,
args =
{
left =
{
type = 'range',
width = 'full',
name = L["Left Offset"],
desc = L["Sets the offset of the left of the cast warning"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCastWarning.db.profile.offsets.left end,
set = function(i, v) AloftCastWarning.db.profile.offsets.left = v AloftCastWarning:UpdateAll() end
},
right =
{
type = 'range',
width = 'full',
name = L["Right Offset"],
desc = L["Sets the offset of the right of the cast warning"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCastWarning.db.profile.offsets.right end,
set = function(i, v) AloftCastWarning.db.profile.offsets.right = v AloftCastWarning:UpdateAll() end
},
vertical =
{
type = 'range',
width = 'full',
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the cast warning"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftCastWarning.db.profile.offsets.vertical end,
set = function(i, v) AloftCastWarning.db.profile.offsets.vertical = v AloftCastWarning:UpdateAll() end
},
},
},
height =
{
type = 'range',
width = 'full',
name = L["Height"],
desc = L["Sets the height of the cast warning"],
order = 11,
min = 2,
max = 32,
step = 1,
disabled = function(i) return not AloftCastWarning.db.profile.enable end,
get = function(i) return AloftCastWarning.db.profile.height end,
set = function(i, v) AloftCastWarning.db.profile.height = v AloftCastWarning:UpdateAll() end
},
interruptable =
{
type = 'group',
name = L["Interruptable Cast Warning"],
desc = L["Cast warning appearance for interruptable spells"],
order = 12,
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable end,
args =
{
texture =
{
type = 'select',
width = 'full',
name = L["Texture"],
desc = L["Sets the cast warning texture"],
order = 1,
get = function(i)
for k, v in pairs(Aloft.Options.args.castWarning.args.interruptable.args.texture.values) do
if v == AloftCastWarning.db.profile.texture then
return k
end
end
end,
set = function(i, v)
AloftCastWarning.db.profile.texture = Aloft.Options.args.castWarning.args.interruptable.args.texture.values[v]
AloftCastWarning:UpdateAll()
end,
values = SML:List("statusbar"),
},
backdrop =
{
type = 'color',
width = 'full',
name = L["Backdrop Color"],
desc = L["Sets the backdrop color of the cast warning"],
order = 2,
get = function(i) return unpack(AloftCastWarning.db.profile.backdropColor) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.backdropColor = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
},
border =
{
type = 'select',
width = 'full',
name = L["Border Style"],
desc = L["Sets the style of the cast warning border"],
order = 3,
get = function(i)
for k, v in pairs(Aloft.Options.args.castWarning.args.interruptable.args.border.values) do
if v == AloftCastWarning.db.profile.border then
return k
end
end
end,
set = function(i, v)
AloftCastWarning.db.profile.border = Aloft.Options.args.castWarning.args.interruptable.args.border.values[v]
AloftCastWarning: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 AloftCastWarning.db.profile.borderEdgeSize end,
set = function(i, v) AloftCastWarning.db.profile.borderEdgeSize = v AloftCastWarning: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 AloftCastWarning.db.profile.borderInset end,
set = function(i, v) AloftCastWarning.db.profile.borderInset = v AloftCastWarning:UpdateAll() end
},
borderColor =
{
type = 'color',
width = 'full',
name = L["Border Color"],
desc = L["Sets the border color of the cast warning"],
order = 4,
disabled = function(i) return AloftCastWarning.db.profile.border == "None" end,
get = function(i) return unpack(AloftCastWarning.db.profile.borderColor) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.borderColor = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
},
},
},
uninterruptable =
{
type = 'group',
name = L["Uninterruptable Cast Warning"],
desc = L["Cast warning appearance for uninterruptable spells"],
order = 13,
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable end,
args =
{
texture =
{
type = 'select',
width = 'full',
name = L["Texture"],
desc = L["Sets the cast warning texture"],
order = 1,
get = function(i)
for k, v in pairs(Aloft.Options.args.castWarning.args.uninterruptable.args.texture.values) do
if v == AloftCastWarning.db.profile.nointerTexture then
return k
end
end
end,
set = function(i, v)
AloftCastWarning.db.profile.nointerTexture = Aloft.Options.args.castWarning.args.uninterruptable.args.texture.values[v]
AloftCastWarning:UpdateAll()
end,
values = SML:List("statusbar"),
},
backdrop =
{
type = 'color',
width = 'full',
name = L["Backdrop Color"],
desc = L["Sets the backdrop color of the cast warning"],
order = 2,
get = function(i) return unpack(AloftCastWarning.db.profile.nointerBackdropColor) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.nointerBackdropColor = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
},
border =
{
type = 'select',
width = 'full',
name = L["Border Style"],
desc = L["Sets the style of the cast warning border"],
order = 3,
get = function(i)
for k, v in pairs(Aloft.Options.args.castWarning.args.uninterruptable.args.border.values) do
if v == AloftCastWarning.db.profile.nointerBorder then
return k
end
end
end,
set = function(i, v)
AloftCastWarning.db.profile.nointerBorder = Aloft.Options.args.castWarning.args.uninterruptable.args.border.values[v]
AloftCastWarning: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 AloftCastWarning.db.profile.nointerBorderEdgeSize end,
set = function(i, v) AloftCastWarning.db.profile.nointerBorderEdgeSize = v AloftCastWarning: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 AloftCastWarning.db.profile.nointerBorderInset end,
set = function(i, v) AloftCastWarning.db.profile.nointerBorderInset = v AloftCastWarning:UpdateAll() end
},
borderColor =
{
type = 'color',
width = 'full',
name = L["Border Color"],
desc = L["Sets the border color of the cast warning"],
order = 4,
disabled = function(i) return AloftCastWarning.db.profile.nointerBorder == "None" end,
get = function(i) return unpack(AloftCastWarning.db.profile.nointerBorderColor) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.nointerBorderColor = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
},
},
},
colors =
{
type = 'group',
name = L["Colors"],
desc = L["Customize cast warning colors (based on spell school)"],
order = 14,
disabled = function(i) return not Aloft:IsEnabled() or not AloftCastWarning:IsEnabled() or not AloftCastWarning.db or not AloftCastWarning.db.profile or not AloftCastWarning.db.profile.enable end,
args =
{
backdrop =
{
type = 'color',
width = 'full',
name = L["Backdrop Color"],
desc = L["Sets the backdrop color of the cast warning"],
get = function(i) return unpack(AloftCastWarning.db.profile.backdropColor) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.backdropColor = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 1,
},
default =
{
type = 'color',
width = 'full',
name = L["Default"],
desc = L["Sets the default color for cast warnings from unknown schools"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_NONE]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_NONE] = { r, g, b, a, } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 2,
},
physical =
{
type = 'color',
width = 'full',
name = L["Physical"],
desc = L["Sets the color for physical school cast warnings"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_PHYSICAL]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_PHYSICAL] = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 3,
},
holy =
{
type = 'color',
width = 'full',
name = L["Holy"],
desc = L["Sets the color for holy school cast warnings"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_HOLY]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_HOLY] = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 4,
},
fire =
{
type = 'color',
width = 'full',
name = L["Fire"],
desc = L["Sets the color for fire school cast warnings"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_FIRE]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_FIRE] = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 5,
},
nature =
{
type = 'color',
width = 'full',
name = L["Nature"],
desc = L["Sets the color for nature school cast warnings"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_NATURE]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_NATURE] = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 6,
},
frost =
{
type = 'color',
width = 'full',
name = L["Frost"],
desc = L["Sets the color for frost school cast warnings"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_FROST]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_FROST] = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 7,
},
shadow =
{
type = 'color',
width = 'full',
name = L["Shadow"],
desc = L["Sets the color for shadow school cast warnings"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_SHADOW]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_SHADOW] = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 8,
},
arcane =
{
type = 'color',
width = 'full',
name = L["Arcane"],
desc = L["Sets the color for arcane school cast warnings"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_ARCANE]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_ARCANE] = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 9,
},
heal =
{
type = 'color',
width = 'full',
name = L["Healing"],
desc = L["Sets the color for healing school cast warnings"],
get = function(i) return unpack(AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_HEAL]) end,
set = function(i, r, g, b, a) AloftCastWarning.db.profile.powerTypeColors[SPELL_SCHOOL_HEAL] = { r, g, b, a } AloftCastWarning:UpdateAll() end,
hasAlpha = true,
order = 10,
},
reset =
{
type = 'execute',
width = 'full',
name = L["Reset to Defaults"],
desc = L["Resets all colors to their defaults"],
order = -1,
func = function(i)
AloftCastWarning.db.profile.backdropColor = { 0.25, 0.25, 0.25, 0.5 }
AloftCastWarning.db.profile.powerTypeColors =
{
[SPELL_SCHOOL_NONE] = SPELL_COLOR_NONE,
[SPELL_SCHOOL_PHYSICAL] = SPELL_COLOR_PHYSICAL,
[SPELL_SCHOOL_HOLY] = SPELL_COLOR_HOLY,
[SPELL_SCHOOL_FIRE] = SPELL_COLOR_FIRE,
[SPELL_SCHOOL_NATURE] = SPELL_COLOR_NATURE,
[SPELL_SCHOOL_FROST] = SPELL_COLOR_FROST,
[SPELL_SCHOOL_SHADOW] = SPELL_COLOR_SHADOW,
[SPELL_SCHOOL_ARCANE] = SPELL_COLOR_ARCANE,
[SPELL_SCHOOL_HEAL] = SPELL_COLOR_HEAL,
},
AloftCastWarning:UpdateAll()
end,
},
}
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftBroker/AloftBrokerLocale.lua New file
0,0 → 1,60
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] mL["AloftLDB"] = "AloftLDB"
--[[ enUS ]] mL["Provide a LibDataBroker-1.1 interface for Aloft"] = "Provide a LibDataBroker-1.1 interface for Aloft"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftLDB"] = "AloftLDB"
--[[ koKR ]] mL["Provide a LibDataBroker-1.1 interface for Aloft"] = "Provide a LibDataBroker-1.1 interface for Aloft"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftLDB"] = "AloftLDB"
--[[ ruRU ]] mL["Provide a LibDataBroker-1.1 interface for Aloft"] = "беспечивать интерфейсов Aloftа LibDataBroker-1.1"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftLDB"] = "LDB支持"
--[[ zhCN ]] mL["Provide a LibDataBroker-1.1 interface for Aloft"] = "为Aloft提供LibDataBroker支持"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftLDB"] = "LDB支持"
--[[ zhTW ]] mL["Provide a LibDataBroker-1.1 interface for Aloft"] = "為Aloft提供LibDataBroker支援"
 
-----------------------------------------------------------------------------
 
end
AloftOptions/AloftBroker/AloftBrokerModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.AloftLDB =
{
type = 'toggle',
width = "full",
name = L["AloftLDB"],
desc = L["Provide a LibDataBroker-1.1 interface for Aloft"],
get = function(i) return AloftModules.db.profile.AloftLDB end,
set = function(i, v) AloftModules.db.profile.AloftLDB = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftSetAll/AloftSetAll.lua New file
0,0 → 1,107
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftSetAll
if not L then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
local lastSetFont = ""
local lastSetFontSize = 10
local lastSetBorder = ""
local lastSetTexture = ""
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.setAll =
{
type = 'group',
name = L["Set All"],
desc = L["Set all options"],
disabled = function(i) return not Aloft:IsEnabled() end,
order = 600,
args =
{
fontSize =
{
type = 'range',
width = 'full',
name = L["Font Sizes"],
desc = L["Sets the fonts size for all text in Aloft"],
order = 1,
max = 16,
min = 4,
step = 1,
get = function(i) return lastSetFontSize end,
set = function(i, v) if lastSetFontSize ~= v then lastSetFontSize = v Aloft:SendMessage("Aloft:SetAll", "fontSize", v) end end
},
font =
{
type = 'select',
width = 'full',
name = L["Fonts"],
desc = L["Sets the font for all text in Aloft"],
order = 2,
get = function(i)
for k, v in pairs(Aloft.Options.args.setAll.args.font.values) do
if v == lastSetFont then
return k
end
end
end,
set = function(i, v)
lastSetFont = Aloft.Options.args.setAll.args.font.values[v]
Aloft:SendMessage("Aloft:SetAll", "font", lastSetFont)
end,
values = SML:List("font"),
},
border =
{
type = 'select',
width = 'full',
name = L["Borders"],
desc = L["Sets the border for all status bars in Aloft"],
order = 4,
get = function(i)
for k, v in pairs(Aloft.Options.args.setAll.args.border.values) do
if v == lastSetBorder then
return k
end
end
end,
set = function(i, v)
lastSetBorder = Aloft.Options.args.setAll.args.border.values[v]
Aloft:SendMessage("Aloft:SetAll", "border", lastSetBorder)
end,
values = SML:List("border"),
},
texture =
{
type = 'select',
width = 'full',
name = L["Textures"],
desc = L["Sets the texture for all status bars in Aloft"],
order = 4,
get = function(i)
for k, v in pairs(Aloft.Options.args.setAll.args.texture.values) do
if v == lastSetTexture then
return k
end
end
end,
set = function(i, v)
lastSetTexture = Aloft.Options.args.setAll.args.texture.values[v]
Aloft:SendMessage("Aloft:SetAll", "texture", lastSetTexture)
end,
values = SML:List("statusbar"),
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftSetAll/AloftSetAllLocale.lua New file
0,0 → 1,102
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] L["Set All"] = "Set All"
--[[ enUS ]] L["Set all options"] = "Set all options"
--[[ enUS ]] L["Textures"] = "Textures"
--[[ enUS ]] L["Sets the texture for all status bars in Aloft"] = "Sets the texture for all status bars in Aloft"
--[[ enUS ]] L["Borders"] = "Borders"
--[[ enUS ]] L["Sets the border for all status bars in Aloft"] = "Sets the border for all status bars in Aloft"
--[[ enUS ]] L["Fonts"] = "Fonts"
--[[ enUS ]] L["Sets the font for all text in Aloft"] = "Sets the font for all text in Aloft"
--[[ enUS ]] L["Font Sizes"] = "Font Sizes"
--[[ enUS ]] L["Sets the fonts size for all text in Aloft"] = "Sets the fonts size for all text in Aloft"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Set All"] = "전체 설정"
--[[ koKR ]] L["Set all options"] = "전체 설정을 변경합니다."
--[[ koKR ]] L["Textures"] = "텍스쳐"
--[[ koKR ]] L["Borders"] = "Borders"
--[[ koKR ]] L["Sets the border for all status bars in Aloft"] = "Sets the border for all status bars in Aloft"
--[[ koKR ]] L["Sets the texture for all status bars in Aloft"] = "모든 상태바의 텍스쳐를 설정합니다."
--[[ koKR ]] L["Fonts"] = "글꼴"
--[[ koKR ]] L["Sets the font for all text in Aloft"] = "모든 글자의 글꼴을 설정합니다."
--[[ koKR ]] L["Font Sizes"] = "글꼴 크기"
--[[ koKR ]] L["Sets the fonts size for all text in Aloft"] = "모든 글자의 글꼴 크기를 설정합니다."
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Set All"] = "Задать все"
--[[ ruRU ]] L["Set all options"] = "Установить все настройки"
--[[ ruRU ]] L["Textures"] = "Текстуры"
--[[ ruRU ]] L["Sets the texture for all status bars in Aloft"] = "Задает текстуру для всех полосок состояния в Aloft"
--[[ ruRU ]] L["Borders"] = "Края"
--[[ ruRU ]] L["Sets the border for all status bars in Aloft"] = "Sets the border for all status bars in Aloft"
--[[ ruRU ]] L["Fonts"] = "Шрифты"
--[[ ruRU ]] L["Sets the font for all text in Aloft"] = "Задает шрифт для всего текста в Aloft"
--[[ ruRU ]] L["Font Sizes"] = "Размеры шрифта"
--[[ ruRU ]] L["Sets the fonts size for all text in Aloft"] = "Задает размет шрифта для всего текста Aloft"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Set All"] = "设置全部"
--[[ zhCN ]] L["Set all options"] = "设定全部选项"
--[[ zhCN ]] L["Textures"] = "材质"
--[[ zhCN ]] L["Sets the texture for all status bars in Aloft"] = "设定全部Aloft状态条的材质"
--[[ zhCN ]] L["Borders"] = "Borders"
--[[ zhCN ]] L["Sets the border for all status bars in Aloft"] = "Sets the border for all status bars in Aloft"
--[[ zhCN ]] L["Fonts"] = "字体"
--[[ zhCN ]] L["Sets the font for all text in Aloft"] = "设定全部Aloft文字的字体"
--[[ zhCN ]] L["Font Sizes"] = "字号"
--[[ zhCN ]] L["Sets the fonts size for all text in Aloft"] = "设定全部Aloft文字的字号"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Set All"] = "設定全部"
--[[ zhTW ]] L["Set all options"] = "設定全部選項"
--[[ zhTW ]] L["Textures"] = "紋理"
--[[ zhTW ]] L["Sets the texture for all status bars in Aloft"] = "設定全部 Aloft 狀態條的紋理"
--[[ zhTW ]] L["Borders"] = "Borders"
--[[ zhTW ]] L["Sets the border for all status bars in Aloft"] = "Sets the border for all status bars in Aloft"
--[[ zhTW ]] L["Fonts"] = "字型"
--[[ zhTW ]] L["Sets the font for all text in Aloft"] = "設定全部 Aloft 文字的字型"
--[[ zhTW ]] L["Font Sizes"] = "字型大小"
--[[ zhTW ]] L["Sets the fonts size for all text in Aloft"] = "設定全部 Aloft 文字的字型大小"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftSetAll = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
AloftOptions/AloftAlpha/AloftAlphaLocale.lua New file
0,0 → 1,248
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local L = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAlpha", function()
 
-----------------------------------------------------------------------------
 
-- TODO: on the surface, this wastes space in the enUS locale; the metatable could just return the canonical string as the localization;
-- BUT, this serves as a default locale, and also will permit the metatable to check/notify on missing locale strings
 
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Various Alpha Options"] = "Various Alpha Options"
 
--[[ enUS ]] L["Target Enable"] = "Target Enable"
--[[ enUS ]] L["Enable changing alpha of target"] = "Enable changing alpha of target"
 
--[[ enUS ]] L["Target Alpha"] = "Target Alpha"
--[[ enUS ]] L["Sets the alpha of the target's nameplate"] = "Sets the alpha of the target's nameplate"
 
--[[ enUS ]] L["Non-Target Enable"] = "Non-Target Enable"
--[[ enUS ]] L["Enable changing alpha of non-target"] = "Enable changing alpha of non-target"
 
--[[ enUS ]] L["Non-Target Alpha"] = "Non-Target Alpha"
--[[ enUS ]] L["Sets the alpha of non-target nameplates"] = "Sets the alpha of non-target nameplates"
 
--[[ enUS ]] L["Default Enable"] = "Default Enable"
--[[ enUS ]] L["Enable changing alpha of default nameplates"] = "Enable changing alpha of default nameplates"
 
--[[ enUS ]] L["Default Alpha"] = "Default Alpha"
--[[ enUS ]] L["Sets the alpha of default nameplates"] = "Sets the alpha of default nameplates"
 
--[[ enUS ]] L["Update Interval"] = "Update Interval"
--[[ enUS ]] L["The amount of time, in seconds, between nameplate alpha change updates (0.0 seconds is as fast as the UI can do it)"] = "The amount of time, in seconds, between nameplate alpha change updates (0.0 seconds is as fast as the UI can do it)"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftAlpha"] = "AloftAlpha"
--[[ enUS ]] mL["Control the relative transparency of nameplates"] = "Control the relative transparency of nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAlpha", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Various Alpha Options"] = "각각의 투명도 설정입니다."
 
--[[ koKR ]] L["Target Enable"] = "대상 사용"
--[[ koKR ]] L["Enable changing alpha of target"] = "대상의 투명도를 변경합니다."
 
--[[ koKR ]] L["Target Alpha"] = "대상 투명도"
--[[ koKR ]] L["Sets the alpha of the target's nameplate"] = "대상의 이름표의 투명도를 설정합니다."
 
--[[ koKR ]] L["Non-Target Enable"] = "비-대상 사용"
--[[ koKR ]] L["Enable changing alpha of non-target"] = "비-대상의 투명도를 변경합니다."
 
--[[ koKR ]] L["Non-Target Alpha"] = "비-대상 투명도"
--[[ koKR ]] L["Sets the alpha of non-target nameplates"] = "비-대상 이름표의 투명도를 설정합니다."
 
--[[ koKR ]] L["Default Enable"] = "기본 사용"
--[[ koKR ]] L["Enable changing alpha of default nameplates"] = "기본 이름표의 투명도를 변경합니다."
 
--[[ koKR ]] L["Default Alpha"] = "기본 투명도"
--[[ koKR ]] L["Sets the alpha of default nameplates"] = "기본 이름표의 투명도를 설정합니다."
 
--[[ koKR ]] L["Update Interval"] = "Update Interval"
--[[ koKR ]] L["The amount of time, in seconds, between nameplate alpha change updates (0.0 seconds is as fast as the UI can do it)"] = "The amount of time, in seconds, between nameplate alpha change updates (0.0 seconds is as fast as the UI can do it)"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftAlpha"] = "AloftAlpha"
--[[ koKR ]] mL["Control the relative transparency of nameplates"] = "Control the relative transparency of nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAlpha", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Various Alpha Options"] = "Прочие настройки прозрачности"
 
--[[ ruRU ]] L["Target Enable"] = "Включить цель"
--[[ ruRU ]] L["Enable changing alpha of target"] = "Включить изменение прозрачности цели"
 
--[[ ruRU ]] L["Target Alpha"] = "Прозрачность цели"
--[[ ruRU ]] L["Sets the alpha of the target's nameplate"] = "Задает прозрачность таблички цели"
 
--[[ ruRU ]] L["Non-Target Enable"] = "Включить не цели"
--[[ ruRU ]] L["Enable changing alpha of non-target"] = "Включить изменение прозрачность для не-цели"
 
--[[ ruRU ]] L["Non-Target Alpha"] = "Прозрачность не целей"
--[[ ruRU ]] L["Sets the alpha of non-target nameplates"] = "Задает прозрачность табличек не-целей"
 
--[[ ruRU ]] L["Default Enable"] = "Включить по умолчанию"
--[[ ruRU ]] L["Enable changing alpha of default nameplates"] = "Включить изменения прозрачности для стандартных табличек"
 
--[[ ruRU ]] L["Default Alpha"] = "Прозрачность по умолчанию"
--[[ ruRU ]] L["Sets the alpha of default nameplates"] = "Задает прозрачность оригинальных табличек"
 
--[[ ruRU ]] L["Update Interval"] = "Время обновления"
--[[ ruRU ]] L["The amount of time, in seconds, between nameplate alpha change updates (0.0 seconds is as fast as the UI can do it)"] = "Время в секундах между обновленями уровня прозрачности таблички (0.0 так быстро, как может интерфейс)"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftAlpha"] = "AloftAlpha"
--[[ ruRU ]] mL["Control the relative transparency of nameplates"] = "Настройки прозрачности табличек"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAlpha", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Various Alpha Options"] = "透明度相关设置"
 
--[[ zhCN ]] L["Target Enable"] = "对目标启用"
--[[ zhCN ]] L["Enable changing alpha of target"] = "启用目标姓名板的透明度改变"
 
--[[ zhCN ]] L["Target Alpha"] = "目标透明度"
--[[ zhCN ]] L["Sets the alpha of the target's nameplate"] = "设定目标姓名板的透明度"
 
--[[ zhCN ]] L["Non-Target Enable"] = "对非目标启用"
--[[ zhCN ]] L["Enable changing alpha of non-target"] = "启用非目标姓名板的透明度改变"
 
--[[ zhCN ]] L["Non-Target Alpha"] = "非目标透明度"
--[[ zhCN ]] L["Sets the alpha of non-target nameplates"] = "设定非目标姓名板的透明度"
 
--[[ zhCN ]] L["Default Enable"] = "对默认启用"
--[[ zhCN ]] L["Enable changing alpha of default nameplates"] = "启用默认姓名板的透明度改变"
 
--[[ zhCN ]] L["Default Alpha"] = "默认透明度"
--[[ zhCN ]] L["Sets the alpha of default nameplates"] = "设定默认姓名板的透明度"
 
--[[ zhCN ]] L["Update Interval"] = "更新频率"
--[[ zhCN ]] L["The amount of time, in seconds, between nameplate alpha change updates (0.0 seconds is as fast as the UI can do it)"] = "姓名板透明度的更新速率,0.0秒是UI可以使用的最大值"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftAlpha"] = "透明度"
--[[ zhCN ]] mL["Control the relative transparency of nameplates"] = "控制姓名板的透明度"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAlpha", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Various Alpha Options"] = "透明度選項"
 
--[[ zhTW ]] L["Target Enable"] = "目標啟用"
--[[ zhTW ]] L["Enable changing alpha of target"] = "啟用改變目標名牌的透明度"
 
--[[ zhTW ]] L["Target Alpha"] = "目標透明度"
--[[ zhTW ]] L["Sets the alpha of the target's nameplate"] = "設定目標名牌的透明度"
 
--[[ zhTW ]] L["Non-Target Enable"] = "非目標啟用"
--[[ zhTW ]] L["Enable changing alpha of non-target"] = "啟用改變非目標名牌的透明度"
 
--[[ zhTW ]] L["Non-Target Alpha"] = "非目標透明度"
--[[ zhTW ]] L["Sets the alpha of non-target nameplates"] = "設定非目標名牌的透明度"
 
--[[ zhTW ]] L["Default Enable"] = "預設啟用"
--[[ zhTW ]] L["Enable changing alpha of default nameplates"] = "啟用改變預設名牌的透明度"
 
--[[ zhTW ]] L["Default Alpha"] = "預設透明度"
--[[ zhTW ]] L["Sets the alpha of default nameplates"] = "設定預設名牌的透明度"
 
--[[ zhTW ]] L["Update Interval"] = "更新頻率"
--[[ zhTW ]] L["The amount of time, in seconds, between nameplate alpha change updates (0.0 seconds is as fast as the UI can do it)"] = "姓名板透明度的更新速率,0.0秒是UI可以使用的最大值"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftAlpha"] = "透明度"
--[[ zhTW ]] mL["Control the relative transparency of nameplates"] = "控制名牌的透明度"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAlpha", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftAlphaOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftAlpha/AloftAlphaModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftAlpha =
{
type = 'toggle',
width = 'full',
name = L["AloftAlpha"],
desc = L["Control the relative transparency of nameplates"],
get = function(i) return AloftModules.db.profile.AloftAlpha end,
set = function(i, v) AloftModules.db.profile.AloftAlpha = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftAlpha/AloftAlphaOptions.lua New file
0,0 → 1,123
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftAlpha", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftAlphaOptions
if not L then return end
 
local AloftAlpha = Aloft:GetModule("Alpha", true)
if not AloftAlpha then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.AloftAlpha =
{
type = 'group',
name = L["Alpha"],
desc = L["Various Alpha Options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftAlpha:IsEnabled() or not AloftAlpha.db or not AloftAlpha.db.profile end,
args =
{
targetEnable =
{
type = 'toggle',
width = 'full',
name = L["Target Enable"],
desc = L["Enable changing alpha of target"],
order = 1,
get = function(i) return AloftAlpha.db.profile.targetEnable end,
set = function(i, v) AloftAlpha.db.profile.targetEnable = v AloftAlpha:EnableChange() end,
},
targetAlpha =
{
type = 'range',
width = 'full',
name = L["Target Alpha"],
desc = L["Sets the alpha of the target's nameplate"],
order = 2,
min = 0,
max = 1,
step = 0.01,
disabled = function(i) return not AloftAlpha.db.profile.targetEnable end,
get = function(i) return AloftAlpha.db.profile.targetAlpha end,
set = function(i, v) AloftAlpha.db.profile.targetAlpha = v AloftAlpha:AdjustOptionValues() end,
},
nonTargetEnable =
{
type = 'toggle',
width = 'full',
name = L["Non-Target Enable"],
desc = L["Enable changing alpha of non-target"],
order = 3,
get = function(i) return AloftAlpha.db.profile.nonTargetEnable end,
set = function(i, v) AloftAlpha.db.profile.nonTargetEnable = v AloftAlpha:EnableChange() end,
},
nonTargetAlpha =
{
type = 'range',
width = 'full',
name = L["Non-Target Alpha"],
desc = L["Sets the alpha of non-target nameplates"],
order = 4,
min = 0,
max = 1,
step = 0.01,
disabled = function(i) return not AloftAlpha.db.profile.nonTargetEnable end,
get = function(i) return AloftAlpha.db.profile.nonTargetAlpha end,
set = function(i, v) AloftAlpha.db.profile.nonTargetAlpha = v AloftAlpha:AdjustOptionValues() end,
},
defaultEnable =
{
type = 'toggle',
width = 'full',
name = L["Default Enable"],
desc = L["Enable changing alpha of default nameplates"],
order = 5,
get = function(i) return AloftAlpha.db.profile.defaultEnable end,
set = function(i, v) AloftAlpha.db.profile.defaultEnable = v AloftAlpha:EnableChange() end,
},
defaultAlpha =
{
type = 'range',
width = 'full',
name = L["Default Alpha"],
desc = L["Sets the alpha of default nameplates"],
order = 6,
min = 0,
max = 1,
step = 0.01,
disabled = function(i) return not AloftAlpha.db.profile.defaultEnable end,
get = function(i) return AloftAlpha.db.profile.defaultAlpha end,
set = function(i, v) AloftAlpha.db.profile.defaultAlpha = v AloftAlpha:AdjustOptionValues() end,
},
--[[
interval =
{
type = 'range',
width = 'full',
name = L["Update Interval"],
desc = L["The amount of time, in seconds, between nameplate alpha change updates (0.0 seconds is as fast as the UI can do it)"],
disabled = function(i) return not (AloftAlpha.db.profile.targetAlpha or AloftAlpha.db.profile.nonTargetEnable or AloftAlpha.db.profile.defaultEnable) end,
order = 7,
min = 0.0,
max = 1.0,
step = 0.01,
get = function(i) return AloftAlpha.db.profile.interval end,
set = function(i, v) AloftAlpha.db.profile.interval = v end,
},
]]
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftPlayerTitleData/AloftPlayerTitleDataOptions.lua New file
0,0 → 1,35
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPlayerTitle", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftPlayerTitleDataOptions
if not L then return end
 
local AloftPlayerTitleData = Aloft:GetModule("PlayerTitleData", true)
if not AloftPlayerTitleData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.data.args.playerTitle =
{
type = 'toggle',
width = 'full',
name = L["Save Player Title Data"],
desc = L["Stores player title information between sessions"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftPlayerTitleData:IsEnabled() or not AloftPlayerTitleData.db or not AloftPlayerTitleData.db.profile end,
get = function(i) return AloftPlayerTitleData.db.profile.save end,
set = AloftPlayerTitleData.SetSaveData
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftPlayerTitleData/AloftPlayerTitleDataLocale.lua New file
0,0 → 1,142
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local oL = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPlayerTitle", function()
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] oL["Save Player Title Data"] = "Save Player Title Data"
--[[ enUS ]] oL["Stores player title information between sessions"] = "Stores player title information between sessions"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftPlayerTitle"] = "AloftPlayerTitle"
--[[ enUS ]] mL["Gather and display player titles on nameplates"] = "Gather and display player titles on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPlayerTitle", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] oL["Save Player Title Data"] = "Save Player Title Data"
--[[ koKR ]] oL["Stores player title information between sessions"] = "Stores player title information between sessions"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] mL["AloftPlayerTitle"] = "AloftPlayerTitle"
--[[ koKR ]] mL["Gather and display player titles on nameplates"] = "Gather and display player titles on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPlayerTitle", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] oL["Save Player Title Data"] = "Записать данные о титулах игрока"
--[[ ruRU ]] oL["Stores player title information between sessions"] = "Сохранять данные о титулах игрока между сессиями"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftPlayerTitle"] = "AloftPlayerTitle"
--[[ ruRU ]] mL["Gather and display player titles on nameplates"] = "Отображает титул игрока"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPlayerTitle", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] oL["Save Player Title Data"] = "保存玩家头衔数据"
--[[ zhCN ]] oL["Stores player title information between sessions"] = "在两次登录的间隔保存玩家头衔数据"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftPlayerTitle"] = "玩家称号"
--[[ zhCN ]] mL["Gather and display player titles on nameplates"] = "在姓名板上显示玩家称号"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPlayerTitle", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] oL["Save Player Title Data"] = "保存玩家頭銜數據"
--[[ zhTW ]] oL["Stores player title information between sessions"] = "登入期間保存玩家頭銜數據"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftPlayerTitle"] = "玩家稱號"
--[[ zhTW ]] mL["Gather and display player titles on nameplates"] = "在名牌上顯示玩家稱號"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftPlayerTitle", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftPlayerTitleDataOptions = setmetatable(oL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
oL = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftPlayerTitleData/AloftPlayerTitleDataModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftPlayerTitle =
{
type = 'toggle',
width = 'full',
name = L["AloftPlayerTitle"],
desc = L["Gather and display player titles on nameplates"],
get = function(i) return AloftModules.db.profile.AloftPlayerTitle end,
set = function(i, v) AloftModules.db.profile.AloftPlayerTitle = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftRaidIcon/AloftRaidIconOptions.lua New file
0,0 → 1,117
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftRaidIconOptions
if not L then return end
 
local AloftRaidIcon = Aloft:GetModule("RaidIcon", true)
if not AloftRaidIcon then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.raidIcon =
{
type = 'group',
name = L["Raid Icon"],
desc = L["Raid icon placement options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftRaidIcon:IsEnabled() or not AloftRaidIcon.db or not AloftRaidIcon.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enable raid icon display on the nameplate"],
get = function(i) return AloftRaidIcon.db.profile.enable end,
set = function(i, v) AloftRaidIcon.db.profile.enable = v AloftRaidIcon:UpdateAll() end,
order = 1
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust raid icon position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftRaidIcon:IsEnabled() or not AloftRaidIcon.db or not AloftRaidIcon.db.profile or not AloftRaidIcon.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the raid icon"],
get = function(i) return AloftRaidIcon.db.profile.point end,
set = function(i, v) AloftRaidIcon.db.profile.point = v AloftRaidIcon:UpdateAll() end,
values = { ["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"] },
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the raid icon"],
get = function(i) return AloftRaidIcon.db.profile.relativeToPoint end,
set = function(i, v) AloftRaidIcon.db.profile.relativeToPoint = v AloftRaidIcon:UpdateAll() end,
values = { ["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"] },
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the raid icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftRaidIcon.db.profile.offsetX end,
set = function(i, v) AloftRaidIcon.db.profile.offsetX = v AloftRaidIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the raid icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftRaidIcon.db.profile.offsetY end,
set = function(i, v) AloftRaidIcon.db.profile.offsetY = v AloftRaidIcon:UpdateAll() end
},
},
},
size =
{
type = 'range',
width = 'full',
name = L["Size"],
desc = L["Size in pixels of the raid icon"],
min = 4,
max = 64,
step = 1,
disabled = function(i) return not AloftRaidIcon.db.profile.enable end,
get = function(i) return AloftRaidIcon.db.profile.size end,
set = function(i, v) AloftRaidIcon.db.profile.size = v AloftRaidIcon:UpdateAll() end
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the raid icon alpha"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftRaidIcon.db.profile.enable end,
get = function(i) return AloftRaidIcon.db.profile.alpha end,
set = function(i, v) AloftRaidIcon.db.profile.alpha = v AloftRaidIcon:UpdateAll() end
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftRaidIcon/AloftRaidIconLocale.lua New file
0,0 → 1,194
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] L["Raid Icon"] = "Raid Icon"
--[[ enUS ]] L["Raid icon placement options"] = "Raid icon placement options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Enable raid icon display on the nameplate"] = "Enable raid icon display on the nameplate"
--[[ enUS ]] L["Size"] = "Size"
--[[ enUS ]] L["Size in pixels of the raid icon"] = "Size in pixels of the raid icon"
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust raid icon position"] = "Adjust raid icon position"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the raid icon"] = "X offset of the raid icon"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the raid icon"] = "Y offset of the raid icon"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the raid icon"] = "Sets the anchor for the raid icon"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the raid icon"] = "Sets the relative point on the health bar to anchor the raid icon"
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Sets the raid icon alpha"] = "Sets the raid icon alpha"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Raid Icon"] = "공격대 아이콘"
--[[ koKR ]] L["Raid icon placement options"] = "공격대 아이콘 배치 설정"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Enable raid icon display on the nameplate"] = "이름표에 공격대 아이콘을 표시합니다."
--[[ koKR ]] L["Size"] = "크기"
--[[ koKR ]] L["Size in pixels of the raid icon"] = "공격대 아이콘의 크기입니다."
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust raid icon position"] = "공격대 아이콘 위치 조절"
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the raid icon"] = "공격대 아이콘의 X 좌표 입니다."
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the raid icon"] = "공격대 아이콘의 Y 좌표 입니다."
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the raid icon"] = "공격대 아이콘의 앵커를 설정합니다."
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the raid icon"] = "생명력 바에서 공격대 아이콘의 앵커 위치를 설정합니다."
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Sets the raid icon alpha"] = "공격대 아이콘의 투명도를 설정합니다."
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Raid Icon"] = "Рейдовый значок"
--[[ ruRU ]] L["Raid icon placement options"] = "Настройки положения рейдового значка"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Enable raid icon display on the nameplate"] = "Включить рейдовый значок на табличке"
--[[ ruRU ]] L["Size"] = "Размер"
--[[ ruRU ]] L["Size in pixels of the raid icon"] = "Размер рейдового значка в пикселях"
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust raid icon position"] = "Задать место рейдового значка"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the raid icon"] = "Смещение рейдового значка по X"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the raid icon"] = "Смещение рейдового значка по Y"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the raid icon"] = "Задает прикрепление рейдового значка"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the raid icon"] = "Задает точку для положения рейдового значка относительно полоски здоровья"
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Sets the raid icon alpha"] = "Задает прозрачность рейдового значка"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Raid Icon"] = "团队图标"
--[[ zhCN ]] L["Raid icon placement options"] = "团队图标位置相关设置"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Enable raid icon display on the nameplate"] = "在姓名板上显示团队图标"
--[[ zhCN ]] L["Size"] = "尺寸"
--[[ zhCN ]] L["Size in pixels of the raid icon"] = "以像素定义的团队图标尺寸"
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust raid icon position"] = "调整团队图标的位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the raid icon"] = "团队图标的X轴偏移量"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the raid icon"] = "团队图标的Y轴偏移量"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the raid icon"] = "设定团队图标的锚点"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the raid icon"] = "设定团队图标固定在生命值显示条的相对位置"
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Sets the raid icon alpha"] = "设定团队图标的透明度"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Raid Icon"] = "團隊圖示"
--[[ zhTW ]] L["Raid icon placement options"] = "團隊圖示佈局選項"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Enable raid icon display on the nameplate"] = "在名牌顯示團隊圖示"
--[[ zhTW ]] L["Size"] = "大小"
--[[ zhTW ]] L["Size in pixels of the raid icon"] = "團隊圖示大小"
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust raid icon position"] = "團隊圖示位置"
--[[ zhTW ]] L["X Offset"] = "X位移"
--[[ zhTW ]] L["X offset of the raid icon"] = "團隊圖示X位移"
--[[ zhTW ]] L["Y Offset"] = "Y位移"
--[[ zhTW ]] L["Y offset of the raid icon"] = "團隊圖示Y位移"
--[[ zhTW ]] L["Anchor"] = "定位點"
--[[ zhTW ]] L["Sets the anchor for the raid icon"] = "團隊圖示定位點"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the raid icon"] = "團隊圖示固定在生命力條的位置"
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the raid icon alpha"] = "團隊圖示透明度"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftRaidIconOptions = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
AloftOptions/AloftRecentlyDamaged/AloftRecentlyDamagedLocale.lua New file
0,0 → 1,270
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local mL = AloftLocale.AloftModules
if not mL then return end
 
local L = { }
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftRecentlyDamaged", function()
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] L["Recently Damaged Icon"] = "Recently Damaged Icon"
--[[ enUS ]] L["Recently damaged icon placement options"] = "Recently damaged icon placement options"
--[[ enUS ]] L["Enable"] = "Enable"
--[[ enUS ]] L["Enable recently damaged icon display on the nameplate"] = "Enable recently damaged icon display on the nameplate"
--[[ enUS ]] L["Size"] = "Size"
--[[ enUS ]] L["Size in pixels of the recently damaged icon"] = "Size in pixels of the recently damaged icon"
--[[ enUS ]] L["Position"] = "Position"
--[[ enUS ]] L["Adjust recently damaged icon position"] = "Adjust recently damaged icon position"
--[[ enUS ]] L["X Offset"] = "X Offset"
--[[ enUS ]] L["X offset of the recently damaged icon"] = "X offset of the recently damaged icon"
--[[ enUS ]] L["Y Offset"] = "Y Offset"
--[[ enUS ]] L["Y offset of the recently damaged icon"] = "Y offset of the recently damaged icon"
--[[ enUS ]] L["Anchor"] = "Anchor"
--[[ enUS ]] L["Sets the anchor for the recently damaged icon"] = "Sets the anchor for the recently damaged icon"
--[[ enUS ]] L["Anchor To"] = "Anchor To"
--[[ enUS ]] L["Sets the relative point on the health bar to anchor the recently damaged icon"] = "Sets the relative point on the health bar to anchor the recently damaged icon"
--[[ enUS ]] L["Alpha"] = "Alpha"
--[[ enUS ]] L["Sets the recently damaged icon alpha"] = "Sets the recently damaged icon alpha"
 
--[[ enUS ]] L["TOPLEFT"] = "TOPLEFT"
--[[ enUS ]] L["TOP"] = "TOP"
--[[ enUS ]] L["TOPRIGHT"] = "TOPRIGHT"
--[[ enUS ]] L["LEFT"] = "LEFT"
--[[ enUS ]] L["CENTER"] = "CENTER"
--[[ enUS ]] L["RIGHT"] = "RIGHT"
--[[ enUS ]] L["BOTTOMLEFT"] = "BOTTOMLEFT"
--[[ enUS ]] L["BOTTOM"] = "BOTTOM"
--[[ enUS ]] L["BOTTOMRIGHT"] = "BOTTOMRIGHT"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ enUS ]] mL["AloftRecentlyDamaged"] = "AloftRecentlyDamaged"
--[[ enUS ]] mL["Display recently damaged icon on nameplates"] = "Display recently damaged icon on nameplates"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftRecentlyDamaged", function()
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Recently Damaged Icon"] = "최근 데미지 아이콘"
--[[ koKR ]] L["Recently damaged icon placement options"] = "최근 데미지 아이콘 배치 설정"
--[[ koKR ]] L["Enable"] = "사용"
--[[ koKR ]] L["Enable recently damaged icon display on the nameplate"] = "이름표에 최근 입힌 데미지 아이콘을 표시합니다."
--[[ koKR ]] L["Size"] = "크기"
--[[ koKR ]] L["Size in pixels of the recently damaged icon"] = "최근 데미지 아이콘의 크기입니다."
--[[ koKR ]] L["Position"] = "위치"
--[[ koKR ]] L["Adjust recently damaged icon position"] = "최근 데미지 아이콘 위치 조절"
--[[ koKR ]] L["X Offset"] = "X 좌표"
--[[ koKR ]] L["X offset of the recently damaged icon"] = "최근 데미지 아이콘의 X 좌표 입니다."
--[[ koKR ]] L["Y Offset"] = "Y 좌표"
--[[ koKR ]] L["Y offset of the recently damaged icon"] = "최근 데미지 아이콘의 Y 좌표 입니다."
--[[ koKR ]] L["Anchor"] = "앵커"
--[[ koKR ]] L["Sets the anchor for the recently damaged icon"] = "최근 데미지 아이콘의 앵커를 설정합니다."
--[[ koKR ]] L["Anchor To"] = "앵커 위치"
--[[ koKR ]] L["Sets the relative point on the health bar to anchor the recently damaged icon"] = "생명력 바에서 최근 데미지 아이콘의 앵커 위치를 설정합니다."
--[[ koKR ]] L["Alpha"] = "투명도"
--[[ koKR ]] L["Sets the recently damaged icon alpha"] = "최근 데미지 아이콘의 투명도를 설정합니다."
 
--[[ koKR ]] L["TOPLEFT"] = "좌측 상단"
--[[ koKR ]] L["TOP"] = "상단"
--[[ koKR ]] L["TOPRIGHT"] = "우측 상단"
--[[ koKR ]] L["LEFT"] = "좌측"
--[[ koKR ]] L["CENTER"] = "가운데"
--[[ koKR ]] L["RIGHT"] = "우측"
--[[ koKR ]] L["BOTTOMLEFT"] = "좌측 하단"
--[[ koKR ]] L["BOTTOM"] = "하단"
--[[ koKR ]] L["BOTTOMRIGHT"] = "우측 하단"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["AloftRecentlyDamaged"] = "AloftRecentlyDamaged"
--[[ koKR ]] L["Display recently damaged icon on nameplates"] = "Display recently damaged icon on nameplates"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftRecentlyDamaged", function()
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Recently Damaged Icon"] = "Значок недавно поврежденных"
--[[ ruRU ]] L["Recently damaged icon placement options"] = "Настройки положения для значка недавно поврежденных"
--[[ ruRU ]] L["Enable"] = "Включить"
--[[ ruRU ]] L["Enable recently damaged icon display on the nameplate"] = "Включить значок недавно поврежденного на табличке"
--[[ ruRU ]] L["Size"] = "Размер"
--[[ ruRU ]] L["Size in pixels of the recently damaged icon"] = "Размер значка недавно поврежденного в пикселях"
--[[ ruRU ]] L["Position"] = "Позиция"
--[[ ruRU ]] L["Adjust recently damaged icon position"] = "Задать место значка недавно поврежденного"
--[[ ruRU ]] L["X Offset"] = "Смещение по X"
--[[ ruRU ]] L["X offset of the recently damaged icon"] = "Смещение значка недавно поврежденного по Х"
--[[ ruRU ]] L["Y Offset"] = "Смещение по Y"
--[[ ruRU ]] L["Y offset of the recently damaged icon"] = "Смещение значка недавно поврежденного по Y"
--[[ ruRU ]] L["Anchor"] = "Точка прикрепления"
--[[ ruRU ]] L["Sets the anchor for the recently damaged icon"] = "Задает прикрепление значка недавно поврежденного"
--[[ ruRU ]] L["Anchor To"] = "Прикрепить к"
--[[ ruRU ]] L["Sets the relative point on the health bar to anchor the recently damaged icon"] = "Задает точку для положения значка недавно поврежденного относительно полоски здоровья"
--[[ ruRU ]] L["Alpha"] = "Прозрачность"
--[[ ruRU ]] L["Sets the recently damaged icon alpha"] = "Задает прозрачность значка недавно поврежденного"
 
--[[ ruRU ]] L["TOPLEFT"] = "ВВЕРХУ-СЛЕВА"
--[[ ruRU ]] L["TOP"] = "ВВЕРХУ"
--[[ ruRU ]] L["TOPRIGHT"] = "ВВЕРХУ-СПРАВА"
--[[ ruRU ]] L["LEFT"] = "СЛЕВА"
--[[ ruRU ]] L["CENTER"] = "ПО ЦЕНТРУ"
--[[ ruRU ]] L["RIGHT"] = "СПРАВА"
--[[ ruRU ]] L["BOTTOMLEFT"] = "СНИЗУ-СЛЕВА"
--[[ ruRU ]] L["BOTTOM"] = "СНИЗУ"
--[[ ruRU ]] L["BOTTOMRIGHT"] = "СНИЗУ-СПРАВА"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] mL["AloftRecentlyDamaged"] = "AloftRecentlyDamaged"
--[[ ruRU ]] mL["Display recently damaged icon on nameplates"] = "Отображает конку недавнего урона"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftRecentlyDamaged", function()
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Recently Damaged Icon"] = "最近受伤图标"
--[[ zhCN ]] L["Recently damaged icon placement options"] = "最近受伤图标位置相关设置"
--[[ zhCN ]] L["Enable"] = "启用"
--[[ zhCN ]] L["Enable recently damaged icon display on the nameplate"] = "在姓名板上显示最近受伤图标"
--[[ zhCN ]] L["Size"] = "尺寸"
--[[ zhCN ]] L["Size in pixels of the recently damaged icon"] = "最近受伤图标的尺寸"
--[[ zhCN ]] L["Position"] = "位置"
--[[ zhCN ]] L["Adjust recently damaged icon position"] = "调整最近受伤图标的位置"
--[[ zhCN ]] L["X Offset"] = "X轴偏移"
--[[ zhCN ]] L["X offset of the recently damaged icon"] = "最近受伤图标的X轴偏移量"
--[[ zhCN ]] L["Y Offset"] = "Y轴偏移"
--[[ zhCN ]] L["Y offset of the recently damaged icon"] = "最近受伤图标的Y轴偏移量"
--[[ zhCN ]] L["Anchor"] = "锚点"
--[[ zhCN ]] L["Sets the anchor for the recently damaged icon"] = "设定最近受伤图标的锚点"
--[[ zhCN ]] L["Anchor To"] = "固定在"
--[[ zhCN ]] L["Sets the relative point on the health bar to anchor the recently damaged icon"] = "设定最近受伤图标固定在生命值显示条的相对位置"
--[[ zhCN ]] L["Alpha"] = "透明度"
--[[ zhCN ]] L["Sets the recently damaged icon alpha"] = "设定最近受伤图标的透明度"
 
--[[ zhCN ]] L["TOPLEFT"] = "左上"
--[[ zhCN ]] L["TOP"] = "上"
--[[ zhCN ]] L["TOPRIGHT"] = "右上"
--[[ zhCN ]] L["LEFT"] = "å·¦"
--[[ zhCN ]] L["CENTER"] = "中"
--[[ zhCN ]] L["RIGHT"] = "右"
--[[ zhCN ]] L["BOTTOMLEFT"] = "左下"
--[[ zhCN ]] L["BOTTOM"] = "下"
--[[ zhCN ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] mL["AloftRecentlyDamaged"] = "最近受伤害"
--[[ zhCN ]] mL["Display recently damaged icon on nameplates"] = "在姓名板上显示最近受伤害图标"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftRecentlyDamaged", function()
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Recently Damaged Icon"] = "最近受傷圖示"
--[[ zhTW ]] L["Recently damaged icon placement options"] = "最近受傷圖示佈局選項"
--[[ zhTW ]] L["Enable"] = "啟用"
--[[ zhTW ]] L["Enable recently damaged icon display on the nameplate"] = "在名牌顯示最近受傷圖示"
--[[ zhTW ]] L["Size"] = "大小"
--[[ zhTW ]] L["Size in pixels of the recently damaged icon"] = "最近受傷圖示大小"
--[[ zhTW ]] L["Position"] = "位置"
--[[ zhTW ]] L["Adjust recently damaged icon position"] = "最近受傷圖示位置"
--[[ zhTW ]] L["X Offset"] = "X位移"
--[[ zhTW ]] L["X offset of the recently damaged icon"] = "最近受傷圖示X位移"
--[[ zhTW ]] L["Y Offset"] = "Y位移"
--[[ zhTW ]] L["Y offset of the recently damaged icon"] = "最近受傷圖示Y位移"
--[[ zhTW ]] L["Anchor"] = "定位點"
--[[ zhTW ]] L["Sets the anchor for the recently damaged icon"] = "最近受傷圖示定位點"
--[[ zhTW ]] L["Anchor To"] = "固定在"
--[[ zhTW ]] L["Sets the relative point on the health bar to anchor the recently damaged icon"] = "最近受傷圖示固定在生命力條的位置"
--[[ zhTW ]] L["Alpha"] = "透明度"
--[[ zhTW ]] L["Sets the recently damaged icon alpha"] = "最近受傷圖示透明度"
 
--[[ zhTW ]] L["TOPLEFT"] = "左上"
--[[ zhTW ]] L["TOP"] = "上"
--[[ zhTW ]] L["TOPRIGHT"] = "右上"
--[[ zhTW ]] L["LEFT"] = "å·¦"
--[[ zhTW ]] L["CENTER"] = "中"
--[[ zhTW ]] L["RIGHT"] = "右"
--[[ zhTW ]] L["BOTTOMLEFT"] = "左下"
--[[ zhTW ]] L["BOTTOM"] = "下"
--[[ zhTW ]] L["BOTTOMRIGHT"] = "右下"
 
-----------------------------------------------------------------------------
 
end)
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] mL["AloftRecentlyDamaged"] = "最近受傷害"
--[[ zhTW ]] mL["Display recently damaged icon on nameplates"] = "在名牌上顯示最近受傷害圖示"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftRecentlyDamaged", function()
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftRecentlyDamaged = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftRecentlyDamaged/AloftRecentlyDamagedModuleOptions.lua New file
0,0 → 1,25
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftModules
if not L then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.modules.args.aloftRecentlyDamaged =
{
type = 'toggle',
width = 'full',
name = L["AloftRecentlyDamaged"],
desc = L["Display recently damaged icon on nameplates"],
get = function(i) return AloftModules.db.profile.AloftRecentlyDamaged end,
set = function(i, v) AloftModules.db.profile.AloftRecentlyDamaged = v AloftModules:Initialize() AloftModules:Activate() end,
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftRecentlyDamaged/AloftRecentlyDamagedIconOptions.lua New file
0,0 → 1,123
local Aloft = Aloft
if not Aloft then return end
local AloftModules = AloftModules
if not AloftModules then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
AloftModules:AddInitializer("AloftRecentlyDamaged", function()
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftRecentlyDamaged
if not L then return end
 
local AloftRecentlyDamagedIcon = Aloft:GetModule("RecentlyDamagedIcon", true)
if not AloftRecentlyDamagedIcon then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.recentlyDamagedIcon =
{
type = 'group',
name = L["Recently Damaged Icon"],
desc = L["Recently damaged icon placement options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftRecentlyDamagedIcon:IsEnabled() or not AloftRecentlyDamagedIcon.db or not AloftRecentlyDamagedIcon.db.profile end,
args =
{
enable =
{
type = 'toggle',
width = 'full',
name = L["Enable"],
desc = L["Enable recently damaged icon display on the nameplate"],
get = function(i) return AloftRecentlyDamagedIcon.db.profile.enable end,
set = function(i, v) AloftRecentlyDamagedIcon.db.profile.enable = v Aloft:DetermineDataSources() AloftRecentlyDamagedIcon:UpdateAll() end,
order = 1
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust recently damaged icon position"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftRecentlyDamagedIcon:IsEnabled() or not AloftRecentlyDamagedIcon.db or not AloftRecentlyDamagedIcon.db.profile or not AloftRecentlyDamagedIcon.db.profile.enable end,
args =
{
anchor = {
type = 'select',
width = 'full',
name = L["Anchor"],
desc = L["Sets the anchor for the recently damaged icon"],
get = function(i) return AloftRecentlyDamagedIcon.db.profile.point end,
set = function(i, v) AloftRecentlyDamagedIcon.db.profile.point = v AloftRecentlyDamagedIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
anchorto = {
type = 'select',
width = 'full',
name = L["Anchor To"],
desc = L["Sets the relative point on the health bar to anchor the recently damaged icon"],
get = function(i) return AloftRecentlyDamagedIcon.db.profile.relativeToPoint end,
set = function(i, v) AloftRecentlyDamagedIcon.db.profile.relativeToPoint = v AloftRecentlyDamagedIcon:UpdateAll() end,
values = {["TOPLEFT"] = L["TOPLEFT"], ["TOP"] = L["TOP"], ["TOPRIGHT"] = L["TOPRIGHT"], ["LEFT"] = L["LEFT"], ["CENTER"] = L["CENTER"], ["RIGHT"] = L["RIGHT"], ["BOTTOMLEFT"] = L["BOTTOMLEFT"], ["BOTTOM"] = L["BOTTOM"], ["BOTTOMRIGHT"] = L["BOTTOMRIGHT"]},
},
offsetX =
{
type = 'range',
width = 'full',
name = L["X Offset"],
desc = L["X offset of the recently damaged icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftRecentlyDamagedIcon.db.profile.offsetX end,
set = function(i, v) AloftRecentlyDamagedIcon.db.profile.offsetX = v AloftRecentlyDamagedIcon:UpdateAll() end
},
offsetY =
{
type = 'range',
width = 'full',
name = L["Y Offset"],
desc = L["Y offset of the recently damaged icon"],
min = -128,
max = 128,
step = 1,
get = function(i) return AloftRecentlyDamagedIcon.db.profile.offsetY end,
set = function(i, v) AloftRecentlyDamagedIcon.db.profile.offsetY = v AloftRecentlyDamagedIcon:UpdateAll() end
},
},
},
size =
{
type = 'range',
width = 'full',
name = L["Size"],
desc = L["Size in pixels of the recently damaged icon"],
min = 4,
max = 64,
step = 1,
disabled = function(i) return not AloftRecentlyDamagedIcon.db.profile.enable end,
get = function(i) return AloftRecentlyDamagedIcon.db.profile.size end,
set = function(i, v) AloftRecentlyDamagedIcon.db.profile.size = v AloftRecentlyDamagedIcon:UpdateAll() end
},
alpha =
{
type = 'range',
width = 'full',
name = L["Alpha"],
desc = L["Sets the recently damaged icon alpha"],
min = 0,
max = 1.0,
step = 0.05,
disabled = function(i) return not AloftRecentlyDamagedIcon.db.profile.enable end,
get = function(i) return AloftRecentlyDamagedIcon.db.profile.alpha end,
set = function(i, v) AloftRecentlyDamagedIcon.db.profile.alpha = v AloftRecentlyDamagedIcon:UpdateAll() end
},
},
}
 
-----------------------------------------------------------------------------
 
end)
AloftOptions/AloftHealthBar/AloftHealthBarLocale.lua New file
0,0 → 1,470
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local bL = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] bL["Health Bar"] = "Health Bar"
--[[ enUS ]] bL["Health Bar options"] = "Health Bar options"
 
--[[ enUS ]] bL["Texture"] = "Texture"
--[[ enUS ]] bL["Sets the health bar texture"] = "Sets the health bar texture"
--[[ enUS ]] bL["Enable Horizontal Tiling"] = "Enable Horizontal Tiling"
--[[ enUS ]] bL["Enable horizontal tiling of the health bar texture"] = "Enable horizontal tiling of the health bar texture"
--[[ enUS ]] bL["Alpha"] = "Alpha"
--[[ enUS ]] bL["Sets the health bar alpha"] = "Sets the health bar alpha"
 
--[[ enUS ]] bL["Size"] = "Size"
--[[ enUS ]] bL["Adjust health bar's size"] = "Adjust health bar's size"
--[[ enUS ]] bL["Width"] = "Width"
--[[ enUS ]] bL["Sets the width of the health bar"] = "Sets the width of the health bar"
--[[ enUS ]] bL["Height"] = "Height"
--[[ enUS ]] bL["Sets the height of the health bar"] = "Sets the height of the health bar"
 
--[[ enUS ]] bL["Position"] = "Position"
--[[ enUS ]] bL["Adjust the health bar's position"] = "Adjust the health bar's position"
--[[ enUS ]] bL["Left Offset"] = "Left Offset"
--[[ enUS ]] bL["Sets the offset of the left of the health bar"] = "Sets the offset of the left of the health bar"
--[[ enUS ]] bL["Right Offset"] = "Right Offset"
--[[ enUS ]] bL["Sets the offset of the right of the health bar"] = "Sets the offset of the right of the health bar"
--[[ enUS ]] bL["Vertical Offset"] = "Vertical Offset"
--[[ enUS ]] bL["Sets the vertical offset of the health bar"] = "Sets the vertical offset of the health bar"
 
--[[ enUS ]] bL["Colors"] = "Colors"
--[[ enUS ]] bL["Customize colors"] = "Customize colors"
--[[ enUS ]] bL["Color by Class"] = "Color by Class"
--[[ enUS ]] bL["Sets the health bar color of players according to class"] = "Sets the health bar color of players according to class"
--[[ enUS ]] bL["Color Hostile by Class"] = "Color Hostile by Class"
--[[ enUS ]] bL["Sets the health bar color of hostile players according to class"] = "Sets the health bar color of hostile players according to class"
--[[ enUS ]] bL["Backdrop Color"] = "Backdrop Color"
--[[ enUS ]] bL["Sets the backdrop color of the health bar"] = "Sets the backdrop color of the health bar"
--[[ enUS ]] bL["Pet"] = "Pet"
--[[ enUS ]] bL["Sets the health bar color for your pet"] = "Sets the health bar color for your pet"
--[[ enUS ]] bL["Friendly Players"] = "Friendly Players"
--[[ enUS ]] bL["Sets the health bar color for friendly players"] = "Sets the health bar color for friendly players"
--[[ enUS ]] bL["Friendly Pets"] = "Friendly Pets"
--[[ enUS ]] bL["Sets the health bar color for friendly pets"] = "Sets the health bar color for friendly pets"
--[[ enUS ]] bL["Friendly NPCs"] = "Friendly NPCs"
--[[ enUS ]] bL["Sets the health bar color for friendly NPC Bosses"] = "Sets the health bar color for friendly NPC Bosses"
--[[ enUS ]] bL["Friendly Boss"] = "Friendly Boss"
--[[ enUS ]] bL["Sets the health bar color for friendly NPCs"] = "Sets the health bar color for friendly NPCs"
--[[ enUS ]] bL["Hostile Players"] = "Hostile Players"
--[[ enUS ]] bL["Sets the health bar color for hostile players"] = "Sets the health bar color for hostile players"
--[[ enUS ]] bL["Hostile Pets"] = "Hostile Pets"
--[[ enUS ]] bL["Sets the health bar color for hostile pets"] = "Sets the health bar color for hostile pets"
--[[ enUS ]] bL["Hostile NPCs"] = "Hostile NPCs"
--[[ enUS ]] bL["Sets the health bar color for hostile units"] = "Sets the health bar color for hostile units"
--[[ enUS ]] bL["Hostile Boss"] = "Hostile Boss"
--[[ enUS ]] bL["Sets the health bar color for hostile boss units"] = "Sets the health bar color for hostile boss units"
--[[ enUS ]] bL["Neutral Units"] = "Neutral Units"
--[[ enUS ]] bL["Sets the health bar color for neutral units"] = "Sets the health bar color for neutral units"
--[[ enUS ]] bL["Group Pets"] = "Group Pets"
--[[ enUS ]] bL["Sets the health bar color for group pets"] = "Sets the health bar color for group pets"
--[[ enUS ]] bL["Unknown"] = "Unknown"
--[[ enUS ]] bL["Sets the health bar color for unknown units"] = "Sets the health bar color for unknown units"
--[[ enUS ]] bL["Reset to Defaults"] = "Reset to Defaults"
--[[ enUS ]] bL["Resets all colors to their defaults"] = "Resets all colors to their defaults"
 
--[[ enUS ]] bL["Border"] = "Border"
--[[ 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["Sets the style of the health bar border"] = "Sets the style of the health bar border"
 
--[[ enUS ]] bL["Advanced"] = "Advanced"
--[[ enUS ]] bL["Options for expert users"] = "Options for expert users"
--[[ enUS ]] bL["Color Format"] = "Color Format"
--[[ 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)"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] bL["Health Bar"] = "생명력바"
--[[ koKR ]] bL["Health Bar options"] = "생명력바 설정"
 
--[[ koKR ]] bL["Texture"] = "텍스쳐"
--[[ koKR ]] bL["Sets the health bar texture"] = "생명력바의 텍스쳐를 설정합니다."
--[[ koKR ]] bL["Enable Horizontal Tiling"] = "Enable Horizontal Tiling"
--[[ koKR ]] bL["Enable horizontal tiling of the health bar texture"] = "Enable horizontal tiling of the health bar texture"
--[[ koKR ]] bL["Alpha"] = "투명도"
--[[ koKR ]] bL["Sets the health bar alpha"] = "생명력바의 투명도를 설정합니다."
 
--[[ koKR ]] bL["Size"] = "크기"
--[[ koKR ]] bL["Adjust health bar's size"] = "생명력바의 크기를 조절합니다."
--[[ koKR ]] bL["Width"] = "너비"
--[[ koKR ]] bL["Sets the width of the health bar"] = "생명력바의 너비를 설정합니다."
--[[ koKR ]] bL["Height"] = "높이"
--[[ koKR ]] bL["Sets the height of the health bar"] = "생명력바의 높이를 설정합니다."
 
--[[ koKR ]] bL["Position"] = "위치"
--[[ koKR ]] bL["Adjust the health bar's position"] = "생명력바의 위치를 조절합니다."
--[[ koKR ]] bL["Left Offset"] = "Left Offset"
--[[ koKR ]] bL["Sets the offset of the left of the health bar"] = "Sets the offset of the left of the health bar"
--[[ koKR ]] bL["Right Offset"] = "Right Offset"
--[[ koKR ]] bL["Sets the offset of the right of the health bar"] = "Sets the offset of the right of the health bar"
--[[ koKR ]] bL["Vertical Offset"] = "Vertical Offset"
--[[ koKR ]] bL["Sets the vertical offset of the health bar"] = "Sets the vertical offset of the health bar"
 
--[[ koKR ]] bL["Colors"] = "색상"
--[[ koKR ]] bL["Customize colors"] = "사용자 색상"
--[[ koKR ]] bL["Color by Class"] = "직업에 따른 색상"
--[[ koKR ]] bL["Sets the health bar color of players according to class"] = "플레이어의 생명력바에 직업별 색상을 설정합니다."
--[[ koKR ]] bL["Color Hostile by Class"] = "적대적 직업별 색상"
--[[ koKR ]] bL["Sets the health bar color of hostile players according to class"] = "적대적 플레이어의 생명력바에 직업별 색상을 설정합니다."
--[[ koKR ]] bL["Backdrop Color"] = "배경 색상"
--[[ koKR ]] bL["Sets the backdrop color of the health bar"] = "생명력바의 배경 색상을 설정합니다."
--[[ koKR ]] bL["Pet"] = "소환수"
--[[ koKR ]] bL["Sets the health bar color for your pet"] = "소환수의 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Friendly Players"] = "우호적 플레이어"
--[[ koKR ]] bL["Sets the health bar color for friendly players"] = "우호적 플레이어에 대한 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Friendly Pets"] = "우호적 소환수"
--[[ koKR ]] bL["Sets the health bar color for friendly pets"] = "우호적 소환수의 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Friendly NPCs"] = "우호적 NPC"
--[[ koKR ]] bL["Sets the health bar color for friendly NPC Bosses"] = "우호적 NPC 보스에 대한 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Friendly Boss"] = "우호적 보스"
--[[ koKR ]] bL["Sets the health bar color for friendly NPCs"] = "우호적 NPC에 대한 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Hostile Players"] = "적대적 플레이어"
--[[ koKR ]] bL["Sets the health bar color for hostile players"] = "적대적 플레이어의 생명력바의 색상을 설정합니다."
--[[ koKR ]] bL["Hostile Pets"] = "적대적 소환수"
--[[ koKR ]] bL["Sets the health bar color for hostile pets"] = "적대적 소환수의 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Hostile NPCs"] = "적대적 NPC"
--[[ koKR ]] bL["Sets the health bar color for hostile units"] = "적대적 대상에 대한 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Hostile Boss"] = "적대적 보스"
--[[ koKR ]] bL["Sets the health bar color for hostile boss units"] = "적대적 보스에 대한 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Neutral Units"] = "중립적 대상"
--[[ koKR ]] bL["Sets the health bar color for neutral units"] = "중립적 대상에 대한 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Group Pets"] = "파티 소환수"
--[[ koKR ]] bL["Sets the health bar color for group pets"] = "파티 소환수에 대한 생명력바 색상을 설정합니다."
--[[ koKR ]] bL["Unknown"] = "Unknown"
--[[ koKR ]] bL["Sets the health bar color for unknown units"] = "Sets the health bar color for unknown units"
--[[ koKR ]] bL["Reset to Defaults"] = "기본값으로 초기화"
--[[ koKR ]] bL["Resets all colors to their defaults"] = "모든 색상을 기본값으로 초기화합니다."
 
--[[ koKR ]] bL["Border"] = "Border"
--[[ 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["Sets the style of the health bar border"] = "Sets the style of the health bar border"
 
--[[ koKR ]] bL["Advanced"] = "고급"
--[[ koKR ]] bL["Options for expert users"] = "고급 사용자를 위한 설정입니다."
--[[ koKR ]] bL["Color Format"] = "색상 형식"
--[[ 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)"
 
-----------------------------------------------------------------------------
 
-- end)
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] bL["Health Bar"] = "Полоска здоровья"
--[[ ruRU ]] bL["Health Bar options"] = "Настройка полосы здоровья"
 
--[[ ruRU ]] bL["Texture"] = "Текстура"
--[[ ruRU ]] bL["Sets the health bar texture"] = "Задает текстуру полоски здоровья"
--[[ ruRU ]] bL["Enable Horizontal Tiling"] = "Enable Horizontal Tiling"
--[[ ruRU ]] bL["Enable horizontal tiling of the health bar texture"] = "Enable horizontal tiling of the health bar texture"
--[[ ruRU ]] bL["Alpha"] = "Прозрачность"
--[[ ruRU ]] bL["Sets the health bar alpha"] = "Задает прозрачность полоски здоровья"
 
--[[ ruRU ]] bL["Size"] = "Размер"
--[[ ruRU ]] bL["Adjust health bar's size"] = "Задать размер полоски здоровья"
--[[ ruRU ]] bL["Width"] = "Ширина"
--[[ ruRU ]] bL["Sets the width of the health bar"] = "Задает ширину полоски здоровья"
--[[ ruRU ]] bL["Height"] = "Высота"
--[[ ruRU ]] bL["Sets the height of the health bar"] = "Задает высоту полоски здоровья"
 
--[[ ruRU ]] bL["Position"] = "Позиция"
--[[ ruRU ]] bL["Adjust the health bar's position"] = "Задать место полоски здоровья"
--[[ ruRU ]] bL["Left Offset"] = "Смещение влево"
--[[ ruRU ]] bL["Sets the offset of the left of the health bar"] = "Смещение текста на полосе здоровья влево"
--[[ ruRU ]] bL["Right Offset"] = "Смещение вправо"
--[[ ruRU ]] bL["Sets the offset of the right of the health bar"] = "Смещение текста на полосе здоровья вправо"
--[[ ruRU ]] bL["Vertical Offset"] = "Смещение по вертикале"
--[[ ruRU ]] bL["Sets the vertical offset of the health bar"] = "Смещение текста на полосе здоровья по вертикале"
 
--[[ ruRU ]] bL["Colors"] = "Цвета"
--[[ ruRU ]] bL["Customize colors"] = "Настройка цветов"
--[[ ruRU ]] bL["Color by Class"] = "Окрашивать в цвет класса"
--[[ ruRU ]] bL["Sets the health bar color of players according to class"] = "Задает цвет полоски здоровья в зависимости от класса"
--[[ ruRU ]] bL["Color Hostile by Class"] = "Окрашивать враждебных в цвет класса"
--[[ ruRU ]] bL["Sets the health bar color of hostile players according to class"] = "Задает цвет полоски здоровья для враждебных игроков в зависимости от класса"
--[[ ruRU ]] bL["Backdrop Color"] = "Цвет тени"
--[[ ruRU ]] bL["Sets the backdrop color of the health bar"] = "Задает цвет тени полоски здоровья"
--[[ ruRU ]] bL["Pet"] = "Питомец"
--[[ ruRU ]] bL["Sets the health bar color for your pet"] = "Задает цвет полоски здоровья для вашего питомца"
--[[ ruRU ]] bL["Friendly Players"] = "Дружественные игроки"
--[[ ruRU ]] bL["Sets the health bar color for friendly players"] = "Задает цвет полоски здоровья для дружественных игроков"
--[[ ruRU ]] bL["Friendly Pets"] = "Дружественные питомцы"
--[[ ruRU ]] bL["Sets the health bar color for friendly pets"] = "Задает цвет полоски здоровья для дружественных питомцев"
--[[ ruRU ]] bL["Friendly NPCs"] = "Дружественные NPC"
--[[ ruRU ]] bL["Sets the health bar color for friendly NPC Bosses"] = "Задает цвет полоски здоровья для дружественных НИПов боссов"
--[[ ruRU ]] bL["Friendly Boss"] = "Дружественный босс"
--[[ ruRU ]] bL["Sets the health bar color for friendly NPCs"] = "Задает цвет полоски здоровья для дружественных НИПов"
--[[ ruRU ]] bL["Hostile Players"] = "Враждебные игроки"
--[[ ruRU ]] bL["Sets the health bar color for hostile players"] = "Задает цвет полоски здоровья для враждебных игроков"
--[[ ruRU ]] bL["Hostile Pets"] = "Враждебные питомцы"
--[[ ruRU ]] bL["Sets the health bar color for hostile pets"] = "Задает цвет полоски здоровья для враждебных питомцев"
--[[ ruRU ]] bL["Hostile NPCs"] = "Враждебные NPC"
--[[ ruRU ]] bL["Sets the health bar color for hostile units"] = "Задает цвет полоски здоровья для враждебных единиц"
--[[ ruRU ]] bL["Hostile Boss"] = "Враждебный босс"
--[[ ruRU ]] bL["Sets the health bar color for hostile boss units"] = "Задает цвет полоски здоровья для враждебных боссов"
--[[ ruRU ]] bL["Neutral Units"] = "Нейтральные цели"
--[[ ruRU ]] bL["Sets the health bar color for neutral units"] = "Задает цвет полоски здоровья для нейтральных"
--[[ ruRU ]] bL["Group Pets"] = "Питомцы группы"
--[[ ruRU ]] bL["Sets the health bar color for group pets"] = "Задает цвет полоски здоровья для питомцев группы"
--[[ ruRU ]] bL["Unknown"] = "Unknown"
--[[ ruRU ]] bL["Sets the health bar color for unknown units"] = "Sets the health bar color for unknown units"
--[[ ruRU ]] bL["Reset to Defaults"] = "Сброс в настройки по умолчанию"
--[[ ruRU ]] bL["Resets all colors to their defaults"] = "Сбрасывает все цвета в настройки по умолчанию"
 
--[[ ruRU ]] bL["Border"] = "Края"
--[[ 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["Sets the style of the health bar border"] = "Sets the style of the health bar border"
 
--[[ ruRU ]] bL["Advanced"] = "Дополнительно"
--[[ ruRU ]] bL["Options for expert users"] = "Настройки для опытных пользователей"
--[[ ruRU ]] bL["Color Format"] = "Формат цвета"
--[[ 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)"] = "Отображать на полоске здоровья дефицит здоровья (растет справа с уменьшением здоровья)"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] bL["Health Bar"] = "生命值显示条"
--[[ zhCN ]] bL["Health Bar options"] = "生命值显示条相关设置"
 
--[[ zhCN ]] bL["Texture"] = "材质"
--[[ zhCN ]] bL["Sets the health bar texture"] = "设定生命值显示条的材质"
--[[ zhCN ]] bL["Enable Horizontal Tiling"] = "Enable Horizontal Tiling"
--[[ zhCN ]] bL["Enable horizontal tiling of the health bar texture"] = "Enable horizontal tiling of the health bar texture"
--[[ zhCN ]] bL["Alpha"] = "透明度"
--[[ zhCN ]] bL["Sets the health bar alpha"] = "设定生命值显示条透明度"
 
--[[ zhCN ]] bL["Size"] = "尺寸"
--[[ zhCN ]] bL["Adjust health bar's size"] = "调整生命值显示条的尺寸"
--[[ zhCN ]] bL["Width"] = "宽度"
--[[ zhCN ]] bL["Sets the width of the health bar"] = "设定生命值显示条的宽度"
--[[ zhCN ]] bL["Height"] = "高度"
--[[ zhCN ]] bL["Sets the height of the health bar"] = "设定生命值显示条的高度"
 
--[[ zhCN ]] bL["Position"] = "位置"
--[[ zhCN ]] bL["Adjust the health bar's position"] = "调整生命值显示条的位置"
--[[ zhCN ]] bL["Left Offset"] = "Left Offset"
--[[ zhCN ]] bL["Sets the offset of the left of the health bar"] = "Sets the offset of the left of the health bar"
--[[ zhCN ]] bL["Right Offset"] = "Right Offset"
--[[ zhCN ]] bL["Sets the offset of the right of the health bar"] = "Sets the offset of the right of the health bar"
--[[ zhCN ]] bL["Vertical Offset"] = "Vertical Offset"
--[[ zhCN ]] bL["Sets the vertical offset of the health bar"] = "Sets the vertical offset of the health bar"
 
--[[ zhCN ]] bL["Colors"] = "颜色"
--[[ zhCN ]] bL["Customize colors"] = "自定义颜色"
--[[ zhCN ]] bL["Color by Class"] = "显示职业代表色"
--[[ zhCN ]] bL["Sets the health bar color of players according to class"] = "生命值显示条颜色使用职业颜色"
--[[ zhCN ]] bL["Color Hostile by Class"] = "敌对方单位根据职业显示颜色"
--[[ zhCN ]] bL["Sets the health bar color of hostile players according to class"] = "敌对方玩家的生命值显示条颜色使用职业代表色"
--[[ zhCN ]] bL["Backdrop Color"] = "背景颜色"
--[[ zhCN ]] bL["Sets the backdrop color of the health bar"] = "设定生命值显示条的背景颜色"
--[[ zhCN ]] bL["Pet"] = "宠物"
--[[ zhCN ]] bL["Sets the health bar color for your pet"] = "设定宠物的生命值显示条颜色"
--[[ zhCN ]] bL["Friendly Players"] = "友好方玩家"
--[[ zhCN ]] bL["Sets the health bar color for friendly players"] = "设定友好方玩家的生命值显示条颜色"
--[[ zhCN ]] bL["Friendly Pets"] = "友好方宠物"
--[[ zhCN ]] bL["Sets the health bar color for friendly pets"] = "设定友好方宠物的生命值显示条颜色"
--[[ zhCN ]] bL["Friendly NPCs"] = "友好方NPC"
--[[ zhCN ]] bL["Sets the health bar color for friendly NPC Bosses"] = "设定友好方NPC的生命值显示条颜色"
--[[ zhCN ]] bL["Friendly Boss"] = "友好方首领"
--[[ zhCN ]] bL["Sets the health bar color for friendly NPCs"] = "设定友好方首领的生命值显示条颜色"
--[[ zhCN ]] bL["Hostile Players"] = "敌对方玩家"
--[[ zhCN ]] bL["Sets the health bar color for hostile players"] = "设定敌对方玩家的生命值显示条颜色"
--[[ zhCN ]] bL["Hostile Pets"] = "敌对方宠物"
--[[ zhCN ]] bL["Sets the health bar color for hostile pets"] = "设定敌对方宠物的生命值显示条颜色"
--[[ zhCN ]] bL["Hostile NPCs"] = "敌对方NPC"
--[[ zhCN ]] bL["Sets the health bar color for hostile units"] = "设定敌对方NPC的生命值显示条颜色"
--[[ zhCN ]] bL["Hostile Boss"] = "敌对方首领"
--[[ zhCN ]] bL["Sets the health bar color for hostile boss units"] = "设定敌对方首领的生命值显示条颜色"
--[[ zhCN ]] bL["Neutral Units"] = "中立方单位"
--[[ zhCN ]] bL["Sets the health bar color for neutral units"] = "设定中立方单位的生命值显示条颜色"
--[[ zhCN ]] bL["Group Pets"] = "队友宠物"
--[[ zhCN ]] bL["Sets the health bar color for group pets"] = "队友宠物的生命值显示条颜色"
--[[ zhCN ]] bL["Unknown"] = "Unknown"
--[[ zhCN ]] bL["Sets the health bar color for unknown units"] = "Sets the health bar color for unknown units"
--[[ zhCN ]] bL["Reset to Defaults"] = "重置为默认"
--[[ zhCN ]] bL["Resets all colors to their defaults"] = "将全部颜色设定重置为默认"
 
--[[ zhCN ]] bL["Border"] = "Border"
--[[ 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["Sets the style of the health bar border"] = "Sets the style of the health bar border"
 
--[[ zhCN ]] bL["Advanced"] = "高级"
--[[ zhCN ]] bL["Options for expert users"] = "高级设置"
--[[ zhCN ]] bL["Color Format"] = "颜色格式"
--[[ 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)"] = "将生命条显示为亏减模式(随着生命值丧失从右侧增长)"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] bL["Health Bar"] = "生命力條"
--[[ zhTW ]] bL["Health Bar options"] = "生命力條選項"
 
--[[ zhTW ]] bL["Texture"] = "紋理"
--[[ zhTW ]] bL["Sets the health bar texture"] = "生命力條紋理"
--[[ zhTW ]] bL["Enable Horizontal Tiling"] = "Enable Horizontal Tiling"
--[[ zhTW ]] bL["Enable horizontal tiling of the health bar texture"] = "Enable horizontal tiling of the health bar texture"
--[[ zhTW ]] bL["Alpha"] = "透明度"
--[[ zhTW ]] bL["Sets the health bar alpha"] = "生命力條透明度"
 
--[[ zhTW ]] bL["Size"] = "大小"
--[[ zhTW ]] bL["Adjust health bar's size"] = "生命力條大小"
--[[ zhTW ]] bL["Width"] = "寬度"
--[[ zhTW ]] bL["Sets the width of the health bar"] = "生命力條寬度"
--[[ zhTW ]] bL["Height"] = "高度"
--[[ zhTW ]] bL["Sets the height of the health bar"] = "生命力條高度"
 
--[[ zhTW ]] bL["Position"] = "位置"
--[[ zhTW ]] bL["Adjust the health bar's position"] = "生命力條位置"
--[[ zhTW ]] bL["Left Offset"] = "Left Offset"
--[[ zhTW ]] bL["Sets the offset of the left of the health bar"] = "Sets the offset of the left of the health bar"
--[[ zhTW ]] bL["Right Offset"] = "Right Offset"
--[[ zhTW ]] bL["Sets the offset of the right of the health bar"] = "Sets the offset of the right of the health bar"
--[[ zhTW ]] bL["Vertical Offset"] = "Vertical Offset"
--[[ zhTW ]] bL["Sets the vertical offset of the health bar"] = "Sets the vertical offset of the health bar"
 
--[[ zhTW ]] bL["Colors"] = "顏色"
--[[ zhTW ]] bL["Customize colors"] = "自定顏色"
--[[ zhTW ]] bL["Color by Class"] = "根據職業上色"
--[[ zhTW ]] bL["Sets the health bar color of players according to class"] = "生命力條顏色使用職業顏色"
--[[ zhTW ]] bL["Color Hostile by Class"] = "敵對單位根據職業上色"
--[[ zhTW ]] bL["Sets the health bar color of hostile players according to class"] = "敵對玩家的生命力條顏色使用職業顏色"
--[[ zhTW ]] bL["Backdrop Color"] = "背景顏色"
--[[ zhTW ]] bL["Sets the backdrop color of the health bar"] = "生命力條背景顏色"
--[[ zhTW ]] bL["Pet"] = "寵物"
--[[ zhTW ]] bL["Sets the health bar color for your pet"] = "寵物的生命力條顏色"
--[[ zhTW ]] bL["Friendly Players"] = "友好玩家"
--[[ zhTW ]] bL["Sets the health bar color for friendly players"] = "友好玩家的生命力條顏色"
--[[ zhTW ]] bL["Friendly Pets"] = "友好寵物"
--[[ zhTW ]] bL["Sets the health bar color for friendly pets"] = "友好寵物的生命力條顏色"
--[[ zhTW ]] bL["Friendly NPCs"] = "友好NPC"
--[[ zhTW ]] bL["Sets the health bar color for friendly NPC Bosses"] = "友好NPC的生命力條顏色"
--[[ zhTW ]] bL["Friendly Boss"] = "友好首領"
--[[ zhTW ]] bL["Sets the health bar color for friendly NPCs"] = "友好首領的生命力條顏色"
--[[ zhTW ]] bL["Hostile Players"] = "敵對玩家"
--[[ zhTW ]] bL["Sets the health bar color for hostile players"] = "敵對玩家的生命力條顏色"
--[[ zhTW ]] bL["Hostile Pets"] = "敵對寵物"
--[[ zhTW ]] bL["Sets the health bar color for hostile pets"] = "敵對寵物的生命力條顏色"
--[[ zhTW ]] bL["Hostile NPCs"] = "敵對NPC"
--[[ zhTW ]] bL["Sets the health bar color for hostile units"] = "敵對NPC的生命力條顏色"
--[[ zhTW ]] bL["Hostile Boss"] = "敵對玩家"
--[[ zhTW ]] bL["Sets the health bar color for hostile boss units"] = "敵對首領的生命力條顏色"
--[[ zhTW ]] bL["Neutral Units"] = "中立單位"
--[[ zhTW ]] bL["Sets the health bar color for neutral units"] = "中立單位的生命力條顏色"
--[[ zhTW ]] bL["Group Pets"] = "團體寵物"
--[[ zhTW ]] bL["Sets the health bar color for group pets"] = "團體寵物的生命力條顏色"
--[[ zhTW ]] bL["Unknown"] = "Unknown"
--[[ zhTW ]] bL["Sets the health bar color for unknown units"] = "Sets the health bar color for unknown units"
--[[ zhTW ]] bL["Reset to Defaults"] = "重設回預設值"
--[[ zhTW ]] bL["Resets all colors to their defaults"] = "重設全部顏色回預設值"
 
--[[ zhTW ]] bL["Border"] = "Border"
--[[ 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["Sets the style of the health bar border"] = "Sets the style of the health bar border"
 
--[[ zhTW ]] bL["Advanced"] = "進階"
--[[ zhTW ]] bL["Options for expert users"] = "進階選項"
--[[ zhTW ]] bL["Color Format"] = "顏色格式"
--[[ 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)"] = "將生命條顯示為虧減模式(隨著生命值喪失從右側增長)"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftHealthBar = setmetatable(bL, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
bL = nil
 
-----------------------------------------------------------------------------
AloftOptions/AloftHealthBar/AloftHealthBarOptions.lua New file
0,0 → 1,429
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftHealthBar
if not L then return end
 
local AloftHealthBar = Aloft:GetModule("HealthBar")
if not AloftHealthBar then return end
 
local SML = LibStub("LibSharedMedia-3.0")
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.healthBar =
{
type = 'group',
name = L["Health Bar"],
desc = L["Health Bar options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthBar:IsEnabled() or not AloftHealthBar.db or not AloftHealthBar.db.profile end,
args =
{
height =
{
type = 'range',
width = "full",
name = L["Height"],
desc = L["Sets the height of the health bar"],
order = 1,
min = 1,
max = 128,
step = 1,
get = function(i) return AloftHealthBar.db.profile.height end,
set = function(i, v) AloftHealthBar.db.profile.height = v AloftHealthBar:UpdateAll() end
},
position =
{
type = 'group',
name = L["Position"],
desc = L["Adjust the health bar's position"],
order = 2,
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthBar:IsEnabled() or not AloftHealthBar.db or not AloftHealthBar.db.profile end,
args =
{
left =
{
type = 'range',
width = "full",
name = L["Left Offset"],
desc = L["Sets the offset of the left of the health bar"],
order = 1,
min = -128,
max = 128,
step = 1,
get = function(i) return AloftHealthBar.db.profile.offsets.left end,
set = function(i, v) AloftHealthBar.db.profile.offsets.left = v AloftHealthBar:UpdateAll() end
},
right =
{
type = 'range',
width = "full",
name = L["Right Offset"],
desc = L["Sets the offset of the right of the health bar"],
order = 2,
min = -128,
max = 128,
step = 1,
get = function(i) return AloftHealthBar.db.profile.offsets.right end,
set = function(i, v) AloftHealthBar.db.profile.offsets.right = v AloftHealthBar:UpdateAll() end
},
vertical =
{
type = 'range',
width = "full",
name = L["Vertical Offset"],
desc = L["Sets the vertical offset of the health bar"],
order = 3,
min = -128,
max = 128,
step = 1,
get = function(i) return AloftHealthBar.db.profile.offsets.vertical end,
set = function(i, v) AloftHealthBar.db.profile.offsets.vertical = v AloftHealthBar:UpdateAll() end
},
},
},
texture =
{
type = 'select',
width = "full",
name = L["Texture"],
desc = L["Sets the health bar texture"],
order = 3,
get = function(i)
for k, v in pairs(Aloft.Options.args.healthBar.args.texture.values) do
if v == AloftHealthBar.db.profile.texture then
return k
end
end
end,
set = function(i, v)
AloftHealthBar.db.profile.texture = Aloft.Options.args.healthBar.args.texture.values[v]
Aloft:DetermineDataSources()
AloftHealthBar:UpdateAll()
end,
values = SML:List("statusbar")
},
tileHoriz =
{
type = 'toggle',
width = "full",
name = L["Enable Horizontal Tiling"],
desc = L["Enable horizontal tiling of the health bar texture"],
order = 4,
get = function(i) return AloftHealthBar.db.profile.tileHoriz end,
set = function(i, v) AloftHealthBar.db.profile.tileHoriz = v AloftHealthBar:UpdateAll() end
},
border = {
type = 'group',
name = L["Border"],
desc = L["Border options"],
order = 5,
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthBar:IsEnabled() or not AloftHealthBar.db or not AloftHealthBar.db.profile end,
args =
{
targetOnly =
{
type = 'toggle',
width = "full",
name = L["Target Only"],
desc = L["Enables the border on the current target only"],
order = 1,
get = function(i) return AloftHealthBar.db.profile.targetOnly end,
set = function(i, v) AloftHealthBar.db.profile.targetOnly = v Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end,
disabled = function(i) return AloftHealthBar.db.profile.border == "None" end,
},
style =
{
type = 'select',
width = "full",
name = L["Border Style"],
desc = L["Sets the style of the health bar border"],
order = 2,
get = function(i)
for k, v in pairs(Aloft.Options.args.healthBar.args.border.args.style.values) do
if v == AloftHealthBar.db.profile.border then
return k
end
end
end,
set = function(i, v)
AloftHealthBar.db.profile.border = Aloft.Options.args.healthBar.args.border.args.style.values[v]
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',
width = "full",
name = L["Border Color"],
desc = L["Sets the border color of the health bar"],
order = 3,
get = function(i) return unpack(AloftHealthBar.db.profile.borderColor) end,
set = function(i, r, g, b, a) AloftHealthBar.db.profile.borderColor = { r, g, b, a } AloftHealthBar:UpdateAll() end,
disabled = function(i) return AloftHealthBar.db.profile.border == "None" end,
hasAlpha = true,
},
},
},
alpha =
{
type = 'range',
width = "full",
name = L["Alpha"],
desc = L["Sets the health bar alpha"],
order = 6,
min = 0,
max = 1.0,
step = 0.05,
get = function(i) return AloftHealthBar.db.profile.alpha end,
set = function(i, v) AloftHealthBar.db.profile.alpha = v AloftHealthBar:UpdateAll() end,
},
colors =
{
type = 'group',
name = L["Colors"],
desc = L["Customize colors"],
order = 7,
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthBar:IsEnabled() or not AloftHealthBar.db or not AloftHealthBar.db.profile end,
args =
{
colorByClass =
{
type = 'toggle',
width = "full",
name = L["Color by Class"],
desc = L["Sets the health bar color of players according to class"],
get = function(i) return AloftHealthBar.db.profile.colorByClass end,
set = function(i, v) AloftHealthBar.db.profile.colorByClass = v Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end,
order = 1
},
colorHostileByClass =
{
type = 'toggle',
width = "full",
name = L["Color Hostile by Class"],
desc = L["Sets the health bar color of hostile players according to class"],
get = function(i) return AloftHealthBar.db.profile.colorHostileByClass end,
set = function(i, v) AloftHealthBar.db.profile.colorHostileByClass = v Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end,
order = 2
},
backdrop =
{
type = 'color',
width = "full",
name = L["Backdrop Color"],
desc = L["Sets the backdrop color of the health bar"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.backdropColor) end,
set = function(i, r, g, b, a) AloftHealthBar.db.profile.colors.backdropColor = { r, g, b, a } AloftHealthBar:UpdateAll() end,
hasAlpha = true,
order = 3
},
friendlyPlayer =
{
type = 'color',
width = "full",
name = L["Friendly Players"],
desc = L["Sets the health bar color for friendly players"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.friendlyPlayer) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.friendlyPlayer = { r, g, b } AloftHealthBar:UpdateAll() end
},
friendlyPet =
{
type = 'color',
width = "full",
name = L["Friendly Pets"],
desc = L["Sets the health bar color for friendly pets"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.friendlyPet) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.friendlyPet = { r, g, b } Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end
},
friendlyNPC =
{
type = 'color',
width = "full",
name = L["Friendly NPCs"],
desc = L["Sets the health bar color for friendly NPCs"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.friendlyNPC) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.friendlyNPC = { r, g, b } Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end
},
friendlyBoss =
{
type = 'color',
width = "full",
name = L["Friendly Boss"],
desc = L["Sets the health bar color for friendly NPC Bosses"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.friendlyBoss) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.friendlyBoss = { r, g, b } AloftHealthBar:UpdateAll() end
},
hostilePlayer =
{
type = 'color',
width = "full",
name = L["Hostile Players"],
desc = L["Sets the health bar color for hostile players"],
disabled = function(i) return AloftHealthBar.db.profile.colorHostileByClass end,
get = function(i) return unpack(AloftHealthBar.db.profile.colors.hostilePlayer) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.hostilePlayer = { r, g, b } Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end
},
hostilePet =
{
type = 'color',
width = "full",
name = L["Hostile Pets"],
desc = L["Sets the health bar color for hostile pets"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.hostilePet) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.hostilePet = { r, g, b } Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end
},
hostileNPC =
{
type = 'color',
width = "full",
name = L["Hostile NPCs"],
desc = L["Sets the health bar color for hostile units"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.hostileNPC) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.hostileNPC = { r, g, b } Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end
},
hostileBoss =
{
type = 'color',
width = "full",
name = L["Hostile Boss"],
desc = L["Sets the health bar color for hostile boss units"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.hostileBoss) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.hostileBoss = { r, g, b } AloftHealthBar:UpdateAll() end
},
neutral =
{
type = 'color',
width = "full",
name = L["Neutral Units"],
desc = L["Sets the health bar color for neutral units"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.neutral) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.neutral = { r, g, b } AloftHealthBar:UpdateAll() end
},
pet =
{
type = 'color',
width = "full",
name = L["Pet"],
desc = L["Sets the health bar color for your pet"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.pet) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.pet = { r, g, b } AloftHealthBar:UpdateAll() end
},
groupPet =
{
type = 'color',
width = "full",
name = L["Group Pets"],
desc = L["Sets the health bar color for group pets"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.groupPet) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.groupPet = { r, g, b } Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end
},
unknown =
{
type = 'color',
name = L["Unknown"],
desc = L["Sets the health bar color for unknown units"],
get = function(i) return unpack(AloftHealthBar.db.profile.colors.unknown) end,
set = function(i, r, g, b) AloftHealthBar.db.profile.colors.unknown = { r, g, b } Aloft:DetermineDataSources() AloftHealthBar:UpdateAll() end
},
reset =
{
type = 'execute',
width = "full",
name = L["Reset to Defaults"],
desc = L["Resets all colors to their defaults"],
order = -1,
func = function(i)
local colors = AloftHealthBar.db.profile.colors
colors.backdropColor = { 0.25, 0.25, 0.25, 0.5 }
colors.friendlyPlayer = { 0, 0, 1 }
colors.friendlyPet = { 0, 1, 0 }
colors.friendlyNPC = { 0, 1, 0 }
colors.friendlyBoss = { 0, 1, 0 }
colors.hostilePlayer = { 1, 0, 0 }
colors.hostilePet = { 1, 0, 0 }
colors.hostileNPC = { 1, 0, 0 }
colors.hostileBoss = { 1, 0, 0 }
colors.neutral = { 1, 1, 0 }
colors.pet = { 0, 1, 0 }
colors.groupPet = { 0, 1, 0 }
colors.unknown = { 0.5, 0.5, 0.5 }
Aloft:DetermineDataSources()
AloftHealthBar:UpdateAll()
end,
},
advanced =
{
type = 'group',
name = L["Advanced"],
desc = L["Options for expert users"],
order = -1,
disabled = function(i) return not Aloft:IsEnabled() or not AloftHealthBar:IsEnabled() or not AloftHealthBar.db or not AloftHealthBar.db.profile end,
args =
{
format =
{
type = 'input',
width = "full",
name = L["Color Format"],
desc = L["Color tag"],
usage = L["<Any tag string>"],
get = function(i) return Aloft:HighlightTagSyntax(AloftHealthBar.db.profile.colorFormat) end,
set = function(i, v)
AloftHealthBar.db.profile.colorFormat = Aloft:FixTagCasing(v)
AloftHealthBar.colorMethodData = nil
AloftHealthBar.colorMethod = nil
Aloft:DetermineDataSources()
AloftHealthBar:UpdateAll()
end,
}
},
},
}
},
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
},
},
}
 
-----------------------------------------------------------------------------
AloftOptions/AloftTargetTrackingData/AloftTargetTrackingDataLocale.lua New file
0,0 → 1,104
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = { }
 
-----------------------------------------------------------------------------
 
-- Leave enUS locale active as default locale
 
--[[ enUS ]] L["Target Tracking"] = "Target Tracking"
--[[ enUS ]] L["Various target tracking options"] = "Various target tracking options"
 
--[[ enUS ]] L["Treat Rares and Bosses as Unique (Experimental)"] = "Treat Rares and Bosses as Unique (Experimental)"
--[[ enUS ]] L["Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"] = "Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"
 
--[[ enUS ]] L["Enable Focus Tracking"] = "Enable Focus Tracking"
--[[ enUS ]] L["Enable group focus target tracking"] = "Enable group focus target tracking"
--[[ enUS ]] L["Focus Tracking Update Interval"] = "Focus Tracking Update Interval"
--[[ enUS ]] L["The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
local locale = GetLocale()
 
-----------------------------------------------------------------------------
 
if (locale == "koKR") then
 
-----------------------------------------------------------------------------
 
--[[ koKR ]] L["Target Tracking"] = "Target Tracking"
--[[ koKR ]] L["Various target tracking options"] = "Various target tracking options"
 
--[[ koKR ]] L["Treat Rares and Bosses as Unique (Experimental)"] = "Treat Rares and Bosses as Unique (Experimental)"
--[[ koKR ]] L["Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"] = "Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"
 
--[[ koKR ]] L["Enable Focus Tracking"] = "Enable Focus Tracking"
--[[ koKR ]] L["Enable group focus target tracking"] = "Enable group focus target tracking"
--[[ koKR ]] L["Focus Tracking Update Interval"] = "Focus Tracking Update Interval"
--[[ koKR ]] L["The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
elseif (locale == "ruRU") then
 
-----------------------------------------------------------------------------
 
--[[ ruRU ]] L["Target Tracking"] = "Отслеживание цели"
--[[ ruRU ]] L["Various target tracking options"] = "Настройки отслеживания цели"
 
--[[ ruRU ]] L["Treat Rares and Bosses as Unique (Experimental)"] = "Рассматривать редких и боссов как уникальные (Тестируется)"
--[[ ruRU ]] L["Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"] = "Цели редких и элитных боссов (пологаясь на классификаци и уровень) отслеживаются если их имена уникальные (Тестируется)"
 
--[[ ruRU ]] L["Enable Focus Tracking"] = "Включить отслеживание фокуса"
--[[ ruRU ]] L["Enable group focus target tracking"] = "Включить отслеживание фокуса"
--[[ ruRU ]] L["Focus Tracking Update Interval"] = "Скорость обновления отслеживания фокуса"
--[[ ruRU ]] L["The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"] = "Значение времени в секундах, между обновлением фокуса (0.0 максимальная скорость)"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhCN") then
 
-----------------------------------------------------------------------------
 
--[[ zhCN ]] L["Target Tracking"] = "Target Tracking"
--[[ zhCN ]] L["Various target tracking options"] = "Various target tracking options"
 
--[[ zhCN ]] L["Treat Rares and Bosses as Unique (Experimental)"] = "Treat Rares and Bosses as Unique (Experimental)"
--[[ zhCN ]] L["Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"] = "Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"
 
--[[ zhCN ]] L["Enable Focus Tracking"] = "Enable Focus Tracking"
--[[ zhCN ]] L["Enable group focus target tracking"] = "Enable group focus target tracking"
--[[ zhCN ]] L["Focus Tracking Update Interval"] = "Focus Tracking Update Interval"
--[[ zhCN ]] L["The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
elseif (locale == "zhTW") then
 
-----------------------------------------------------------------------------
 
--[[ zhTW ]] L["Target Tracking"] = "Target Tracking"
--[[ zhTW ]] L["Various target tracking options"] = "Various target tracking options"
 
--[[ zhTW ]] L["Treat Rares and Bosses as Unique (Experimental)"] = "Treat Rares and Bosses as Unique (Experimental)"
--[[ zhTW ]] L["Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"] = "Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"
 
--[[ zhTW ]] L["Enable Focus Tracking"] = "Enable Focus Tracking"
--[[ zhTW ]] L["Enable group focus target tracking"] = "Enable group focus target tracking"
--[[ zhTW ]] L["Focus Tracking Update Interval"] = "Focus Tracking Update Interval"
--[[ zhTW ]] L["The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"] = "The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"
 
-----------------------------------------------------------------------------
 
end
 
-----------------------------------------------------------------------------
 
AloftLocale.AloftTargetTrackingData = setmetatable(L, { __index = function(t, k) rawset(t, k, k) error("Aloft: No translation found for '" .. k .. "'") return k end })
L = nil
\ No newline at end of file
AloftOptions/AloftTargetTrackingData/AloftTargetTrackingDataOptions.lua New file
0,0 → 1,63
local Aloft = Aloft
if not Aloft then return end
local AloftLocale = AloftLocale
if not AloftLocale then return end
 
-----------------------------------------------------------------------------
 
local L = AloftLocale.AloftTargetTrackingData
if not L then return end
 
local AloftTargetTrackingData = Aloft:GetModule("TargetTrackingData", true)
if not AloftTargetTrackingData then return end
 
-----------------------------------------------------------------------------
 
Aloft.Options.args.AloftTargetTrackingData =
{
type = 'group',
name = L["Target Tracking"],
desc = L["Various target tracking options"],
disabled = function(i) return not Aloft:IsEnabled() or not AloftTargetTrackingData:IsEnabled() or not AloftTargetTrackingData.db or not AloftTargetTrackingData.db.profile end,
args =
{
trackUnique =
{
type = 'toggle',
width = "full",
name = L["Treat Rares and Bosses as Unique (Experimental)"],
desc = L["Rare and elite boss targets (based on classification and level) are tracked as if their names are unique (experimental)"],
order = 5,
get = function(i) return AloftTargetTrackingData.db.profile.trackUnique end,
set = function(i, v) AloftTargetTrackingData.db.profile.trackUnique = v Aloft:DetermineDataSources() end,
},
--[[
focusEnable =
{
type = 'toggle',
width = "full",
name = L["Enable Focus Tracking"],
desc = L["Enable group focus target tracking"],
get = function(i) return AloftTargetTrackingData.db.profile.focusEnable end,
set = function(i, v) AloftTargetTrackingData.db.profile.focusEnable = v Aloft:DetermineDataSources() end,
order = 1,
},
focusInterval =
{
type = 'range',
width = "full",
name = L["Focus Tracking Update Interval"],
desc = L["The amount of time, in seconds, between group focus updates (0.0 is as fast as possible)"],
min = 0.0,
max = 5.0,
step = 0.01,
disabled = function(i) return not AloftTargetTrackingData.db.profile.focusEnable end,
get = function(i) return AloftTargetTrackingData.db.profile.focusInterval end,
set = function(i, v) AloftTargetTrackingData.db.profile.focusInterval = v Aloft:DetermineDataSources() end,
order = 2,
},
]]
},
}
 
-----------------------------------------------------------------------------