1
0
Fork 0
mirror of https://github.com/mt-mods/mail.git synced 2025-03-16 06:31:24 +00:00
mail/ui/mail.lua
Athozus 0ea3777b51
Implement drafts ()
* Add drafts

* Update translations

* Fix luacheck

* Fix luacheck (2)
2023-03-31 17:14:52 +02:00

12 lines
339 B
Lua

-- helper function for tabbed overview
function mail.show_mail_menu(playername)
local index = mail.selected_idxs.boxtab[playername] or 1
if index == 1 then
mail.show_inbox(playername)
elseif index == 2 then
mail.show_sent(playername)
elseif index == 3 then
mail.show_drafts(playername)
end
end