mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Tweak creative slider positioning
This commit is contained in:
parent
0411a9c7fa
commit
8e58459337
1 changed files with 4 additions and 4 deletions
|
@ -213,7 +213,7 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz
|
||||||
else
|
else
|
||||||
slider_height = 4/pagemax
|
slider_height = 4/pagemax
|
||||||
end
|
end
|
||||||
local slider_pos = slider_height*(pagenum-1)+2.20
|
local slider_pos = slider_height*(pagenum-1)+2.23
|
||||||
local name = "nix"
|
local name = "nix"
|
||||||
local formspec = ""
|
local formspec = ""
|
||||||
local main_list
|
local main_list
|
||||||
|
@ -288,9 +288,9 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz
|
||||||
-- Creative inventory slots
|
-- Creative inventory slots
|
||||||
main_list = "list[detached:creative_"..playername..";main;0,1.75;9,5;"..tostring(start_i).."]" ..
|
main_list = "list[detached:creative_"..playername..";main;0,1.75;9,5;"..tostring(start_i).."]" ..
|
||||||
-- ... and scroll bar
|
-- ... and scroll bar
|
||||||
"image_button[9.03,1.74;0.85,0.6;crafting_creative_up.png;creative_prev;]"..
|
"image_button[9.02,1.76;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[9.033," .. tostring(slider_pos) .. ";0.78,"..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,6.15;0.85,0.6;crafting_creative_down.png;creative_next;]"
|
||||||
end
|
end
|
||||||
local function tab(current, check)
|
local function tab(current, check)
|
||||||
local img
|
local img
|
||||||
|
|
Loading…
Reference in a new issue