The spectral module enabled parameters still not doing so great...
This commit is contained in:
@ -925,7 +925,7 @@ void SpectralChainEditor::mouseDown(const MouseEvent & ev)
|
||||
juce::Rectangle<int> r(box_w*m_cur_index, 1, 12, 12);
|
||||
if (r.contains(ev.x, ev.y))
|
||||
{
|
||||
m_order[m_cur_index].m_enabled = !m_order[m_cur_index].m_enabled;
|
||||
toggleBool(m_order[m_cur_index].m_enabled);
|
||||
m_src->setSpectrumProcessOrder(m_order);
|
||||
if (ModuleOrderOrEnabledChangedCallback)
|
||||
ModuleOrderOrEnabledChangedCallback();
|
||||
@ -993,6 +993,7 @@ void SpectralChainEditor::moveModule(int old_id, int new_id)
|
||||
|
||||
void SpectralChainEditor::drawBox(Graphics & g, int index, int x, int y, int w, int h)
|
||||
{
|
||||
jassert(m_order[index].m_enabled != nullptr);
|
||||
String txt;
|
||||
if (m_order[index].m_index == 0)
|
||||
txt = "Harmonics";
|
||||
@ -1021,9 +1022,10 @@ void SpectralChainEditor::drawBox(Graphics & g, int index, int x, int y, int w,
|
||||
g.setColour(Colours::white);
|
||||
g.drawRect(x, y, w, h);
|
||||
g.drawFittedText(txt, x,y,w,h, Justification::centred, 3);
|
||||
//g.drawFittedText(m_order[index].m_enabled->name, x, y, w, h, Justification::centred, 3);
|
||||
g.setColour(Colours::gold);
|
||||
g.drawRect(x + 2, y + 2, 12, 12);
|
||||
if (m_order[index].m_enabled == true)
|
||||
if (*m_order[index].m_enabled == true)
|
||||
{
|
||||
g.drawLine(x+2, y+2, x+14, y+14);
|
||||
g.drawLine(x+2, y+14, x+14, y+2);
|
||||
|
Reference in New Issue
Block a user