From a2b845bd3ac054536a774848ec649feeda2bc2b5 Mon Sep 17 00:00:00 2001 From: "Rasmus R. Paulsen" Date: Tue, 8 Aug 2017 09:33:28 +0200 Subject: [PATCH] Disabled game start button - logic was broken --- src/Games/BoidGameController.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Games/BoidGameController.cpp b/src/Games/BoidGameController.cpp index a1907dd..5f01c96 100644 --- a/src/Games/BoidGameController.cpp +++ b/src/Games/BoidGameController.cpp @@ -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); @@ -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) {