mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Tweak creative slider size
This commit is contained in:
parent
e70ef935d4
commit
55145a4e17
@ -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 New Issue
Block a user