Add settings groups

This commit is contained in:
Athozus 2023-08-04 13:20:04 +02:00
parent 1c85da70c5
commit 5ac5b275c8
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
mail = { mail = {
-- version -- version
version = 3, version = 3,
@ -52,19 +55,25 @@ mail = {
}, },
settings = { settings = {
chat_notifications = { type = "bool", default = true }, chat_notifications = { type = "bool", default = true, group = "notifications" },
onjoin_notifications = { type = "bool", default = true }, onjoin_notifications = { type = "bool", default = true, group = "notifications" },
hud_notifications = { type = "bool", default = true }, hud_notifications = { type = "bool", default = true, group = "notifications" },
sound_notifications = { type = "bool", default = true }, sound_notifications = { type = "bool", default = true, group = "notifications" },
unreadcolorenable = { type = "bool", default = true }, unreadcolorenable = { type = "bool", default = true, group = "message_list" },
cccolorenable = { type = "bool", default = true }, cccolorenable = { type = "bool", default = true, group = "message_list" },
defaultsortfield = { type = "number", default = 3 }, defaultsortfield = { type = "number", default = 3, group = "message_list" },
defaultsortdirection = { type = "number", default = 1 }, defaultsortdirection = { type = "number", default = 1, group = "message_list" },
trash_move_enable = { type = "bool", default = true }, trash_move_enable = { type = "bool", default = true, group = "other" },
auto_marking_read = { type = "bool", default = true }, auto_marking_read = { type = "bool", default = true, group = "other" },
date_format = { type = "string", default = "%Y-%m-%d %X" }, date_format = { type = "string", default = "%Y-%m-%d %X", group = "other" },
}, },
settings_groups = {
notifications = S("Notifications"),
message_list = S("Message list"),
other = S("Other")
}
message_drafts = {} message_drafts = {}
} }