![Athozus](/assets/img/avatar_default.png)
* Add sorters for inbox/outbox * Add ascending/descending, fix selection issue * Add filters * Update translations * Fix UI * Fix luacheck * Fix fields disappearing after clicking on tabs/buttons * Fix luacheck (2) * Fix first message not sorted correctly
13 lines
441 B
Lua
13 lines
441 B
Lua
-- helper function for tabbed overview
|
|
|
|
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, filter)
|
|
elseif index == 2 then
|
|
mail.show_sent(playername, sortfield, sortdirection, filter)
|
|
elseif index == 3 then
|
|
mail.show_drafts(playername)
|
|
end
|
|
end
|