From c73c25d6945952564379461e97cce34efb3e616f Mon Sep 17 00:00:00 2001 From: jp Date: Tue, 24 Nov 2015 17:23:04 +0100 Subject: [PATCH] Ench. table : re-adjust button positions correctly --- enchanting.lua | 10 +++++----- textures/bg_btn.png | Bin 127 -> 127 bytes worktable.lua | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) 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 dc5d617f941fd841b1fb972eaf3d0109c4d5a11f..990a788415948c7558847c102e4de262ff256c17 100644 GIT binary patch delta 57 zcmb=gpP*&P00KXqch>_c&H|6fVg?3oVGw3ym^DWND9B#o>FdgVpIbseOyI%^pC1#W FRRD9z4fy~7 delta 57 zcmb=gpP*&v$Kb`__vxkOH3kL-&H|6fVg?3oVGw3ym^DWND9B#o>FdgVpG%fUSn=^= JYr%=pDgd(p4wnD` 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 }) +