groups: add support for customnode groups

This commit is contained in:
Alexander Weber 2017-04-13 21:45:14 +02:00
parent 139d5f3dc7
commit db1fd078a2
3 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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" },

View File

@ -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" },