]> git.lizzy.rs Git - xdecor.git/commitdiff
Ench. table : re-adjust button positions correctly
authorjp <jeanpatrick.guerrero@gmail.com>
Tue, 24 Nov 2015 16:23:04 +0000 (17:23 +0100)
committerjp <jeanpatrick.guerrero@gmail.com>
Tue, 24 Nov 2015 16:45:45 +0000 (17:45 +0100)
enchanting.lua
textures/bg_btn.png
worktable.lua

index 70918260bbb2c91f62e7a04f55e60ed6fb6793c0..957043cdd77c1d67bd0333cafadeb8bfafdb3862 100644 (file)
@@ -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)
index dc5d617f941fd841b1fb972eaf3d0109c4d5a11f..990a788415948c7558847c102e4de262ff256c17 100644 (file)
Binary files a/textures/bg_btn.png and b/textures/bg_btn.png differ
index 05fada0e634e9746dc2cfadab7741241d15db25c..c0e82b61910bfa2e80d346d43b944a17597b38a6 100644 (file)
@@ -234,3 +234,4 @@ minetest.register_abm({
                inv:set_stack("hammer", 1, hammer)
        end
 })
+