forked from VoxeLibre/VoxeLibre
WIP: Survival inventory and mcl_chest formspec overhaul. #1
|
@ -157,11 +157,9 @@ local function set_inventory(player, armor_change_only)
|
|||
-- NOTE: text usually depends on eyeballed values due to how minetest
|
||||
-- handles them. e.g.: labels are verically aligned to "center" (which is
|
||||
-- also affected by padding of the font) in the new coordinate system.
|
||||
local crafting_x = padding + 5 * iu - 0.25 * iu -- 0.25 * iu offset for nicer spacing, see notes.
|
||||
local crafting_label_x = crafting_x - bu
|
||||
local crafting_label_height = 0.625 -- eyeballed value.
|
||||
local crafting_label_y = padding + 0.25 * crafting_label_height -- should be 0.5 * crafting_label_height, see notes.
|
||||
--local crafting_x = ... -- see above
|
||||
local crafting_label_y = padding + 0.25 * crafting_label_height -- 0.25 * crafting_label_height for nicer text spacing, see notes.
|
||||
local crafting_x = padding + 5 * iu - 0.25 * iu -- 0.25 * iu offset for nicer crafting formspec spacing, see notes.
|
||||
local crafting_y = padding + crafting_label_height
|
||||
local crafting_length = 2 * iu
|
||||
local crafting_arrow_spacing = 0.078125 -- eyeballed value
|
||||
|
@ -170,7 +168,7 @@ local function set_inventory(player, armor_change_only)
|
|||
local crafting_arrow_length = iu
|
||||
local crafting_formspec = table.concat{
|
||||
"label[",
|
||||
crafting_label_x, ",", crafting_label_y, ";",
|
||||
crafting_x - bu, ",", crafting_label_y, ";",
|
||||
F(C(mcl_formspec.label_color, S("Crafting"))),
|
||||
"]",
|
||||
mcl_formspec.create_itemslot_bg(crafting_x, crafting_y, 2, 2),
|
||||
|
|
Loading…
Reference in New Issue