From db1fd078a28c14c49536ef3331cc2857c6f3f6ee Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Thu, 13 Apr 2017 21:45:14 +0200 Subject: [PATCH] groups: add support for customnode groups --- libs/filter.lua | 3 ++- txt/classify_description_de.lua | 3 +++ txt/classify_description_en.lua | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/filter.lua b/libs/filter.lua index e2951f4..4f9e25f 100644 --- a/libs/filter.lua +++ b/libs/filter.lua @@ -57,7 +57,8 @@ filter.register_filter({ k:sub(1, 7) == "excolor" or k:sub(1, 5) == "color" or k:sub(1, 8) == "unicolor" or - k:sub(1, 4) == "food" then + k:sub(1, 4) == "food" or + k:sub(1, 10) == "customnode" then mk = string.gsub(k, "_", ":") else mk = k diff --git a/txt/classify_description_de.lua b/txt/classify_description_de.lua index bed5519..66b4d5d 100644 --- a/txt/classify_description_de.lua +++ b/txt/classify_description_de.lua @@ -71,6 +71,9 @@ return { ["group:micro"] = {label = "Mikro"}, ["group:panel"] = {label = "Paneel"}, ["group:slope"] = {label = "Neigung"}, + ["group:customnode"] = {label = "Dekorativer Block"}, + ["group:customnode:default"] = {label = false}, + ["type:tool"] = { label = "Werkzeuge" }, ["type:node"] = { label = "Blöcke" }, diff --git a/txt/classify_description_en.lua b/txt/classify_description_en.lua index 4ee37c2..5e83291 100644 --- a/txt/classify_description_en.lua +++ b/txt/classify_description_en.lua @@ -71,6 +71,8 @@ return { ["group:micro"] = {label = "Micro"}, ["group:panel"] = {label = "Panel"}, ["group:slope"] = {label = "Slope"}, + ["group:customnode"] = {label = "Decorative node"}, + ["group:customnode:default"] = {label = false}, ["type:tool"] = { label = "Tools" }, ["type:node"] = { label = "Nodes" },