forked from VoxeLibre/VoxeLibre
[WIP] add crafting_arrow_x.
This commit is contained in:
parent
79eefe4153
commit
520c35feaa
|
@ -165,6 +165,7 @@ local function set_inventory(player, armor_change_only)
|
|||
local crafting_y = padding + crafting_label_height
|
||||
local crafting_length = 2 * iu
|
||||
local crafting_arrow_spacing = 0.078125 -- eyeballed value
|
||||
local crafting_arrow_x = crafting_x + crafting_length + crafting_arrow_spacing
|
||||
local crafting_arrow_y = crafting_y + iu / 2
|
||||
local crafting_arrow_length = iu
|
||||
local crafting_formspec = table.concat{
|
||||
|
@ -178,15 +179,15 @@ local function set_inventory(player, armor_change_only)
|
|||
"2,2",
|
||||
"]",
|
||||
"image[",
|
||||
crafting_x + crafting_length + crafting_arrow_spacing, ",", crafting_arrow_y, ";",
|
||||
crafting_arrow_x, ",", crafting_arrow_y, ";",
|
||||
"1,1;crafting_formspec_arrow.png",
|
||||
"]",
|
||||
mcl_formspec.create_itemslot_bg(
|
||||
crafting_x + crafting_length + crafting_arrow_length + 2 * crafting_arrow_spacing, crafting_arrow_y,
|
||||
crafting_arrow_x + crafting_arrow_length + crafting_arrow_spacing, crafting_arrow_y,
|
||||
1, 1
|
||||
),
|
||||
"list[current_player;craftpreview;",
|
||||
crafting_x + crafting_length + crafting_arrow_length + 2 * crafting_arrow_spacing, ",", crafting_arrow_y, ";",
|
||||
crafting_arrow_x + crafting_arrow_length + crafting_arrow_spacing, ",", crafting_arrow_y, ";",
|
||||
"1,1;",
|
||||
"]",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue