adjusted preview/fashin for npc with diffrent models and textures
This commit is contained in:
parent
80ce8d4892
commit
dad8ebb81c
@ -11,7 +11,9 @@ yl_speak_up.calculate_portrait = function(pname, n_id)
|
||||
|
||||
local head = ""
|
||||
|
||||
head = head .. "[combine:8x8:-8,-8=" .. tex[2] .. ":-40,-8=" .. tex[2]
|
||||
if(tex and tex[2]) then
|
||||
return head .. "[combine:8x8:-8,-8=" .. tex[2] .. ":-40,-8=" .. tex[2]
|
||||
end
|
||||
|
||||
return head
|
||||
end
|
||||
|
@ -188,9 +188,9 @@ yl_speak_up.get_fs_fashion = function(pname)
|
||||
local formspec = {
|
||||
"size[13.4,15]",
|
||||
"dropdown[0.3,0.2;4,0.75;set_skin;",
|
||||
mainlist,
|
||||
mainlist or "",
|
||||
";",
|
||||
mainindex,
|
||||
mainindex or "",
|
||||
"]",
|
||||
"label[4.6,0.45;",
|
||||
yl_speak_up.speak_to[pname].n_id,
|
||||
@ -199,32 +199,32 @@ yl_speak_up.get_fs_fashion = function(pname)
|
||||
(yl_speak_up.speak_to[pname].n_npc or "- nameless -"),
|
||||
"]",
|
||||
"dropdown[9.1,0.2;4,0.75;set_cape;",
|
||||
capelist,
|
||||
capelist or "",
|
||||
";",
|
||||
capeindex,
|
||||
capeindex or "",
|
||||
"]",
|
||||
"label[0.3,3.2;",
|
||||
textures[4],
|
||||
textures[4] or "",
|
||||
"]",
|
||||
"label[9.1,3.2;",
|
||||
textures[3],
|
||||
textures[3] or "",
|
||||
"]",
|
||||
"field_close_on_enter[set_sword;false]",
|
||||
"field_close_on_enter[set_shield;false]",
|
||||
"image[0.3,1;4,2;",
|
||||
textures[2],
|
||||
textures[2] or "",
|
||||
"]", -- Main
|
||||
"image[9.1,1;4,2;",
|
||||
textures[1],
|
||||
textures[1] or "",
|
||||
"]", -- Cape
|
||||
"image[0.3,4.2;4,4;",
|
||||
textures[4],
|
||||
textures[4] or "",
|
||||
"]", -- Sword
|
||||
"image[9.1,4.2;4,4;",
|
||||
textures[3],
|
||||
textures[3] or "",
|
||||
"]", --textures[3],"]", -- Shield
|
||||
"image[4.7,1;4,8;",
|
||||
preview,
|
||||
preview or "",
|
||||
"]",
|
||||
"button[0.3,8.4;3,0.75;button_cancel;"..button_cancel.."]",
|
||||
"button[10.1,8.4;3,0.75;button_save;Save]",
|
||||
|
Loading…
Reference in New Issue
Block a user