From 58cd5ca8fe7324bb0b7d9504db6d5ee2fa21b7c7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 5 Sep 2020 00:29:51 +0200 Subject: [PATCH] Show plugin-author in plugin-list script --- share/scripts/list_plugins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/scripts/list_plugins.lua b/share/scripts/list_plugins.lua index 5ddbdc96fe..aeddb48b68 100644 --- a/share/scripts/list_plugins.lua +++ b/share/scripts/list_plugins.lua @@ -20,7 +20,7 @@ function factory () return function () local cnt = 0 if pi:is_channelstrip () then goto nextproc end if all_plugs[id] then cnt = all_plugs[id]['cnt'] end - all_plugs[id] = { name = proc:name(), ["type"] = pi:type(), id = pp:unique_id(), cnt = (cnt + 1) } + all_plugs[id] = { name = proc:name(), ["type"] = pi:type(), id = pp:unique_id(), author = pp:get_info().creator, cnt = (cnt + 1) } ::nextproc:: i = i + 1 end @@ -46,7 +46,7 @@ function factory () return function () for k,v in pairs (all_plugs) do print (string.format ("%2d * %-6s %-30s (%s)", v['cnt'], plugintypestr(v['type']), v['name'], v['id'])) - rv = rv .. "\n" .. string.format ("%3d * %-6s %s", v['cnt'], plugintypestr(v['type']), v['name']) .. "" + rv = rv .. "\n" .. string.format ("%3d * %-6s %s (by %s)", v['cnt'], plugintypestr(v['type']), v['name'], v['author']) .. "" end LuaDialog.Message ("All Plugins",rv , LuaDialog.MessageType.Info, LuaDialog.ButtonType.Close):run()