From 8e584593376aaba6f92462111dac72de13f9a6c0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 3 Jun 2017 00:10:37 +0200 Subject: [PATCH] Tweak creative slider positioning --- mods/HUD/mcl_inventory/creative.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/HUD/mcl_inventory/creative.lua b/mods/HUD/mcl_inventory/creative.lua index 1093a07b8..3b7cd0d38 100644 --- a/mods/HUD/mcl_inventory/creative.lua +++ b/mods/HUD/mcl_inventory/creative.lua @@ -213,7 +213,7 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz else slider_height = 4/pagemax end - local slider_pos = slider_height*(pagenum-1)+2.20 + local slider_pos = slider_height*(pagenum-1)+2.23 local name = "nix" local formspec = "" local main_list @@ -288,9 +288,9 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz -- Creative inventory slots main_list = "list[detached:creative_"..playername..";main;0,1.75;9,5;"..tostring(start_i).."]" .. -- ... and scroll bar - "image_button[9.03,1.74;0.85,0.6;crafting_creative_up.png;creative_prev;]".. - "image[9.04," .. tostring(slider_pos) .. ";0.75,"..tostring(slider_height) .. ";crafting_slider.png]".. - "image_button[9.03,6.15;0.85,0.6;crafting_creative_down.png;creative_next;]" + "image_button[9.02,1.76;0.85,0.6;crafting_creative_up.png;creative_prev;]".. + "image[9.033," .. tostring(slider_pos) .. ";0.78,"..tostring(slider_height) .. ";crafting_slider.png]".. + "image_button[9.02,6.15;0.85,0.6;crafting_creative_down.png;creative_next;]" end local function tab(current, check) local img