diff --git a/mods/HUD/mcl_inventory/creative.lua b/mods/HUD/mcl_inventory/creative.lua index ff623e1c2e..4a449355a2 100644 --- a/mods/HUD/mcl_inventory/creative.lua +++ b/mods/HUD/mcl_inventory/creative.lua @@ -269,10 +269,6 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz end end local pagemax = math.max(1, math.floor((inv_size-1) / (9*5) + 1)) - local slider_height - local arrow_height = 0.85 - slider_height = (6.2-arrow_height*2) / pagemax - local slider_pos = (slider_height*(pagenum-1)*0.8713125)+2.23 local name = "nix" local formspec = "" local main_list @@ -357,12 +353,11 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz "listring[current_player;main]" else -- Creative inventory slots - main_list = "list[detached:creative_"..playername..";main;0,1.75;9,5;"..tostring(start_i).."]" .. - -- ... and scroll bar - "image[9.033,2.230;0.78,4.525;mcl_inventory_slider_bg.png]".. - "image[9.033," .. tostring(slider_pos) .. ";0.78,"..tostring(slider_height) .. ";mcl_inventory_slider.png]".. - "image_button[9.015,1.77;0.85,0.6;crafting_creative_up.png;creative_prev;]".. - "image_button[9.015,6.15;0.85,0.6;crafting_creative_down.png;creative_next;]" + main_list = "list[detached:creative_"..playername..";main;0,1.75;9,5;"..tostring(start_i).."]".. + -- Page buttons + "label[9.0,5.5;"..F(S("@1/@2", pagenum, pagemax)).."]".. + "image_button[9.0,6.0;0.7,0.7;crafting_creative_prev.png;creative_prev;]".. + "image_button[9.5,6.0;0.7,0.7;crafting_creative_next.png;creative_next;]" end local tab_icon = { diff --git a/mods/HUD/mcl_inventory/textures/crafting_creative_down.png b/mods/HUD/mcl_inventory/textures/crafting_creative_down.png deleted file mode 100644 index c7849992ef..0000000000 Binary files a/mods/HUD/mcl_inventory/textures/crafting_creative_down.png and /dev/null differ diff --git a/mods/HUD/mcl_inventory/textures/crafting_creative_next.png b/mods/HUD/mcl_inventory/textures/crafting_creative_next.png new file mode 100644 index 0000000000..fa71a50f33 Binary files /dev/null and b/mods/HUD/mcl_inventory/textures/crafting_creative_next.png differ diff --git a/mods/HUD/mcl_inventory/textures/crafting_creative_prev.png b/mods/HUD/mcl_inventory/textures/crafting_creative_prev.png new file mode 100644 index 0000000000..03225450ea Binary files /dev/null and b/mods/HUD/mcl_inventory/textures/crafting_creative_prev.png differ diff --git a/mods/HUD/mcl_inventory/textures/crafting_creative_up.png b/mods/HUD/mcl_inventory/textures/crafting_creative_up.png deleted file mode 100644 index 12843b3b25..0000000000 Binary files a/mods/HUD/mcl_inventory/textures/crafting_creative_up.png and /dev/null differ diff --git a/mods/HUD/mcl_inventory/textures/mcl_inventory_slider.png b/mods/HUD/mcl_inventory/textures/mcl_inventory_slider.png deleted file mode 100644 index d93273a7bd..0000000000 Binary files a/mods/HUD/mcl_inventory/textures/mcl_inventory_slider.png and /dev/null differ diff --git a/mods/HUD/mcl_inventory/textures/mcl_inventory_slider_bg.png b/mods/HUD/mcl_inventory/textures/mcl_inventory_slider_bg.png deleted file mode 100644 index beefdb20ba..0000000000 Binary files a/mods/HUD/mcl_inventory/textures/mcl_inventory_slider_bg.png and /dev/null differ