From b0e5709584073caeac072b9ee1b9a9fbb4bee3f5 Mon Sep 17 00:00:00 2001 From: Gamn69 <34080164+Gamn69@users.noreply.github.com> Date: Wed, 28 Aug 2019 14:51:57 -0500 Subject: [PATCH 1/4] Sets all levels to enabled when begin button is clicked? --- src/models/Control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/Control.php b/src/models/Control.php index e9cddeab..9d9127b7 100644 --- a/src/models/Control.php +++ b/src/models/Control.php @@ -131,6 +131,7 @@ class Control extends Model { await \HH\Asio\va( Progressive::genRun(), + Level::genSetStatusAll(true, 'all'), //Sets all levels to enabled? Level::genBaseScoring(), // Kick off scoring for bases ); } From 22623fdf854ff6ed75e634f35a625d3ab871e95e Mon Sep 17 00:00:00 2001 From: Gamn69 <34080164+Gamn69@users.noreply.github.com> Date: Wed, 28 Aug 2019 16:27:02 -0700 Subject: [PATCH 2/4] Tested - works Also remove the question mark at the end of the comment --- src/models/Control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Control.php b/src/models/Control.php index 9d9127b7..c973d949 100644 --- a/src/models/Control.php +++ b/src/models/Control.php @@ -131,7 +131,7 @@ class Control extends Model { await \HH\Asio\va( Progressive::genRun(), - Level::genSetStatusAll(true, 'all'), //Sets all levels to enabled? + Level::genSetStatusAll(true, 'all'), //Sets all levels to enabled Level::genBaseScoring(), // Kick off scoring for bases ); } From ef52073313563c85f3872fe7cb50e3ef5493e420 Mon Sep 17 00:00:00 2001 From: Gamn69 <34080164+Gamn69@users.noreply.github.com> Date: Wed, 28 Aug 2019 17:37:12 -0700 Subject: [PATCH 3/4] Moved my added line up to see if it works with auto enable --- src/models/Control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Control.php b/src/models/Control.php index c973d949..4a7aaea1 100644 --- a/src/models/Control.php +++ b/src/models/Control.php @@ -81,6 +81,7 @@ class Control extends Model { await \HH\Asio\va( Announcement::genCreateAuto('Game has started!'), // Announce game starting Configuration::genUpdate('game', '1'), // Mark game as started + Level::genSetStatusAll(true, 'all'), //Sets all levels to enabled Configuration::genUpdate('scoring', '1'), // Enable scoring ); @@ -131,7 +132,6 @@ class Control extends Model { await \HH\Asio\va( Progressive::genRun(), - Level::genSetStatusAll(true, 'all'), //Sets all levels to enabled Level::genBaseScoring(), // Kick off scoring for bases ); } From 56e0a236a73378ee269c9b18f7e54a89c4700eb2 Mon Sep 17 00:00:00 2001 From: Gamn69 <34080164+Gamn69@users.noreply.github.com> Date: Wed, 28 Aug 2019 21:25:23 -0700 Subject: [PATCH 4/4] Tested - works with auto begin --- src/models/Control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Control.php b/src/models/Control.php index 4a7aaea1..49f9e1ab 100644 --- a/src/models/Control.php +++ b/src/models/Control.php @@ -1,4 +1,4 @@ -