Add settings

This commit is contained in:
Athozus 2023-05-04 12:14:18 +02:00
parent a8632255b3
commit d51b363cbc
No known key found for this signature in database
GPG key ID: B50895022E8484BF
16 changed files with 335 additions and 101 deletions

13
ui/options.lua Normal file
View file

@ -0,0 +1,13 @@
-- helper function for tabbed options
function mail.show_options(playername)
local index = mail.selected_idxs.optionstab[playername] or 1
if not mail.selected_idxs.optionstab[playername] then
mail.selected_idxs.optionstab[playername] = 1
end
if index == 1 then
mail.show_settings(playername)
elseif index == 2 then
mail.show_about(playername)
end
end