mirror of
https://github.com/APercy/airutils.git
synced 2025-09-22 11:26:51 -04:00
added support for signs_lib
This commit is contained in:
parent
62541f0b89
commit
c1d1173809
7 changed files with 269 additions and 3 deletions
|
@ -22,7 +22,8 @@ function airutils.get_staticdata(self) -- unloaded/unloads ... is now saved
|
|||
stored_passengers = self._passengers or {},
|
||||
stored_adf_destiny = self._adf_destiny or vector.new(),
|
||||
stored_skin = self._skin or "",
|
||||
stored_vehicle_custom_data = self._vehicle_custom_data or nil
|
||||
stored_vehicle_custom_data = self._vehicle_custom_data or nil,
|
||||
stored_ship_name = self._ship_name or "",
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -54,6 +55,7 @@ function airutils.on_activate(self, staticdata, dtime_s)
|
|||
self._passengers = data.stored_passengers or {}
|
||||
self._adf_destiny = data.stored_adf_destiny or vector.new()
|
||||
self._skin = data.stored_skin or ""
|
||||
self._ship_name = data.stored_ship_name or ""
|
||||
local custom_data = data.stored_vehicle_custom_data or nil
|
||||
if custom_data then
|
||||
self._vehicle_custom_data = custom_data
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue