mirror of
https://github.com/APercy/ap_airship.git
synced 2025-03-15 07:51:20 +00:00
fix one time prefix
This commit is contained in:
parent
4be1bae494
commit
978d5858cf
1 changed files with 4 additions and 3 deletions
|
@ -239,7 +239,8 @@ function ap_airship.table_copy(table_here)
|
|||
return tablecopy
|
||||
end
|
||||
|
||||
local function paint(self)
|
||||
local function paint(self, write_prefix)
|
||||
write_prefix = write_prefix or false
|
||||
local l_textures = ap_airship.textures_copy()
|
||||
for _, texture in ipairs(l_textures) do
|
||||
local indx = texture:find('wool_blue.png')
|
||||
|
@ -254,7 +255,7 @@ local function paint(self)
|
|||
if indx then
|
||||
l_textures[_] = self.logo
|
||||
end
|
||||
if airutils._use_signs_api then
|
||||
if airutils._use_signs_api and write_prefix == true 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)
|
||||
|
@ -277,7 +278,7 @@ end
|
|||
function ap_airship.paint(self, colstr)
|
||||
if colstr then
|
||||
self.color = colstr
|
||||
paint(self)
|
||||
paint(self, true)
|
||||
end
|
||||
end
|
||||
function ap_airship.paint2(self, colstr)
|
||||
|
|
Loading…
Add table
Reference in a new issue