YATA.Sett.getColors C# (CSharp) Method

getColors() private method

private getColors ( ) : void
return void
        private void getColors()
        {
            byte[] tempbytes;
            List <Color> tempcolors;
            #region colCursor
            tempbytes = cols[0];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[9], tempbytes[10], tempbytes[11]));
                colCursor = tempcolors.ToArray();
            #endregion
            #region col3DFolder
            tempbytes = cols[1];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                col3DFolder = tempcolors.ToArray();
            #endregion
            #region colFiles
            tempbytes = cols[2];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                colFiles = tempcolors.ToArray();
            #endregion
            #region colArrowBut
            tempbytes = cols[3];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                colArrowBut = tempcolors.ToArray();
            #endregion
            #region colArrow
            tempbytes = cols[4];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                colArrow = tempcolors.ToArray();
            #endregion
            #region colBotBut
            tempbytes = cols[5];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[4], tempbytes[5], tempbytes[6]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[7], tempbytes[8], tempbytes[9]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[10], tempbytes[11], tempbytes[12]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[20], tempbytes[21], tempbytes[22]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[23], tempbytes[24], tempbytes[25]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[26], tempbytes[27], tempbytes[28]));
                colBotBut = tempcolors.ToArray(); //In his version rei swapped this line with..
            #endregion
            #region colClose
            tempbytes = cols[6];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[4], tempbytes[5], tempbytes[6]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[7], tempbytes[8], tempbytes[9]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[10], tempbytes[11], tempbytes[12]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[20], tempbytes[21], tempbytes[22]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[23], tempbytes[24], tempbytes[25]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[26], tempbytes[27], tempbytes[28]));
                colClose = tempcolors.ToArray();// .. this one
            #endregion
            #region colGameTxt
            tempbytes = cols[7];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[10], tempbytes[11], tempbytes[12]));
                colGameTxt = tempcolors.ToArray();
            #endregion
            #region colBotSolid
            tempbytes = cols[8];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                tempcolors.Add(Color.FromArgb(tempbytes[9], tempbytes[10], tempbytes[11], tempbytes[12]));
                colBotSolid = tempcolors.ToArray();
            #endregion
            #region colBotOuter
            tempbytes = cols[9];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                colBotOuter = tempcolors.ToArray();
            #endregion
            #region colFolderBG
            tempbytes = cols[10];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                tempcolors.Add(Color.FromArgb(tempbytes[9], tempbytes[10], tempbytes[11], tempbytes[12]));
                colFolderBG = tempcolors.ToArray();
            #endregion
            #region colFolderArrow
                tempbytes = cols[11];
                tempcolors = new List<Color>();
                ArrowNum1.Value = Convert.ToInt32(tempbytes[2]);
                ArrowNum2.Value = Convert.ToInt32(tempbytes[3]);
                ArrowNum3.Value = Convert.ToInt32(tempbytes[16]);
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[4], tempbytes[5], tempbytes[6]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[7], tempbytes[8], tempbytes[9]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[10], tempbytes[11], tempbytes[12]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[13], tempbytes[14], tempbytes[15]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[17], tempbytes[18], tempbytes[19]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[20], tempbytes[21], tempbytes[22]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[23], tempbytes[24], tempbytes[25]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[26], tempbytes[27], tempbytes[28]));
                string a = "";
                for (int i = 0; i < cols[11].Length; i++)
                {
                     a = a + " " + cols[11][i];
                }
                textBox1.Text = a;
                colFolderArrow = tempcolors.ToArray();
            #endregion
            #region colIconResize
            tempbytes = cols[12];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[9], tempbytes[10], tempbytes[11]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[12], tempbytes[13], tempbytes[14]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[15], tempbytes[16], tempbytes[17]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[18], tempbytes[19], tempbytes[20]));
                colIconResize = tempcolors.ToArray();
            #endregion
            #region colTopOverlay
            tempbytes = cols[13];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[6], tempbytes[7], tempbytes[8]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[9], tempbytes[10], tempbytes[11]));
                colTopOverlay = tempcolors.ToArray();
            #endregion
            #region colDemoMsg
            tempbytes = cols[14];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[3], tempbytes[4], tempbytes[5]));
                colDemoMsg = tempcolors.ToArray();
            #endregion
            #region ColTopScreen
            tempbytes = Form1.topcol[0];
                tempcolors = new List<Color>();
                tempcolors.Add(Color.FromArgb(0xFF, tempbytes[0], tempbytes[1], tempbytes[2]));
                numericUpDown2.Value = tempbytes[3];
                numericUpDown1.Value = tempbytes[4];
            if (Form1.topDraw == 2)
            {
                if (Form1.imgOffs[6] == 0x0) CHK_bg.Checked = true; else CHK_bg.Checked = false;
            }
                ColTopScreen = tempcolors.ToArray();
            #endregion
        }