Browse Source

c1, mode b - make circles fully visible by default

lairaalmas 1 year ago
parent
commit
a3189fc212
2 changed files with 2 additions and 6 deletions
  1. 1 5
      src/js/games/circleOne.js
  2. 1 1
      src/js/globals/globals_debug.js

+ 1 - 5
src/js/games/circleOne.js

@@ -407,11 +407,7 @@ const circleOne = {
 
         // If game is type (b) (select fractions)
         if (gameMode === 'b') {
-          curCircle.alpha = 0.5;
           curCircle.index = i;
-          curCircleInfo.fraction.labels.forEach((lbl) => {
-            lbl.alpha = 0.5;
-          });
         }
 
         curCircleInfo.distance = Math.floor(
@@ -1021,7 +1017,7 @@ const circleOne = {
     outCircleHandler: function () {
       if (!self.control.hasClicked) {
         document.body.style.cursor = 'auto';
-        const alpha = 0.5;
+        const alpha = 1;
         self.circles.list.forEach((circle) => {
           circle.alpha = alpha;
           circle.info.fraction.labels.forEach((lbl) => {

+ 1 - 1
src/js/globals/globals_debug.js

@@ -3,7 +3,7 @@ const isDebugMode = true;
 const debugState = {
   lang: { status: true, lang: 'it_IT' },
   name: { status: true, name: 'Username' },
-  menu: { status: true, id: 0 },
+  menu: { status: true, id: 1 },
   customMenu: {
     status: true,
     getData: () => {