fix previews skin in 3d_armor
fix typo and change resolution to 128x256 in script u_skins convert previews skins to 128x256 (must be 128x256 for 3d_armor preview)
@ -227,7 +227,10 @@ armor.set_player_armor = function(self, player)
|
||||
end
|
||||
end
|
||||
end
|
||||
preview = (armor:get_preview(name) or "character_preview.png") .. "^" .. preview -- //MFF(Mg|09/05/15)
|
||||
if preview ~= "" then
|
||||
preview = "^" .. preview
|
||||
end
|
||||
preview = armor:get_preview(name) .. preview -- //MFF(Mg|09/05/15)
|
||||
if minetest.get_modpath("shields") then
|
||||
armor_level = armor_level * 0.9
|
||||
end
|
||||
@ -337,7 +340,10 @@ end
|
||||
armor.get_preview = function(self, name)
|
||||
if skin_mod == "skins" then
|
||||
return armor:get_player_skin(name).."_preview.png"
|
||||
elseif skin_mod == "u_skins"then
|
||||
return string.gsub(armor.textures[name].skin, ".png", "_preview.png")
|
||||
end
|
||||
return "character_preview.png"
|
||||
end
|
||||
|
||||
armor.get_armor_formspec = function(self, name)
|
||||
|
@ -23,7 +23,7 @@ do
|
||||
out_file=output/"$out_name"_preview.png
|
||||
if $IMAGEMAGICK
|
||||
then
|
||||
convert -strip -resize 32x64 $i $out_file
|
||||
convert -strip -resize 128x256 $i $out_file
|
||||
else
|
||||
mv $i $out_file
|
||||
fi
|
||||
|
@ -23,7 +23,7 @@ do
|
||||
out_file=output/"$out_name"_preview.png
|
||||
if $IMAGEMAGICK
|
||||
then
|
||||
convert -strip -resize 32x64 $i $out_file
|
||||
convert -strip -resize 128x256 $i $out_file
|
||||
else
|
||||
mv $i $out_file
|
||||
fi
|
||||
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 36 KiB |