Ench. table : add tooltips to enchant buttons
This commit is contained in:
parent
0246054ff8
commit
2cbfd8ff0b
@ -4,7 +4,7 @@ screwdriver = screwdriver or {}
|
||||
function enchanting.formspec(pos, tooltype)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local formspec = "size[9,9;]"..default.gui_slots..default.get_hotbar_bg(0.5,4.5)..
|
||||
"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;]"
|
||||
"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;]tooltip[sharp;Your sword kills faster]tooltip[durable;Your tool lasts longer]tooltip[fast;Your tool digs faster]tooltip[strong;Your armor is more resistant]tooltip[speed;Your speed is increased]"
|
||||
|
||||
if tooltype == "sword" then
|
||||
formspec = formspec.."image_button[3.9,2.9;4,0.92;bg_btn.png;sharp;Sharpness]"
|
||||
|
@ -81,7 +81,7 @@ function mailbox.formspec(pos, owner, num)
|
||||
end
|
||||
end
|
||||
return "size[11,9]"..xbg..default.get_hotbar_bg(1.5,5.25)..
|
||||
"label[0,0;You have received...]label[6,0;Last donators :]box[6,0.75;4.85,3.9;#555555]tablecolumns[color;text]tableoptions[background=#00000000;highlight=#00000000;border=false]table[6,0.75;4.85,4.4;givers;"..giver.."]list[nodemeta:"..spos..";mailbox;0,0.75;6,4;]list[current_player;main;1.5,5.25;8,4;]"
|
||||
"label[0,0;Mailbox :]label[6,0;Last donators :]box[6,0.72;4.85,3.92;#555555]tablecolumns[color;text]tableoptions[background=#00000000;highlight=#00000000;border=false]table[6,0.77;4.85,4.4;givers;"..giver.."]list[nodemeta:"..spos..";mailbox;0,0.75;6,4;]list[current_player;main;1.5,5.25;8,4;]"
|
||||
else
|
||||
return "size[8,5]"..xbg..default.get_hotbar_bg(0,1.25)..
|
||||
"label[0.5,0;Send your goods\nto "..owner.." :]list[nodemeta:"..spos..";drop;3.5,0;1,1;]list[current_player;main;0,1.25;8,4;]"
|
||||
|
Loading…
Reference in New Issue
Block a user