From 679e005f585b2fa104be417184eeca6781f95555 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 16 Apr 2020 18:39:39 +0200 Subject: [PATCH] Fix item positioning for large recipes --- init.lua | 8 ++++---- textures/craftguide_mesepick.png | Bin 0 -> 3199 bytes textures/craftguide_steelpick.png | Bin 0 -> 3164 bytes 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 textures/craftguide_mesepick.png create mode 100644 textures/craftguide_steelpick.png diff --git a/init.lua b/init.lua index dbfd94a..6b7ae38 100644 --- a/init.lua +++ b/init.lua @@ -887,9 +887,9 @@ local function get_grid_fs(data, fs, rcp, spacing) _btn_size = btn_size X = (btn_size * ((i - 1) % width) + XOFFSET - - (sfinv_only and 2.83 or 0.5)) * (0.83 - (x_y / 5)) + (sfinv_only and 2.83 or 0)) * (0.83 - (x_y / 5)) Y = (btn_size * floor((i - 1) / width) + - (sfinv_only and 5.81 or 5.5) + x_y) * (0.86 - (x_y / 5)) + (sfinv_only and 5.81 or 3.92) + x_y) * (0.86 - (x_y / 5)) end if X > rightest then @@ -1166,12 +1166,12 @@ end craftguide.register_craft_type("digging", { description = ES"Digging", - icon = "default_tool_steelpick.png", + icon = "craftguide_steelpick.png", }) craftguide.register_craft_type("digging_chance", { description = ES"Digging Chance", - icon = "default_tool_mesepick.png", + icon = "craftguide_mesepick.png", }) local function search(data) diff --git a/textures/craftguide_mesepick.png b/textures/craftguide_mesepick.png new file mode 100644 index 0000000000000000000000000000000000000000..f9e63d1fb63b905d88d4e3b3a6a1b5678ad13160 GIT binary patch literal 3199 zcmV-_41n{AP)uJ@VVD_U zC<6{NG_fI~0ue<-1QkJoA_k0xBC#Thg@9ne9*`iQ#9$OrQF$}6R&?d%y_c8YA7_1Q zpS|}zXYYO1x&V;8{kgn!SPFnNo`4_X z6{c}T{8k*B#$jdxfFg<9uYy1K45IaYvHg`_dOZM)Sy63ve6hvv1)yUy0P^?0*fb9UASvow z`@mQCp^4`uNg&9uGcn1|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