refactor ui components

This commit is contained in:
BuckarooBanzay 2023-03-28 13:47:45 +02:00 committed by Athozus
parent 9b2883030a
commit 1a0f0d02ff
No known key found for this signature in database
GPG key ID: B50895022E8484BF
13 changed files with 981 additions and 966 deletions

10
ui/mail.lua Normal file
View 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