1
0
Fork 0

Tweak creative slider size

This commit is contained in:
Wuzzy 2017-01-24 22:19:42 +01:00
parent e70ef935d4
commit 55145a4e17
1 changed files with 7 additions and 2 deletions

View File

@ -203,8 +203,13 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page,
reset_menu_item_bg() reset_menu_item_bg()
pagenum = math.floor(pagenum) or 1 pagenum = math.floor(pagenum) or 1
local pagemax = math.floor((crafting.creative_inventory_size-1) / (9*5) + 1) local pagemax = math.floor((crafting.creative_inventory_size-1) / (9*5) + 1)
local slider_height = 4/pagemax local slider_height
local slider_pos = slider_height*(pagenum-1)+2.25 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 name = "nix"
local formspec = "" local formspec = ""
local main_list local main_list