Пример #1
0
        // Token: 0x0600018C RID: 396 RVA: 0x0001C2D8 File Offset: 0x0001A4D8
        public static RGB_S cheatRGB_4Zone(byte R, byte G, byte B)
        {
            RGB_S result = default(RGB_S);

            if (R == 243 && G == 152 && B == 0)
            {
                result.R = byte.MaxValue;
                result.G = 60;
                result.B = 0;
            }
            else if (R == 255 && G == 241 && B == 0)
            {
                result.R = byte.MaxValue;
                result.G = 180;
                result.B = 0;
            }
            else
            {
                result.R = R;
                result.G = 180 * G / byte.MaxValue;
                result.B = B;
            }
            return(result);
        }
Пример #2
0
 public static RGB_S cheatRGB_4Zone(byte R, byte G, byte B)
 {
   RGB_S rgbS = new RGB_S();
   /*if (R == (byte) 243 && G == (byte) 152 && B == (byte) 0)
   {
     rgbS.R = byte.MaxValue;
     rgbS.G = (byte) 60;
     rgbS.B = (byte) 0;
   }
   else if (R == byte.MaxValue && G == (byte) 241 && B == (byte) 0)
   {
     rgbS.R = byte.MaxValue;
     rgbS.G = (byte) 180;
     rgbS.B = (byte) 0;
   }
   else
   {*/
     rgbS.R = R;
     //rgbS.G = (byte) (180 * (int) G / (int) byte.MaxValue);
     rgbS.G = G;
     rgbS.B = B;
   //}
   return rgbS;
 }
Пример #3
0
        // Token: 0x0600018B RID: 395 RVA: 0x0001BBE8 File Offset: 0x00019DE8
        public static RGB_S cheatRGB_2ndME(byte R, byte G, byte B)
        {
            RGB_S result = default(RGB_S);

            if (WKDColor.m_LED_Vender == 4)
            {
                if (R == 255 && G == 255 && B == 255)
                {
                    result.R = byte.MaxValue;
                    result.G = 50;
                    result.B = 170;
                }
                else if (R == 243 && G == 152 && B == 0)
                {
                    result.R = byte.MaxValue;
                    result.G = 19;
                    result.B = 0;
                }
                else if (R == 255 && G == 241 && B == 0)
                {
                    result.R = byte.MaxValue;
                    result.G = 50;
                    result.B = 0;
                }
                else if (R == 0 && G == 255 && B == 255)
                {
                    result.R = 0;
                    result.G = 50;
                    result.B = 170;
                }
                else if (R == 138 && G == 0 && B == 255)
                {
                    result.R = 138;
                    result.G = 0;
                    result.B = 170;
                }
                else if (R > 249 && G < 20 && B < 128)
                {
                    if (B < 100)
                    {
                        result.R = R;
                        result.G = G;
                        result.B = B / 10;
                    }
                    else
                    {
                        result.R = R;
                        result.G = G;
                        result.B = B - 10;
                    }
                }
                else if (R < 20 && B < G)
                {
                    result.R = R;
                    result.G = G;
                    result.B = 170 * B / byte.MaxValue;
                }
                else if (G < 20 && R < B)
                {
                    result.R = R;
                    result.G = G;
                    result.B = B;
                }
                else
                {
                    result.R = R;
                    result.G = 50 * G / byte.MaxValue;
                    result.B = 170 * B / byte.MaxValue;
                }
            }
            else if (WKDColor.m_LED_Vender == 8)
            {
                if (R == 255 && G == 255 && B == 255)
                {
                    result.R = byte.MaxValue;
                    result.G = 70;
                    result.B = 80;
                }
                else if (R == 243 && G == 152 && B == 0)
                {
                    result.R = byte.MaxValue;
                    result.G = 25;
                    result.B = 0;
                }
                else if (R == 241 && G == 90 && B == 36)
                {
                    result.R = byte.MaxValue;
                    result.G = 5;
                    result.B = 0;
                }
                else if (R == 247 && G == 147 && B == 30)
                {
                    result.R = byte.MaxValue;
                    result.G = 15;
                    result.B = 0;
                }
                else if (R == 255 && G == 241 && B == 0)
                {
                    result.R = byte.MaxValue;
                    result.G = 70;
                    result.B = 0;
                }
                else if (R == 0 && G == 255 && B == 255)
                {
                    result.R = 0;
                    result.G = 70;
                    result.B = 80;
                }
                else if (R == 138 && G == 0 && B == 255)
                {
                    result.R = 138;
                    result.G = 0;
                    result.B = 80;
                }
                else if (R > 249 && G < 20 && B < 128)
                {
                    if (B < 100)
                    {
                        result.R = R;
                        result.G = G;
                        result.B = B / 10;
                    }
                    else
                    {
                        result.R = R;
                        result.G = G;
                        result.B = B - 10;
                    }
                }
                else if (R < 20 && B < G)
                {
                    result.R = R;
                    result.G = G;
                    result.B = 80 * B / byte.MaxValue;
                }
                else if (G < 20 && R < B)
                {
                    result.R = R;
                    result.G = G;
                    result.B = B;
                }
                else
                {
                    result.R = R;
                    result.G = 70 * G / byte.MaxValue;
                    result.B = 80 * B / byte.MaxValue;
                }
            }
            else if (R == 255 && G == 255 && B == 255)
            {
                result.R = byte.MaxValue;
                result.G = 180;
                result.B = 200;
            }
            else if (R == 243 && G == 152 && B == 0)
            {
                result.R = byte.MaxValue;
                result.G = 42;
                result.B = 0;
            }
            else if (R == 241 && G == 90 && B == 36)
            {
                result.R = byte.MaxValue;
                result.G = 25;
                result.B = 0;
            }
            else if (R == 247 && G == 147 && B == 30)
            {
                result.R = byte.MaxValue;
                result.G = 42;
                result.B = 0;
            }
            else if (R == 255 && G == 241 && B == 0)
            {
                result.R = byte.MaxValue;
                result.G = 180;
                result.B = 0;
            }
            else if (R == 0 && G == 255 && B == 255)
            {
                result.R = 0;
                result.G = 180;
                result.B = 200;
            }
            else if (R == 138 && G == 0 && B == 255)
            {
                result.R = 138;
                result.G = 0;
                result.B = 200;
            }
            else if (R > 249 && G < 20 && B < 128)
            {
                if (B < 100)
                {
                    result.R = R;
                    result.G = G;
                    result.B = B / 10;
                }
                else
                {
                    result.R = R;
                    result.G = G;
                    result.B = B - 10;
                }
            }
            else if (R < 20 && B < G)
            {
                result.R = R;
                result.G = G;
                result.B = 200 * B / byte.MaxValue;
            }
            else if (G < 20 && R < B)
            {
                result.R = R;
                result.G = G;
                result.B = B;
            }
            else
            {
                result.R = R;
                result.G = 180 * G / byte.MaxValue;
                result.B = 200 * B / byte.MaxValue;
            }
            return(result);
        }
Пример #4
0
 public static RGB_S cheatRGB_2ndME(byte R, byte G, byte B)
 {
   RGB_S rgbS = new RGB_S();
   switch (WKDColor.m_LED_Vender)
   {
     case 4:
       if (R == byte.MaxValue && G == byte.MaxValue && B == byte.MaxValue)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 50;
         rgbS.B = (byte) 170;
         break;
       }
       if (R == (byte) 243 && G == (byte) 152 && B == (byte) 0)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 19;
         rgbS.B = (byte) 0;
         break;
       }
       if (R == byte.MaxValue && G == (byte) 241 && B == (byte) 0)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 50;
         rgbS.B = (byte) 0;
         break;
       }
       if (R == (byte) 0 && G == byte.MaxValue && B == byte.MaxValue)
       {
         rgbS.R = (byte) 0;
         rgbS.G = (byte) 50;
         rgbS.B = (byte) 170;
         break;
       }
       if (R == (byte) 138 && G == (byte) 0 && B == byte.MaxValue)
       {
         rgbS.R = (byte) 138;
         rgbS.G = (byte) 0;
         rgbS.B = (byte) 170;
         break;
       }
       if (R > (byte) 249 && G < (byte) 20 && B < (byte) 128)
       {
         if (B < (byte) 100)
         {
           rgbS.R = R;
           rgbS.G = G;
           rgbS.B = (byte) ((uint) B / 10U);
           break;
         }
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = (byte) ((uint) B - 10U);
         break;
       }
       if (R < (byte) 20 && (int) B < (int) G)
       {
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = (byte) (170 * (int) B / (int) byte.MaxValue);
         break;
       }
       if (G < (byte) 20 && (int) R < (int) B)
       {
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = B;
         break;
       }
       rgbS.R = R;
       rgbS.G = (byte) (50 * (int) G / (int) byte.MaxValue);
       rgbS.B = (byte) (170 * (int) B / (int) byte.MaxValue);
       break;
     case 8:
       if (R == byte.MaxValue && G == byte.MaxValue && B == byte.MaxValue)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 70;
         rgbS.B = (byte) 80;
         break;
       }
       if (R == (byte) 243 && G == (byte) 152 && B == (byte) 0)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 25;
         rgbS.B = (byte) 0;
         break;
       }
       if (R == byte.MaxValue && G == (byte) 241 && B == (byte) 0)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 70;
         rgbS.B = (byte) 0;
         break;
       }
       if (R == (byte) 0 && G == byte.MaxValue && B == byte.MaxValue)
       {
         rgbS.R = (byte) 0;
         rgbS.G = (byte) 70;
         rgbS.B = (byte) 80;
         break;
       }
       if (R == (byte) 138 && G == (byte) 0 && B == byte.MaxValue)
       {
         rgbS.R = (byte) 138;
         rgbS.G = (byte) 0;
         rgbS.B = (byte) 80;
         break;
       }
       if (R > (byte) 249 && G < (byte) 20 && B < (byte) 128)
       {
         if (B < (byte) 100)
         {
           rgbS.R = R;
           rgbS.G = G;
           rgbS.B = (byte) ((uint) B / 10U);
           break;
         }
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = (byte) ((uint) B - 10U);
         break;
       }
       if (R < (byte) 20 && (int) B < (int) G)
       {
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = (byte) (80 * (int) B / (int) byte.MaxValue);
         break;
       }
       if (G < (byte) 20 && (int) R < (int) B)
       {
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = B;
         break;
       }
       rgbS.R = R;
       rgbS.G = (byte) (70 * (int) G / (int) byte.MaxValue);
       rgbS.B = (byte) (80 * (int) B / (int) byte.MaxValue);
       break;
     default:
       if (R == byte.MaxValue && G == byte.MaxValue && B == byte.MaxValue)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 180;
         rgbS.B = (byte) 200;
         break;
       }
       if (R == (byte) 243 && G == (byte) 152 && B == (byte) 0)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 42;
         rgbS.B = (byte) 0;
         break;
       }
       if (R == byte.MaxValue && G == (byte) 241 && B == (byte) 0)
       {
         rgbS.R = byte.MaxValue;
         rgbS.G = (byte) 180;
         rgbS.B = (byte) 0;
         break;
       }
       if (R == (byte) 0 && G == byte.MaxValue && B == byte.MaxValue)
       {
         rgbS.R = (byte) 0;
         rgbS.G = (byte) 180;
         rgbS.B = (byte) 200;
         break;
       }
       if (R == (byte) 138 && G == (byte) 0 && B == byte.MaxValue)
       {
         rgbS.R = (byte) 138;
         rgbS.G = (byte) 0;
         rgbS.B = (byte) 200;
         break;
       }
       if (R > (byte) 249 && G < (byte) 20 && B < (byte) 128)
       {
         if (B < (byte) 100)
         {
           rgbS.R = R;
           rgbS.G = G;
           rgbS.B = (byte) ((uint) B / 10U);
           break;
         }
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = (byte) ((uint) B - 10U);
         break;
       }
       if (R < (byte) 20 && (int) B < (int) G)
       {
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = (byte) (200 * (int) B / (int) byte.MaxValue);
         break;
       }
       if (G < (byte) 20 && (int) R < (int) B)
       {
         rgbS.R = R;
         rgbS.G = G;
         rgbS.B = B;
         break;
       }
       rgbS.R = R;
       rgbS.G = (byte) (180 * (int) G / (int) byte.MaxValue);
       rgbS.B = (byte) (200 * (int) B / (int) byte.MaxValue);
       break;
   }
   return rgbS;
 }