diff --git a/enchanting.lua b/enchanting.lua index 7091826..957043c 100644 --- a/enchanting.lua +++ b/enchanting.lua @@ -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) diff --git a/textures/bg_btn.png b/textures/bg_btn.png index dc5d617..990a788 100644 Binary files a/textures/bg_btn.png and b/textures/bg_btn.png differ diff --git a/worktable.lua b/worktable.lua index 05fada0..c0e82b6 100644 --- a/worktable.lua +++ b/worktable.lua @@ -234,3 +234,4 @@ minetest.register_abm({ inv:set_stack("hammer", 1, hammer) end }) +