from retail

This commit is contained in:
NoM0Re
2025-01-16 17:36:46 +01:00
parent 64a21e9030
commit b0854d38e0
5 changed files with 58 additions and 16 deletions
+1
View File
@@ -205,6 +205,7 @@ local function CreateNameOptions(aura_options, data, trigger, size, isExactSpell
end,
validate = isExactSpellId and WeakAuras.ValidateNumeric or nil,
control = "WeakAurasInputFocus",
getWithFocus = function() return trigger[optionKey] and trigger[optionKey][i] or "" end
}
end
-- VALIDATE ?
+6
View File
@@ -721,6 +721,12 @@ local function replaceNameDescFuncs(intable, data, subOption)
if(type(display) == "number") then
display = math.floor(display * 100) / 100;
else
local nullBytePos = display:find("\0", nil, true)
if nullBytePos then
display = display:sub(1, nullBytePos - 1)
end
if #display > 50 then
display = display:sub(1, 50) .. "..."
end