Skip to content
Snippets Groups Projects
Commit c73c25d6 authored by jp's avatar jp
Browse files

Ench. table : re-adjust button positions correctly

parent 0fc03147
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
textures/bg_btn.png

127 B | W: | H:

textures/bg_btn.png

127 B | W: | H:

textures/bg_btn.png
textures/bg_btn.png
textures/bg_btn.png
textures/bg_btn.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -234,3 +234,4 @@ minetest.register_abm({
inv:set_stack("hammer", 1, hammer)
end
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment