Rotate arrow images

This commit is contained in:
Jean-Patrick Guerrero 2018-11-18 18:40:58 +01:00
parent 6d3f8ce32a
commit 4d4e8f7d50
3 changed files with 4 additions and 5 deletions

View File

@ -127,8 +127,7 @@ function craftguide:get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage)
formspec = formspec ..
"image[" .. (xoffset + 0.2) .. "," ..
(iY + (sfinv_only and 2.2 or 1.7)) ..
";0.5,0.5;craftguide_" .. icon .. ".png" ..
(icon == "shapeless" and "^[transformFX" or "") .. "]"
";0.5,0.5;craftguide_" .. icon .. ".png]"
end
local cooktime = width
@ -176,7 +175,7 @@ function craftguide:get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage)
formspec = formspec ..
"image[" .. (xoffset + 0.08) .. "," ..
(iY + (sfinv_only and 2.85 or 2.35)) ..
";0.9,0.7;craftguide_arrow.png^[transformFX]" ..
";0.9,0.7;craftguide_arrow.png]" ..
"item_image_button[" .. (xoffset + 1) .. "," ..
(iY + (sfinv_only and 2.7 or 2.2)) .. ";" ..
@ -189,7 +188,7 @@ function craftguide:get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage)
formspec = formspec ..
"image[" .. (xoffset + 2) .. "," ..
(iY + (sfinv_only and 2.83 or 2.33)) ..
";0.6,0.4;craftguide_arrow.png^[transformFX]" ..
";0.6,0.4;craftguide_arrow.png]" ..
"image[" .. (xoffset + 2.6) .. "," ..
(iY + (sfinv_only and 2.68 or 2.18)) ..
@ -264,7 +263,7 @@ function craftguide:get_formspec(player_name, is_fuel)
formspec = formspec ..
"image[" .. (xoffset + 0.08) .. "," ..
(iY + (sfinv_only and 2.85 or 2.35)) ..
";0.9,0.7;craftguide_arrow.png^[transformFX]" ..
";0.9,0.7;craftguide_arrow.png]" ..
"item_image_button[" .. (xoffset - 1) .. "," ..
(iY + (sfinv_only and 2.7 or 2.2)) ..

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

After

Width:  |  Height:  |  Size: 305 B