mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-06 14:40:30 -04:00
Add filters
This commit is contained in:
parent
618b338295
commit
1a1989a01d
6 changed files with 58 additions and 15 deletions
|
@ -1,11 +1,11 @@
|
|||
-- helper function for tabbed overview
|
||||
|
||||
function mail.show_mail_menu(playername, sortfield, sortdirection)
|
||||
function mail.show_mail_menu(playername, sortfield, sortdirection, filter)
|
||||
local index = mail.selected_idxs.boxtab[playername] or 1
|
||||
if index == 1 then
|
||||
mail.show_inbox(playername, sortfield, sortdirection)
|
||||
mail.show_inbox(playername, sortfield, sortdirection, filter)
|
||||
elseif index == 2 then
|
||||
mail.show_sent(playername, sortfield, sortdirection)
|
||||
mail.show_sent(playername, sortfield, sortdirection, filter)
|
||||
elseif index == 3 then
|
||||
mail.show_drafts(playername)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue