From d903aaca89af228dfc7ed40fc48f56c1515ee064 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 20 Jul 2020 01:55:07 +0200 Subject: [PATCH] Clickable group items --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index cacfeda..fbe8b05 100644 --- a/init.lua +++ b/init.lua @@ -1077,7 +1077,7 @@ local function get_grid_fs(lang_code, fs, rcp, spacing) local btn_name = "" if groups then - btn_name = groups[1] + btn_name = fmt("group|%s|%s", groups[1], item) elseif item ~= "" then btn_name = item end @@ -1690,6 +1690,8 @@ local function fields(player, _f) item = sub(item, 1, -5) elseif sub(item, 1, 1) == "_" then item = sub(item, 2) + elseif sub(item, 1, 6) == "group|" then + item = match(item, "([%w:_]+)$") end item = reg_aliases[item] or item