From 4124baa9765d682c62e9a7d8445f3cdca3f19a13 Mon Sep 17 00:00:00 2001 From: dreamer Date: Sat, 27 Apr 2024 20:25:14 +0200 Subject: [PATCH] custom name for TextBox --- plugins/Makefile | 2 +- plugins/plugins.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/Makefile b/plugins/Makefile index e0ecad4..0939cfb 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -976,7 +976,7 @@ PATHSET_CUSTOM = PitchShifter PLUGIN_FILES += $(filter-out PdArray/src/plugin.cpp,$(wildcard PdArray/src/*.cpp)) # modules/types which are present in other plugins -PDARRAY_CUSTOM = MAX_POLY_CHANNELS draw +PDARRAY_CUSTOM = MAX_POLY_CHANNELS TextBox # -------------------------------------------------------------- # PinkTrombone diff --git a/plugins/plugins.cpp b/plugins/plugins.cpp index 56d585c..c28a0f6 100644 --- a/plugins/plugins.cpp +++ b/plugins/plugins.cpp @@ -778,8 +778,10 @@ extern Model* modelBlankPanel; // PdArray #define MAX_POLY_CHANNELS PDARRAYMAX_POLY_CHANNELS +#define TextBox PdArrayTextBox #include "PdArray/src/plugin.hpp" #undef PDARRAYMAX_POLY_CHANNELS +#undef Textbox // PinkTrombone #include "PinkTrombone/src/plugin.hpp" @@ -2928,10 +2930,12 @@ static void initStatic__PdArray() if (spl.ok()) { #define MAX_POLY_CHANNELS PDARRAYMAX_POLY_CHANNELS +#define TextBox PdArrayTextBox p->addModel(modelArray); p->addModel(modelMiniramp); p->addModel(modelMinistep); #undef PDARRAYMAX_POLY_CHANNELS +#undef TextBox } }