2023-05-05 12:38:19 +03:00
|
|
|
-- translation
|
|
|
|
local S = minetest.get_translator("mail")
|
|
|
|
|
2023-03-29 18:25:01 +03:00
|
|
|
local FORMNAME = "mail:about"
|
|
|
|
|
|
|
|
function mail.show_about(name)
|
|
|
|
local formspec = [[
|
2023-04-03 21:12:42 +03:00
|
|
|
size[10,6;]
|
2023-05-05 12:38:19 +03:00
|
|
|
tabheader[0.3,1;optionstab;]] .. S("Settings") .. "," .. S("About") .. [[;2;false;false]
|
2023-04-03 21:12:42 +03:00
|
|
|
button[9.35,0;0.75,0.5;back;X]
|
2023-05-05 12:38:19 +03:00
|
|
|
label[0,0.8;Mail]
|
|
|
|
label[0,1.2;Provided my mt-mods]
|
|
|
|
label[0,1.6;Version: 1.2.0-dev]
|
|
|
|
label[0,2.2;Licenses:]
|
|
|
|
label[0.2,2.6;Expat (code), WTFPL (textures)]
|
|
|
|
label[0,3.2;https://github.com/mt-mods/mail]
|
|
|
|
label[0,3.6;https://content.minetest.net/packages/mt-mods/mail]
|
|
|
|
textarea[0.5,4.8;4,5.5;;Note;]] ..
|
2023-04-03 21:12:42 +03:00
|
|
|
[[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,]] ..
|
2023-04-12 18:16:44 +03:00
|
|
|
[[#FFF,Athozus,Outbox\, Maillists\, UI\, Drafts,]] ..
|
2023-04-03 21:12:42 +03:00
|
|
|
[[#FFF,fluxionary,Minor fixups,]] ..
|
2023-04-12 18:16:44 +03:00
|
|
|
[[#FFF,SX,Various fixes\, UI,]] ..
|
2023-04-22 00:33:21 +03:00
|
|
|
[[#FFF,Toby1710,UX fixes,]] ..
|
|
|
|
[[#FFF,Peter Nerlich,CC\, BCC,]] ..
|
|
|
|
[[#FFF,Niklp,German translation,]] ..
|
|
|
|
[[#FFF,Emojigit,Chinese translation,]] ..
|
|
|
|
[[#FFF,Dennis Jenkins,UX fixes,]] ..
|
|
|
|
[[#FFF,Thomas Rudin,Maintenance,]] ..
|
2023-05-02 16:54:06 +03:00
|
|
|
[[#FFF,NatureFreshMilk,Maintenance,]] ..
|
|
|
|
[[#FFF,imre84,UI fixes]
|
2023-03-29 18:25:01 +03:00
|
|
|
]] .. mail.theme
|
|
|
|
|
|
|
|
minetest.show_formspec(name, FORMNAME, formspec)
|
|
|
|
end
|
|
|
|
|
2023-04-03 21:12:42 +03:00
|
|
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
2023-03-29 18:25:01 +03:00
|
|
|
if formname ~= FORMNAME then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2023-05-05 12:38:19 +03:00
|
|
|
local playername = player:get_player_name()
|
|
|
|
|
2023-04-03 21:12:42 +03:00
|
|
|
if fields.back then
|
|
|
|
mail.show_mail_menu(playername)
|
2023-05-05 12:38:19 +03:00
|
|
|
|
|
|
|
elseif fields.optionstab == "1" then
|
|
|
|
mail.selected_idxs.optionstab[playername] = 1
|
|
|
|
mail.show_settings(playername)
|
|
|
|
|
|
|
|
elseif fields.optionstab == "2" then
|
|
|
|
mail.selected_idxs.optionstab[playername] = 2
|
|
|
|
mail.show_about(playername)
|
2023-04-03 21:12:42 +03:00
|
|
|
end
|
|
|
|
end)
|