From 5ac5b275c818e2b97101c1072f0db56c5de22d5c Mon Sep 17 00:00:00 2001 From: Athozus Date: Fri, 4 Aug 2023 13:20:04 +0200 Subject: [PATCH] Add settings groups --- init.lua | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/init.lua b/init.lua index cd5fa9d..aa5f29f 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,6 @@ +-- translation +local S = minetest.get_translator("mail") + mail = { -- version version = 3, @@ -52,19 +55,25 @@ mail = { }, settings = { - chat_notifications = { type = "bool", default = true }, - onjoin_notifications = { type = "bool", default = true }, - hud_notifications = { type = "bool", default = true }, - sound_notifications = { type = "bool", default = true }, - unreadcolorenable = { type = "bool", default = true }, - cccolorenable = { type = "bool", default = true }, - defaultsortfield = { type = "number", default = 3 }, - defaultsortdirection = { type = "number", default = 1 }, - trash_move_enable = { type = "bool", default = true }, - auto_marking_read = { type = "bool", default = true }, - date_format = { type = "string", default = "%Y-%m-%d %X" }, + chat_notifications = { type = "bool", default = true, group = "notifications" }, + onjoin_notifications = { type = "bool", default = true, group = "notifications" }, + hud_notifications = { type = "bool", default = true, group = "notifications" }, + sound_notifications = { type = "bool", default = true, group = "notifications" }, + unreadcolorenable = { type = "bool", default = true, group = "message_list" }, + cccolorenable = { type = "bool", default = true, group = "message_list" }, + defaultsortfield = { type = "number", default = 3, group = "message_list" }, + defaultsortdirection = { type = "number", default = 1, group = "message_list" }, + trash_move_enable = { type = "bool", default = true, group = "other" }, + auto_marking_read = { type = "bool", default = true, group = "other" }, + 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 = {} }