Commit 4f088b50 authored by Merathilis's avatar Merathilis

Added option to change the vertical overlap of the Nameplates. elvui/elvui#1354

parent 61ad1537
### Version 11.13 [ ]
**New Additions:**
Added option to change the vertical overlap of the Nameplates.
**Bug Fixes:**
Fixed nameplate NPC visibility option always on after reload or login.
......
......@@ -108,6 +108,7 @@ function NP:SetCVars()
SetCVar('nameplateMaxDistance', NP.db.loadDistance)
SetCVar('nameplateMotion', NP.db.motionType == 'STACKED' and 1 or 0)
SetCVar('nameplateOverlapV', NP.db.overlapV) -- Please check
SetCVar('NameplatePersonalShowAlways', NP.db.units.PLAYER.visibility.showAlways and 1 or 0)
SetCVar('NameplatePersonalShowInCombat', NP.db.units.PLAYER.visibility.showInCombat and 1 or 0)
......
......@@ -438,6 +438,7 @@ P.nameplates = {
fontOutline = 'OUTLINE',
fontSize = 11,
loadDistance = 40,
overlapV = 1.1,
lowHealthThreshold = 0.4,
motionType = 'STACKED',
nameColoredGlow = false,
......
......@@ -829,6 +829,7 @@ L["Over Absorbs"] = "Über Absorbierungen"
L["Over Heal Absorbs"] = "Überheilung Absorbierung"
L["Over Health Threshold"] = "Über den Gesundheit Schwellenwert"
L["Over Power Threshold"] = "Über dem Kraft Schwellenwert"
L["Overlap Vertical"] = "Vertikales Überlappen"
L["Overlay"] = "Überblenden"
L["Overnuking"] = true --No need to translate
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = "Überschreibe alle benutzerdefinierten Einstellungen für die Sichtbarkeit in bestimmten Situationen. Beispiel: Zeige nur Gruppe 1 und 2 in einer 10er-Instanz."
......@@ -853,6 +854,7 @@ L["Party Targets"] = "Gruppenziele"
L["Party"] = "Gruppe"
L["Per Row"] = "Pro Reihe"
L["Percent"] = "Prozent"
L["Percentage amount for vertical overlap of Nameplates."] = "Prozentualler Wert für vertikales überlappen der Namensplaketten."
L["Personal"] = "Persönlich"
L["Pet Battle"] = "Haustierkampf"
L["Pet Name"] = "Name des Pets"
......
......@@ -831,6 +831,7 @@ L["Over Absorbs"] = true
L["Over Heal Absorbs"] = true
L["Over Health Threshold"] = true
L["Over Power Threshold"] = true
L["Overlap Vertical"] = true
L["Overlay"] = true
L["Overnuking"] = true
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = true
......@@ -855,6 +856,7 @@ L["Party Targets"] = true
L["Party"] = true
L["Per Row"] = true
L["Percent"] = true
L["Percentage amount for vertical overlap of Nameplates."] = true
L["Personal"] = true
L["Pet Battle"] = true
L["Pet Name"] = true
......
......@@ -826,6 +826,7 @@ L["Over Absorbs"] = true
L["Over Heal Absorbs"] = true
L["Over Health Threshold"] = true
L["Over Power Threshold"] = true
L["Overlap Vertical"] = true
L["Overlay"] = "Recubrir"
L["Overnuking"] = true
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = "Sobrescribir cualquier opción de visibilidad en ciertas situaciones, Ej: Sólo mostrar grupos 1 y 2 dentro de una mazmorra de banda de 10 personas."
......@@ -850,6 +851,7 @@ L["Party Targets"] = "Objetivos del Grupo"
L["Party"] = true
L["Per Row"] = "Por Fila"
L["Percent"] = "Porcentaje"
L["Percentage amount for vertical overlap of Nameplates."] = true
L["Personal"] = true
L["Pet Battle"] = "Combate de Mascotas"
L["Pet Name"] = true
......
......@@ -827,6 +827,7 @@ L["Over Absorbs"] = true
L["Over Heal Absorbs"] = true
L["Over Health Threshold"] = true
L["Over Power Threshold"] = true
L["Overlap Vertical"] = true
L["Overlay"] = "Superposition"
L["Overnuking"] = true
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = "Remplace tout paramètre de visibilité dans certaines situations, Ex: afficher seulement le groupe 1 et 2 quand vous êtes dans un raid à 10 joueurs."
......@@ -851,6 +852,7 @@ L["Party Targets"] = "Cible des coéquipiers"
L["Party"] = true
L["Per Row"] = "par ligne"
L["Percent"] = "Pourcent"
L["Percentage amount for vertical overlap of Nameplates."] = true
L["Personal"] = "Personnel"
L["Pet Battle"] = "Combats de mascottes"
L["Pet Name"] = "Nom du familier"
......
......@@ -826,6 +826,7 @@ L["Over Absorbs"] = true
L["Over Heal Absorbs"] = true
L["Over Health Threshold"] = true
L["Over Power Threshold"] = true
L["Overlap Vertical"] = true
L["Overlay"] = "덮어씌우기"
L["Overnuking"] = true
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = "현재 입던해있는 던전의 상태에 맞춰 표시할 파티수를 자동으로 제한합니다.|n|n예로 10인 인스안에 있으면 1,2파티만 표시됩니다."
......@@ -850,6 +851,7 @@ L["Party Targets"] = "파티원의 대상"
L["Party"] = true
L["Per Row"] = "한 줄에 표시할 아이콘 수"
L["Percent"] = "%"
L["Percentage amount for vertical overlap of Nameplates."] = true
L["Personal"] = "플레이어"
L["Pet Battle"] = "애완동물대전 관련"
L["Pet Name"] = "펫 이름"
......
......@@ -827,6 +827,7 @@ L["Over Absorbs"] = true
L["Over Heal Absorbs"] = true
L["Over Health Threshold"] = true
L["Over Power Threshold"] = true
L["Overlap Vertical"] = true
L["Overlay"] = "Sobrepor"
L["Overnuking"] = true
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = "Sobrescrever qualquer visibilidade personalizada em certas situações, Ex: Mostrar apenas grupo 1 e 2 dentro de uma instância de 10 pessoas."
......@@ -851,6 +852,7 @@ L["Party Targets"] = "Alvos do Grupo"
L["Party"] = true
L["Per Row"] = "Por Linha"
L["Percent"] = "Porcentagem"
L["Percentage amount for vertical overlap of Nameplates."] = true
L["Personal"] = "Pessoal"
L["Pet Battle"] = "Batalha de Mascote"
L["Pet Name"] = true
......
......@@ -826,6 +826,7 @@ L["Over Absorbs"] = "\"Лишнее\" поглощение"
L["Over Heal Absorbs"] = "\"Лишнее\" поглощение исцеления"
L["Over Health Threshold"] = "Более значения здоровья"
L["Over Power Threshold"] = "Более значения ресурса"
L["Overlap Vertical"] = true
L["Overlay"] = "Наложение"
L["Overnuking"] = "Срываем агро!"
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = "Игнорировать пользовательские настройки отображения в определенных ситуациях. Пример: показывать только группы 1 и 2 в подземелье на 10 человек."
......@@ -850,6 +851,7 @@ L["Party Targets"] = "Цели группы"
L["Party"] = "Группа"
L["Per Row"] = "Кол-во в ряду"
L["Percent"] = "Процент"
L["Percentage amount for vertical overlap of Nameplates."] = true
L["Personal"] = "Свое"
L["Pet Battle"] = "Битвы питомцев"
L["Pet Name"] = "Имя питомца"
......
......@@ -828,6 +828,7 @@ L["Over Absorbs"] = "过量吸收"
L["Over Heal Absorbs"] = "过量治疗吸收"
L["Over Health Threshold"] = "高于血量阈值"
L["Over Power Threshold"] = "高于能量阈值"
L["Overlap Vertical"] = true
L["Overlay"] = "重叠显示"
L["Overnuking"] = true
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = "覆盖可见性的设定, 例如: 在10人副本里只显示1队和2队"
......@@ -852,6 +853,7 @@ L["Party Targets"] = "队伍目标"
L["Party"] = "小队"
L["Per Row"] = "每行"
L["Percent"] = "百分比"
L["Percentage amount for vertical overlap of Nameplates."] = true
L["Personal"] = "自己的"
L["Pet Battle"] = "宠物战斗"
L["Pet Name"] = "宠物名字"
......
......@@ -828,6 +828,7 @@ L["Over Absorbs"] = "滿血吸收"
L["Over Heal Absorbs"] = "過量治療吸收"
L["Over Health Threshold"] = "高於血量閾值"
L["Over Power Threshold"] = "高於能量閾值"
L["Overlap Vertical"] = true
L["Overlay"] = "重疊顯示"
L["Overnuking"] = true
L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."] = "複寫可見性的設定, 例如: 在10人副本里只顯示1隊和2隊."
......@@ -852,6 +853,7 @@ L["Party Targets"] = "隊伍目標"
L["Party"] = "隊伍"
L["Per Row"] = "每行"
L["Percent"] = "百分比"
L["Percentage amount for vertical overlap of Nameplates."] = true
L["Personal"] = "個人的"
L["Pet Battle"] = "寵物戰鬥"
L["Pet Name"] = "寵物名字"
......
......@@ -4355,8 +4355,16 @@ E.Options.args.nameplate = {
desc = L["Only load nameplates for units within this range."],
min = 10, max = 100, step = 1,
},
lowHealthThreshold = {
overlapV = {
order = 7,
type = "range",
name = L["Overlap Vertical"],
desc = L["Percentage amount for vertical overlap of Nameplates."],
isPercent = true,
min = 0, max = 3, step = 0.1,
},
lowHealthThreshold = {
order = 8,
name = L["Low Health Threshold"],
desc = L["Make the unitframe glow yellow when it is below this percent of health, it will glow red when the health value is half of this value."],
type = "range",
......@@ -4364,30 +4372,30 @@ E.Options.args.nameplate = {
min = 0, softMax = 0.5, max = 0.8, step = 0.01,
},
spacer1 = {
order = 8,
order = 9,
type = 'description',
name = ' ',
width = 'full'
},
highlight = {
order = 9,
order = 10,
type = "toggle",
name = L["Hover Highlight"],
},
fadeIn = {
order = 10,
order = 11,
type = "toggle",
name = L["Alpha Fading"],
},
smoothbars = {
type = 'toggle',
order = 11,
order = 12,
name = L["Smooth Bars"],
desc = L["Bars will transition smoothly."],
set = function(info, value) E.db.nameplates[info[#info]] = value; NP:ConfigureAll(); end,
},
clampToScreen = {
order = 12,
order = 13,
type = "toggle",
name = L["Clamp Nameplates"],
desc = L["Clamp nameplates to the top of the screen when outside of view."],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment