Browse Source

Fix item positioning for large recipes

master
Jean-Patrick Guerrero 1 month ago
parent
commit
679e005f58
3 changed files with 4 additions and 4 deletions
  1. +4
    -4
      init.lua
  2. BIN
      textures/craftguide_mesepick.png
  3. BIN
      textures/craftguide_steelpick.png

+ 4
- 4
init.lua View File

@@ -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)


BIN
textures/craftguide_mesepick.png View File

Before After
Width: 16  |  Height: 16  |  Size: 3.1KB

BIN
textures/craftguide_steelpick.png View File

Before After
Width: 16  |  Height: 16  |  Size: 3.1KB

Loading…
Cancel
Save