rename all skin/clothes textures to follow usual naming convention
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B |
Before Width: | Height: | Size: 935 B After Width: | Height: | Size: 935 B |
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 469 B |
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 623 B |
Before Width: | Height: | Size: 916 B After Width: | Height: | Size: 916 B |
Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 409 B |
@ -26,8 +26,8 @@ homedecor.register("wardrobe", {
|
||||
local clothes_strings = ""
|
||||
for i = 1,5 do
|
||||
clothes_strings = clothes_strings..
|
||||
"image_button_exit["..(i-1)..".5,0;1.1,2;"..skins[i].."_preview.png;"..skins[i]..";]"..
|
||||
"image_button_exit["..(i-1)..".5,2;1.1,2;fe"..skins[i].."_preview.png;fe"..skins[i]..";]"
|
||||
"image_button_exit["..(i-1)..".5,0;1.1,2;homedecor_clothes_"..skins[i].."_preview.png;"..skins[i]..";]"..
|
||||
"image_button_exit["..(i-1)..".5,2;1.1,2;homedecor_clothes_fe"..skins[i].."_preview.png;fe"..skins[i]..";]"
|
||||
end
|
||||
|
||||
meta:set_string("formspec", "size[5.5,8.5]"..default.gui_bg..default.gui_bg_img..default.gui_slots..
|
||||
@ -66,11 +66,11 @@ homedecor.register("wardrobe", {
|
||||
for i = 1,5 do
|
||||
if fields[skins[i]] then
|
||||
if armor_mod then -- if 3D_armor's installed, let it set the skin
|
||||
armor.textures[playerName].skin = skins[i]..".png"
|
||||
armor.textures[playerName].skin = "homedecor_clothes_"..skins[i]..".png"
|
||||
armor:update_player_visuals(sender)
|
||||
break
|
||||
end
|
||||
default.player_set_textures(sender, { skins[i]..".png" })
|
||||
default.player_set_textures(sender, { "homedecor_clothes_"..skins[i]..".png" })
|
||||
break
|
||||
elseif fields["fe"..skins[i]] then
|
||||
if armor_mod then
|
||||
@ -78,7 +78,7 @@ homedecor.register("wardrobe", {
|
||||
armor:update_player_visuals(sender)
|
||||
break
|
||||
end
|
||||
default.player_set_textures(sender, { skin = "fe"..skins[i]..".png" })
|
||||
default.player_set_textures(sender, { skin = "homedecor_clothes_fe"..skins[i]..".png" })
|
||||
break
|
||||
end
|
||||
end
|
||||
|