From 4d4e8f7d501f792f6c7b20850ff0e2a0012d2980 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 18 Nov 2018 18:40:58 +0100 Subject: Rotate arrow images --- init.lua | 9 ++++----- textures/craftguide_arrow.png | Bin 242 -> 230 bytes textures/craftguide_shapeless.png | Bin 227 -> 305 bytes 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index d3bda44..e448783 100644 --- a/init.lua +++ b/init.lua @@ -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)) .. diff --git a/textures/craftguide_arrow.png b/textures/craftguide_arrow.png index e8d3598..7171e82 100644 Binary files a/textures/craftguide_arrow.png and b/textures/craftguide_arrow.png differ diff --git a/textures/craftguide_shapeless.png b/textures/craftguide_shapeless.png index 179d317..8d68863 100644 Binary files a/textures/craftguide_shapeless.png and b/textures/craftguide_shapeless.png differ -- cgit v1.2.3