Ench. table : re-adjust button positions correctly
This commit is contained in:
parent
0fc0314774
commit
c73c25d694
@ -6,15 +6,15 @@ function enchanting.formspec(pos, tooltype)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local formspec = "size[9,9;]"..xbg..
|
||||
"bgcolor[#080808BB;true]background[0,0;9,9;ench_ui.png]list[context;tool;0.9,2.9;1,1;]list[context;mese;2,2.9;1,1;]image[2,2.9;1,1;mese_layout.png]list[current_player;main;0.5,4.5;8,4;]"
|
||||
|
||||
|
||||
if tooltype == "sword" then
|
||||
formspec = formspec.."image_button[3.9,2.95;4,0.9;bg_btn.png;sharp;Sharpness]"
|
||||
formspec = formspec.."image_button[3.9,2.9;4,0.92;bg_btn.png;sharp;Sharpness]"
|
||||
elseif tooltype == "tool" then
|
||||
formspec = formspec.."image_button[3.9,0.9;4,0.9;bg_btn.png;fast;Efficiency]image_button[3.9,1.82;4,1.1;bg_btn.png;durable;Durability]"
|
||||
formspec = formspec.."image_button[3.9,0.85;4,0.92;bg_btn.png;fast;Efficiency]image_button[3.9,1.77;4,1.12;bg_btn.png;durable;Durability]"
|
||||
elseif tooltype == "armor" then
|
||||
formspec = formspec.."image_button[3.9,0.9;4,0.9;bg_btn.png;strong;Strength]"
|
||||
formspec = formspec.."image_button[3.9,0.85;4,0.92;bg_btn.png;strong;Strength]"
|
||||
elseif tooltype == "boots" then
|
||||
formspec = formspec.."image_button[3.9,0.9;4,0.9;bg_btn.png;strong;Strength]image_button[3.9,1.82;4,1.1;bg_btn.png;speed;Speed]"
|
||||
formspec = formspec.."image_button[3.9,0.85;4,0.92;bg_btn.png;strong;Strength]image_button[3.9,1.77;4,1.12;bg_btn.png;speed;Speed]"
|
||||
end
|
||||
|
||||
meta:set_string("formspec", formspec)
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 127 B |
@ -234,3 +234,4 @@ minetest.register_abm({
|
||||
inv:set_stack("hammer", 1, hammer)
|
||||
end
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user