mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 00:49:34 +01:00
Tweak creative slider size
This commit is contained in:
parent
e70ef935d4
commit
55145a4e17
1 changed files with 7 additions and 2 deletions
|
@ -203,8 +203,13 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page,
|
|||
reset_menu_item_bg()
|
||||
pagenum = math.floor(pagenum) or 1
|
||||
local pagemax = math.floor((crafting.creative_inventory_size-1) / (9*5) + 1)
|
||||
local slider_height = 4/pagemax
|
||||
local slider_pos = slider_height*(pagenum-1)+2.25
|
||||
local slider_height
|
||||
if pagemax == 1 then
|
||||
slider_height = 4.525
|
||||
else
|
||||
slider_height = 4/pagemax
|
||||
end
|
||||
local slider_pos = slider_height*(pagenum-1)+2.20
|
||||
local name = "nix"
|
||||
local formspec = ""
|
||||
local main_list
|
||||
|
|
Loading…
Reference in a new issue