from retail

This commit is contained in:
NoM0Re
2025-01-25 17:45:42 +01:00
parent 6eafc394ae
commit 1152abe6a5
10 changed files with 82 additions and 44 deletions
+8 -5
View File
@@ -404,14 +404,14 @@ Private.format_types = {
if realm == "never" then
nameFunc = function(unit)
return unit and UnitName(unit)
return unit and WeakAuras.UnitName(unit)
end
elseif realm == "star" then
nameFunc = function(unit)
if not unit then
return ""
end
local name, realm = UnitName(unit)
local name, realm = WeakAuras.UnitName(unit)
if realm then
return name .. "*"
end
@@ -422,7 +422,7 @@ Private.format_types = {
if not unit then
return ""
end
local name, realm = UnitName(unit)
local name, realm = WeakAuras.UnitName(unit)
if realm then
return name .. "-" .. realm
end
@@ -433,7 +433,7 @@ Private.format_types = {
if not unit then
return ""
end
local name, realm = WeakAuras.UnitNameWithRealm(unit)
local name, realm = WeakAuras.UnitNameWithRealmCustomName(unit)
return name .. "-" .. realm
end
end
@@ -529,10 +529,11 @@ Private.format_types = {
if realm == "never" then
nameFunc = function(name, realm)
return name
return WeakAuras.GetName(name)
end
elseif realm == "star" then
nameFunc = function(name, realm)
name = WeakAuras.GetName(name)
if realm ~= "" then
return name .. "*"
end
@@ -540,6 +541,7 @@ Private.format_types = {
end
elseif realm == "differentServer" then
nameFunc = function(name, realm)
name = WeakAuras.GetName(name)
if realm ~= "" then
return name .. "-" .. realm
end
@@ -547,6 +549,7 @@ Private.format_types = {
end
elseif realm == "always" then
nameFunc = function(name, realm)
name = WeakAuras.GetName(name)
if realm == "" then
realm = select(2, WeakAuras.UnitNameWithRealm("player"))
end