1
0
mirror of https://github.com/MinetestForFun/minercantile.git synced 2024-11-16 15:20:26 +01:00

optimize textures with trimage

move wear texture in formspec
change texture empty slot
This commit is contained in:
crabman77 2016-06-09 22:52:19 +02:00
parent 58c7496d7b
commit a5f384fc6a
14 changed files with 3 additions and 3 deletions

View File

@ -481,11 +481,11 @@ local function show_formspec_to_sell(name)
local item = shop_sell[name].items[i]
if item then
table.insert(formspec, "item_image_button["..x..","..y..";1,1;"..item.name..";buttonchoice_"..i..";"..item.nb.."]")
table.insert(formspec, "label["..(x)..","..(y+0.8)..";"..item.price.."$]")
table.insert(formspec, "label["..(x)..","..(y+0.9)..";"..item.price.."$]")
if item.wear and item.wear > 0 then
local img = get_wear_img(item.wear)
if img then
table.insert(formspec, "image["..x..","..y..";1,1;"..img.."]")
table.insert(formspec, "image["..x..","..(y+0.1)..";1,1;"..img.."]")
end
end
else
@ -517,7 +517,7 @@ local function get_formspec_sell_items(name)
if item.wear and item.wear > 0 then
local img = get_wear_img(item.wear)
if img then
table.insert(formspec, "image[3.6,1.5;1,1;"..img.."]")
table.insert(formspec, "image[3.6,1.6;1,1;"..img.."]")
end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 B

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 B

After

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 110 B