Example #1
0
 /// <summary>
 /// Modified the display of the spaces
 /// </summary>
 protected override void DrawSpaces()
 {
     foreach (var space in MainGrid.Spaces)
     {
         if (!space.IsSpare)
         {
             Color color;
             Color black = Color.black;
             Color white = Color.white;
             Color acid  = new Color(0.85f, 1.0f, 0.0f, 0.75f);
             //Color acid = new Color(0.85f * _colorOscilator, 1.0f * _colorOscilator, 0.0f * _colorOscilator, 0.5f);
             //Color grey = new Color(0f, 0f, 0f, _areaTransparency);
             Color grey = new Color(_colorOscilator, _colorOscilator, _colorOscilator, 0.5f);
             if (space.Reconfigure)
             {
                 if (space != _selectedSpace)
                 {
                     color = acid;
                 }
                 else
                 {
                     color = acid;
                 }
             }
             else
             {
                 if (space != _selectedSpace)
                 {
                     color = grey;
                 }
                 else
                 {
                     color = grey;
                 }
             }
             PP_Drawing.DrawSpaceSurface(space, MainGrid, color, transform.position);
         }
     }
 }
Example #2
0
    /// <summary>
    /// Modified the display of the spaces
    /// </summary>
    protected override void DrawSpaces()
    {
        foreach (var space in MainGrid.Spaces)
        {
            if (!space.IsSpare)
            {
                Color color;
                Color acid = new Color(0.85f, 1.0f, 0.0f, 0.85f);
                Color grey = new Color(0f, 0f, 0f, 0.25f);

                if (space.Reconfigure)
                {
                    if (space != _selectedSpace)
                    {
                        color = acid;
                    }
                    else
                    {
                        color = acid;
                    }
                }
                else
                {
                    if (space != _selectedSpace)
                    {
                        color = grey;
                    }
                    else
                    {
                        color = grey;
                    }
                }
                PP_Drawing.DrawSpaceSurface(space, MainGrid, color, transform.position);
            }
        }
    }