forked from Sokomine/yl_speak_up
fixed bug in local function
This commit is contained in:
parent
49b370b7bb
commit
964fce04e3
@ -93,11 +93,11 @@ end
|
|||||||
|
|
||||||
|
|
||||||
yl_speak_up.cape2texture = function(t)
|
yl_speak_up.cape2texture = function(t)
|
||||||
return "yl_speak_up_mask_cape.png^[combine:32x64:56,20=" .. t
|
return "yl_speak_up_mask_cape.png^[combine:32x64:56,20=" .. tostring(t)
|
||||||
end
|
end
|
||||||
|
|
||||||
yl_speak_up.shield2texture = function(t)
|
yl_speak_up.shield2texture = function(t)
|
||||||
return "yl_speak_up_mask_shield.png^[combine:32x64:0,0=(" .. t .. ")"
|
return "yl_speak_up_mask_shield.png^[combine:32x64:0,0=(" .. tostring(t) .. ")"
|
||||||
end
|
end
|
||||||
|
|
||||||
yl_speak_up.textures2skin = function(textures)
|
yl_speak_up.textures2skin = function(textures)
|
||||||
|
|||||||
@ -166,7 +166,7 @@ yl_speak_up.get_fs_fashion = function(pname)
|
|||||||
|
|
||||||
local tmp_textures = textures
|
local tmp_textures = textures
|
||||||
if(texture_index ~= 1) then
|
if(texture_index ~= 1) then
|
||||||
tmp_textures = textures2skin(textures)
|
tmp_textures = yl_speak_up.textures2skin(textures)
|
||||||
end
|
end
|
||||||
local preview = yl_speak_up.skin_preview_3d(mesh, tmp_textures, "2,1;6,12", "8,1;6,12")
|
local preview = yl_speak_up.skin_preview_3d(mesh, tmp_textures, "2,1;6,12", "8,1;6,12")
|
||||||
-- local preview = yl_speak_up.mesh_data[mesh].skin_preview(skin)
|
-- local preview = yl_speak_up.mesh_data[mesh].skin_preview(skin)
|
||||||
|
|||||||
@ -11,7 +11,7 @@ function yl_speak_up.fashion(player, obj)
|
|||||||
yl_speak_up.speak_to[pname].n_id = n_id
|
yl_speak_up.speak_to[pname].n_id = n_id
|
||||||
yl_speak_up.speak_to[pname].obj = obj
|
yl_speak_up.speak_to[pname].obj = obj
|
||||||
yl_speak_up.speak_to[pname].textures = t
|
yl_speak_up.speak_to[pname].textures = t
|
||||||
yl_speak_up.speak_to[pname].skins = textures2skin(t)
|
yl_speak_up.speak_to[pname].skins = yl_speak_up.textures2skin(t)
|
||||||
|
|
||||||
local dialog = yl_speak_up.load_dialog(n_id, false)
|
local dialog = yl_speak_up.load_dialog(n_id, false)
|
||||||
if next(dialog) then
|
if next(dialog) then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user