Use first tooltip line if controller tooltip line is empty

This commit is contained in:
Flamanis
2024-07-23 21:33:11 -05:00
committed by andrew6180
parent 75e5ac867a
commit f04395a63a
+6
View File
@@ -203,6 +203,12 @@ end
local line = _G['DetailsPetOwnerFinderTextLeft' .. (2 + cbMode)]
lineText = line and line:GetText()
if (not lineText or lineText == '') then
line = _G['DetailsPetOwnerFinderTextLeft1']
lineText = line and line:GetText()
end
end
if (lineText) then
for i=1, #unitNameTitles do
ownerName = lineText:match(unitNameTitles[i])