added support for signs_lib

This commit is contained in:
Alexsandro Percy 2024-02-12 19:41:23 -03:00
parent 62541f0b89
commit c1d1173809
7 changed files with 269 additions and 3 deletions

View file

@ -680,6 +680,12 @@ local function _paint(self, l_textures, colstr, paint_list, mask_associations)
l_textures[_] = "("..l_textures[_]..")^("..texture_name.."^[mask:"..mask_texture..")" --add the mask
end
end
if airutils._use_signs_api then
indx = texture:find('airutils_name_canvas.png')
if indx then
l_textures[_] = "airutils_name_canvas.png^"..airutils.convert_text_to_texture(self._ship_name, self._name_color or 0, self._name_hor_aligment or 0.8)
end
end
end
end
return l_textures