optimize textures with trimage
move wear texture in formspec change texture empty slot
6
shop.lua
|
@ -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
|
||||
|
||||
|
|
Before Width: | Height: | Size: 89 B After Width: | Height: | Size: 83 B |
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 92 B After Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 116 B After Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 114 B |
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 114 B |
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 114 B |
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 112 B |
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 110 B |