mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 19:03:43 +01:00
Rotate arrow images
This commit is contained in:
parent
6d3f8ce32a
commit
4d4e8f7d50
9
init.lua
9
init.lua
@ -127,8 +127,7 @@ function craftguide:get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage)
|
|||||||
formspec = formspec ..
|
formspec = formspec ..
|
||||||
"image[" .. (xoffset + 0.2) .. "," ..
|
"image[" .. (xoffset + 0.2) .. "," ..
|
||||||
(iY + (sfinv_only and 2.2 or 1.7)) ..
|
(iY + (sfinv_only and 2.2 or 1.7)) ..
|
||||||
";0.5,0.5;craftguide_" .. icon .. ".png" ..
|
";0.5,0.5;craftguide_" .. icon .. ".png]"
|
||||||
(icon == "shapeless" and "^[transformFX" or "") .. "]"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local cooktime = width
|
local cooktime = width
|
||||||
@ -176,7 +175,7 @@ function craftguide:get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage)
|
|||||||
formspec = formspec ..
|
formspec = formspec ..
|
||||||
"image[" .. (xoffset + 0.08) .. "," ..
|
"image[" .. (xoffset + 0.08) .. "," ..
|
||||||
(iY + (sfinv_only and 2.85 or 2.35)) ..
|
(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) .. "," ..
|
"item_image_button[" .. (xoffset + 1) .. "," ..
|
||||||
(iY + (sfinv_only and 2.7 or 2.2)) .. ";" ..
|
(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 ..
|
formspec = formspec ..
|
||||||
"image[" .. (xoffset + 2) .. "," ..
|
"image[" .. (xoffset + 2) .. "," ..
|
||||||
(iY + (sfinv_only and 2.83 or 2.33)) ..
|
(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) .. "," ..
|
"image[" .. (xoffset + 2.6) .. "," ..
|
||||||
(iY + (sfinv_only and 2.68 or 2.18)) ..
|
(iY + (sfinv_only and 2.68 or 2.18)) ..
|
||||||
@ -264,7 +263,7 @@ function craftguide:get_formspec(player_name, is_fuel)
|
|||||||
formspec = formspec ..
|
formspec = formspec ..
|
||||||
"image[" .. (xoffset + 0.08) .. "," ..
|
"image[" .. (xoffset + 0.08) .. "," ..
|
||||||
(iY + (sfinv_only and 2.85 or 2.35)) ..
|
(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) .. "," ..
|
"item_image_button[" .. (xoffset - 1) .. "," ..
|
||||||
(iY + (sfinv_only and 2.7 or 2.2)) ..
|
(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 |
Loading…
Reference in New Issue
Block a user