Skip to content

Commit

Permalink
Disabled game start button - logic was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusRPaulsen committed Aug 8, 2017
1 parent 2f3bc92 commit a2b845b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Games/BoidGameController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ void CBoidGameController::setupGui() {
//animalGame->addToggle("Mother rabbit", showMotherRabbit);
//animalGame->addButton("Remove all animals");

gui->addButton("Start Sandimal game");
gui->addButton("Start Seek Mother game");
// gui->addButton("Start Sandimal game");
// gui->addButton("Start Seek Mother game");

gui->addSlider("# of fish", 0, 200, fish.size())->setPrecision(0);
gui->addSlider("# of rabbits", 0, 50, rabbits.size())->setPrecision(0);
Expand Down Expand Up @@ -812,14 +812,14 @@ void CBoidGameController::onButtonEvent(ofxDatGuiButtonEvent e) {
gui->getToggle("Mother fish")->setChecked(false);
gui->getToggle("Mother rabbit")->setChecked(false);
}
else if (e.target->is("Start Sandimal game"))
{
StartGame();
}
else if (e.target->is("Start Seek Mother game"))
{
StartSeekMotherGame();
}
//else if (e.target->is("Start Sandimal game"))
//{
// StartGame();
//}
//else if (e.target->is("Start Seek Mother game"))
//{
// StartSeekMotherGame();
//}
}

void CBoidGameController::onToggleEvent(ofxDatGuiToggleEvent e) {
Expand Down

0 comments on commit a2b845b

Please sign in to comment.