Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreya-Autumn committed Dec 5, 2024
1 parent 9de351f commit e1d4655
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/MenuComponents/MenuBarComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ struct MenuBarComponent : juce::Component
visButton->setToggleState(false, juce::dontSendNotification);

std::string bruh[1] = {"names of groups here eventually"};
visC = std::make_unique<VisitorsComponent>(processor.currentVisitors->dimensions,
processor.numVisitorGroups, bruh);
visC = std::make_unique<VisitorsComponent>(processor.numVisitorGroups, bruh);
addAndMakeVisible(*visC);
visC->setVisible(false);

Expand Down
21 changes: 8 additions & 13 deletions src/MenuComponents/VisitorsComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//==============================================================================
struct VisitorsComponent : public juce::Component
{
VisitorsComponent(int *v, int ng, std::string names[])
VisitorsComponent(int ng, std::string names[])
{
juce::Colour n{juce::Colours::transparentWhite};
juce::Colour o{juce::Colours::ghostwhite.withAlpha(.15f)};
Expand All @@ -30,19 +30,14 @@ struct VisitorsComponent : public juce::Component

circle.addEllipse(0, 0, diameter, diameter);

for (int i = 0; i < 12; ++i)
for (int i = 0; i < 7; ++i)
{
dd[i] = v[i];

if (i < 7)
{
commas.add(new juce::ShapeButton("option" + std::to_string(i), n, o, o));
commas[i]->setShape(circle, true, true, false);
addAndMakeVisible(commas[i]);
commas[i]->setRadioGroupId(2);
commas[i]->onClick = [this] { selectComma(); };
commas[i]->setClickingTogglesState(true);
}
commas.add(new juce::ShapeButton("option" + std::to_string(i), n, o, o));
commas[i]->setShape(circle, true, true, false);
addAndMakeVisible(commas[i]);
commas[i]->setRadioGroupId(2);
commas[i]->onClick = [this] { selectComma(); };
commas[i]->setClickingTogglesState(true);
}

miniLattice = std::make_unique<lattice_t>(dd, this, 18);
Expand Down

0 comments on commit e1d4655

Please sign in to comment.