mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-20 16:41:25 +00:00
Better about page (#55)
* Better layout for about page * Move version label * Fix layout/labels
This commit is contained in:
parent
a11dc89a85
commit
def93bdd0f
1 changed files with 29 additions and 13 deletions
42
ui/about.lua
42
ui/about.lua
|
@ -2,26 +2,42 @@ local FORMNAME = "mail:about"
|
||||||
|
|
||||||
function mail.show_about(name)
|
function mail.show_about(name)
|
||||||
local formspec = [[
|
local formspec = [[
|
||||||
size[8,5;]
|
size[10,6;]
|
||||||
button[7.25,0;0.75,0.5;back;X]
|
button[9.35,0;0.75,0.5;back;X]
|
||||||
label[0,0;Mail]
|
label[0,0;Mail]
|
||||||
label[0,0.5;By cheapie]
|
label[0,0.4;Provided my mt-mods]
|
||||||
label[0,1;http://github.com/cheapie/mail]
|
label[0,0.8;Version: 1.0.3]
|
||||||
label[0,1.5;See LICENSE file for license information]
|
label[0,1.4;Licenses:]
|
||||||
label[0,2.5;NOTE: Communication using this system]
|
label[0.2,1.8;Expat (code), WTFPL (textures)]
|
||||||
label[0,3;is NOT guaranteed to be private!]
|
label[0,2.4;https://github.com/mt-mods/mail]
|
||||||
label[0,3.5;Admins are able to view the messages]
|
label[0,2.8;https://content.minetest.net/packages/mt-mods/mail]
|
||||||
label[0,4;of any player.]
|
textarea[0.5,4.0;4,5.5;;Note;]] ..
|
||||||
|
[[NOTE: Communication using this system is NOT guaranteed to be private!]] ..
|
||||||
|
[[ Admins are able to view the messages of any player.]
|
||||||
|
|
||||||
|
tablecolumns[color;text;text]
|
||||||
|
table[5,0.75;4.9,5.5;contributors;]] ..
|
||||||
|
[[#999,Contributors,,]] ..
|
||||||
|
[[#FFD700,Cheapie,Initial idea/project,]] ..
|
||||||
|
[[#FFF,Rubenwardy,Lua/UI improvements,]] ..
|
||||||
|
[[#FFF,BuckarooBanzay,Clean-ups\, Refactoring,]] ..
|
||||||
|
[[#FFF,Athozus,Outbox\, Maillists\, UI fixes,]] ..
|
||||||
|
[[#FFF,fluxionary,Minor fixups,]] ..
|
||||||
|
[[#FFF,SX,Various fixes,]] ..
|
||||||
|
[[#FFF,Toby1710,Ux fixes,]] ..
|
||||||
|
[[#FFF,Peter Nerlich,CC\, BCC]
|
||||||
]] .. mail.theme
|
]] .. mail.theme
|
||||||
|
|
||||||
minetest.show_formspec(name, FORMNAME, formspec)
|
minetest.show_formspec(name, FORMNAME, formspec)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_player_receive_fields(function(player, formname)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if formname ~= FORMNAME then
|
if formname ~= FORMNAME then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local playername = player:get_player_name()
|
if fields.back then
|
||||||
mail.show_mail_menu(playername)
|
local playername = player:get_player_name()
|
||||||
end)
|
mail.show_mail_menu(playername)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue