diff --git a/enchanting.lua b/enchanting.lua index 88f119b..a900f09 100644 --- a/enchanting.lua +++ b/enchanting.lua @@ -1,22 +1,21 @@ local enchanting = {} -local xbg = default.gui_bg..default.gui_bg_img..default.gui_slots function enchanting.tools_fs() - return "size[8,7;]"..xbg.. - "label[0.85,-0.15;Enchant]image[0.6,0.2;2,2;xdecor_enchbook.png]list[current_name;tool;0.5,2;1,1;]list[current_name;mese;1.5,2;1,1;]image[1.5,2;1,1;mese_layout.png]image[3,-0.15;5.7,3.8;ench_ui.png]list[current_player;main;0,3.35;8,4;]".. - "image_button[3.35,0.2;4,0.8;bg_btn.png;fast;Efficiency]image_button[3.35,1.2;4,0.8;bg_btn.png;durable;Durability]" + return "size[9,8;]"..default.gui_slots.. + "bgcolor[#080808BB;true]background[0,0;9,8;ench_ui.png]list[current_name;tool;0.9,2.9;1,1;]list[current_name;mese;2,2.9;1,1;]image[2,2.9;1,1;mese_layout.png]list[current_player;main;0.5,4.5;8,3;]".. + "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]" end function enchanting.swords_fs() - return "size[8,7;]"..xbg.. - "label[0.85,-0.15;Enchant]image[0.6,0.2;2,2;xdecor_enchbook.png]list[current_name;tool;0.5,2;1,1;]list[current_name;mese;1.5,2;1,1;]image[1.5,2;1,1;mese_layout.png]image[3,-0.15;5.7,3.8;ench_ui.png]list[current_player;main;0,3.35;8,4;]".. - "image_button[3.35,2.2;4,0.8;bg_btn.png;sharp;Sharpness]" + return "size[9,8;]"..default.gui_slots.. + "bgcolor[#080808BB;true]background[0,0;9,8;ench_ui.png]list[current_name;tool;0.9,2.9;1,1;]list[current_name;mese;2,2.9;1,1;]image[2,2.9;1,1;mese_layout.png]list[current_player;main;0.5,4.5;8,3;]".. + "image_button[3.9,2.95;4,0.9;bg_btn.png;sharp;Sharpness]" end function enchanting.default_fs(pos) local meta = minetest.get_meta(pos) - local formspec = "size[8,7;]"..xbg.. - "label[0.85,-0.15;Enchant]image[0.6,0.2;2,2;xdecor_enchbook.png]list[current_name;tool;0.5,2;1,1;]list[current_name;mese;1.5,2;1,1;]image[1.5,2;1,1;mese_layout.png]image[3,-0.15;5.7,3.8;ench_ui.png]list[current_player;main;0,3.35;8,4;]" + local formspec = "size[9,8;]"..default.gui_slots.. + "bgcolor[#080808BB;true]background[0,0;9,8;ench_ui.png]list[current_name;tool;0.9,2.9;1,1;]list[current_name;mese;2,2.9;1,1;]image[2,2.9;1,1;mese_layout.png]list[current_player;main;0.5,4.5;8,3;]" meta:set_string("formspec", formspec) meta:set_string("infotext", "Enchantment Table") diff --git a/textures/bg_btn.png b/textures/bg_btn.png index 9fa1d2d..dc5d617 100644 Binary files a/textures/bg_btn.png and b/textures/bg_btn.png differ diff --git a/textures/chess_bg.png b/textures/chess_bg.png index 3a2eb05..fe93745 100644 Binary files a/textures/chess_bg.png and b/textures/chess_bg.png differ diff --git a/textures/ench_ui.png b/textures/ench_ui.png index 632a40b..41f180c 100644 Binary files a/textures/ench_ui.png and b/textures/ench_ui.png differ diff --git a/textures/mese_layout.png b/textures/mese_layout.png index 830ece1..02d6248 100644 Binary files a/textures/mese_layout.png and b/textures/mese_layout.png differ diff --git a/textures/xdecor_enchantment_side.png b/textures/xdecor_enchantment_side.png index 4ef86b8..e7a49bb 100644 Binary files a/textures/xdecor_enchantment_side.png and b/textures/xdecor_enchantment_side.png differ diff --git a/textures/xdecor_enchbook.png b/textures/xdecor_enchbook.png deleted file mode 100644 index 2ed728e..0000000 Binary files a/textures/xdecor_enchbook.png and /dev/null differ