summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2016-04-25 03:08:41 -0500
committercheapie <no-email-for-you@example.com>2016-04-25 03:08:41 -0500
commit4256356de1a10c723c28ff4af5c8323393718773 (patch)
tree976bf9908f57d4d7de5700e8367de5f8682da330
parent9aab85fe7a756e08124a0b500e3e34c70fc3d83f (diff)
downloadmail-4256356de1a10c723c28ff4af5c8323393718773.tar
mail-4256356de1a10c723c28ff4af5c8323393718773.tar.gz
mail-4256356de1a10c723c28ff4af5c8323393718773.tar.bz2
mail-4256356de1a10c723c28ff4af5c8323393718773.tar.xz
mail-4256356de1a10c723c28ff4af5c8323393718773.zip
Add X buttons to all windows that didn't have them
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 7b2a5a5..6fd3fed 100644
--- a/init.lua
+++ b/init.lua
@@ -50,7 +50,7 @@ end
function mail.showabout(name)
local formspec = "size[4,5;]"..
- "button[3,0;1,1;back;Back]"..
+ "button[3.5,0;0.5,0.5;back;X]"..
"label[0,0;Mail]"..
"label[0,0.5;By cheapie]"..
"label[0,1;http://github.com/cheapie/mail]"..
@@ -101,7 +101,7 @@ function mail.showmessage(name,msgnumber)
end
function mail.showcompose(name,defaulttgt,defaultsubj,defaultbody)
- local formspec = "size[8,8]field[0.25,0.5;4,1;to;To:;%s]field[0.25,1.5;4,1;subject;Subject:;%s]textarea[0.25,2.5;8,4;body;;%s]button[1,7;2,1;cancel;Cancel]button[5,7;2,1;send;Send]"
+ local formspec = "size[8,8]field[0.25,0.5;4,1;to;To:;%s]field[0.25,1.5;4,1;subject;Subject:;%s]textarea[0.25,2.5;8,4;body;;%s]button[1,7;2,1;cancel;Cancel]button[7.5,0;0.5,0.5;cancel;X]button[5,7;2,1;send;Send]"
formspec = string.format(formspec,minetest.formspec_escape(defaulttgt),minetest.formspec_escape(defaultsubj),minetest.formspec_escape(defaultbody))
minetest.show_formspec(name,"mail:compose",formspec)
end