Browse Source

custom name for TextBox

pull/658/head
dreamer 1 year ago
parent
commit
4124baa976
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      plugins/Makefile
  2. +4
    -0
      plugins/plugins.cpp

+ 1
- 1
plugins/Makefile View File

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


+ 4
- 0
plugins/plugins.cpp View File

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



Loading…
Cancel
Save