// Token: 0x060000A8 RID: 168 RVA: 0x00008854 File Offset: 0x00006A54
 public void OnGUI()
 {
     if (this.Enabled)
     {
         if (!Menu.smethod_2(this.BTexture))
         {
             this.BTexture = Menu.smethod_3(1, 1);
             Menu.smethod_4(this.BTexture, 0, 0, this.BackColor);
             Menu.smethod_5(this.BTexture, TextureWrapMode.Repeat);
             Menu.smethod_6(this.BTexture);
             this.BackStyle = Menu.smethod_7();
             Menu.smethod_9(Menu.smethod_8(this.BackStyle), this.BTexture);
         }
         if (this.NumberOfVisibleElements == 0)
         {
             this.NumberOfVisibleElements = this.Opts.Count;
         }
         this.VisibleOpts.Clear();
         this.BoxRect.width  = 200f;
         this.BoxRect.height = 24f + 21f * (float)this.NumberOfVisibleElements;
         GUI.Box(this.BoxRect, GUIContent.none, this.BackStyle);
         GUI.Label(new Rect(this.BoxRect.x + 60f, this.BoxRect.y, this.BoxRect.width, this.BoxRect.height), "BIRKA HOOK PASTA");
         GUI.color = Color.white;
         int num = 0;
         for (int i = 0; i < this.Opts.Count; i++)
         {
             Menu.Option opt = this.Opts[i];
             this.DrawElement(ref num, opt, 1);
             num++;
         }
         this.NumberOfVisibleElements = num;
         GUI.Label(new Rect(new Vector2(this.BoxRect.x + 125f, this.BoxRect.y + 24f + 21f * (float)num + 3.3f), new Vector2(100f, 100f)), FPSController.GetAsString());
     }
 }
        // Token: 0x060000A9 RID: 169 RVA: 0x00008A20 File Offset: 0x00006C20
        public void DrawElement(ref int i, Menu.Option opt, int cLevel)
        {
            this.VisibleOpts.Add(opt);
            Rect position  = new Rect(this.BoxRect.x + (float)cLevel * 5f, this.BoxRect.y + 24f + 21f * (float)i, 200f, 30f);
            Rect position2 = new Rect(this.BoxRect.x + this.BoxRect.width - 25f, this.BoxRect.y + 24f + 21f * (float)i, 200f, 30f);

            if (this.SelectedOption == opt)
            {
                if (!this.SelectedOption.CustomColor.Equals(Color.black))
                {
                    GUI.color = this.SelectedOption.CustomColor;
                }
                else
                {
                    GUI.color = this.BaseColor;
                }
            }
            switch (opt.Type)
            {
            case Menu.Option.OptType.Toggle:
                GUI.Label(position, opt.Name);
                if (!opt.GetData <bool>())
                {
                    GUI.Label(position2, "No");
                }
                else
                {
                    GUI.Label(position2, "Yes");
                }
                break;

            case Menu.Option.OptType.Selector:
            {
                GUI.Label(position, opt.Name);
                object obj = opt.GetSubContent <List <object> >().ElementAtOrDefault(opt.GetData <int>());
                if (obj != null && obj.GetType() == typeof(Color))
                {
                    GUI.color = (Color)obj;
                }
                if (obj.GetType() == typeof(KeyCode))
                {
                    position2.x -= 50f;
                    GUI.Label(position2, "[" + opt.GetSubContent <List <object> >().ElementAtOrDefault(opt.GetData <int>()).ToString() + "]");
                }
                else
                {
                    GUI.Label(position2, "[" + opt.GetData <int>().ToString() + "]");
                }
                if (obj != null && obj.GetType() == typeof(Color))
                {
                    GUI.color = Color.white;
                }
                break;
            }

            case Menu.Option.OptType.Text:
                GUI.Label(position, opt.Name);
                break;

            case Menu.Option.OptType.Category:
                GUI.Label(position, "> " + opt.Name);
                if (opt.GetData <bool>())
                {
                    GUI.Label(position2, "-");
                    cLevel++;
                    using (List <Menu.Option> .Enumerator enumerator = opt.Items.GetEnumerator())
                    {
                        while (enumerator.MoveNext())
                        {
                            Menu.Option opt2 = enumerator.Current;
                            i++;
                            GUI.color = Color.white;
                            this.DrawElement(ref i, opt2, cLevel);
                        }
                        break;
                    }
                }
                GUI.Label(position2, "+");
                break;
            }
            if (this.SelectedOption == opt)
            {
                GUI.color = Color.white;
            }
        }