mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-07 07:00:31 -04:00
refactor ui components
This commit is contained in:
parent
9b2883030a
commit
1a0f0d02ff
13 changed files with 981 additions and 966 deletions
10
ui/mail.lua
Normal file
10
ui/mail.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
-- 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)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue