Example #1
0
 // Token: 0x06002462 RID: 9314
 // RVA: 0x0001C862 File Offset: 0x0001AA62
 internal void method_71()
 {
     if (this.enum113_0 == Enum113.const_0)
     {
         return;
     }
     base.method_16(this.int_10, Enum70.const_0);
     this.enum113_0 = Enum113.const_0;
     this.method_69(false);
 }
Example #2
0
 // Token: 0x0600200D RID: 8205
 // RVA: 0x000B64B4 File Offset: 0x000B46B4
 internal Class68(Class114 class114_1)
 {
     EventHandler eventHandler = null;
     EventHandler eventHandler2 = null;
     EventHandler eventHandler3 = null;
     this.enum113_0 = Enum113.const_2;
     this.list_0 = new List<Class531>();
     this.int_2 = -1;
     this.int_4 = -1;
     this.list_1 = new List<Class531>();
     this.bool_12 = true;
     base..ctor(class114_1);
     Class695.smethod_1();
     this.smartThreadPool_0 = new SmartThreadPool(new STPStartInfo
     {
         MaxWorkerThreads = 1,
         AreThreadsBackground = true,
         IdleTimeout = 1000,
         ThreadPriority = ThreadPriority.BelowNormal
     });
     this.class296_1 = Class466.Current;
     this.bool_5 = (Class115.osuModes_1 == OsuModes.SelectPlay);
     this.bool_4 = (Class115.osuModes_1 == OsuModes.SelectMulti);
     if (!this.bool_4 && this.bool_5)
     {
         Class62.Mode = Class68.class605_0;
     }
     Class908.smethod_1();
     Class476.smethod_3();
     if (Class466.Current != null)
     {
         Class466.Current.list_0.Clear();
     }
     Class62.class512_0 = null;
     lock (Class858.object_0)
     {
         Class802.smethod_1(false);
         Class802.bool_16 = false;
     }
     this.method_23();
     if ((Class466.Current == null || string.IsNullOrEmpty(Class466.Current.string_4) || !Class466.Current.bool_4) && (Class115.osuModes_1 == OsuModes.SelectPlay || Class115.osuModes_1 == OsuModes.SelectMulti || Class115.osuModes_1 == OsuModes.SelectEdit))
     {
         Class109.smethod_3(true, true);
     }
     Class570.smethod_4(new Class570.Delegate45(this.method_39));
     Class570.smethod_2(new Class570.Delegate44(this.method_38));
     Class569.smethod_0(new Class569.Delegate43(this.method_19));
     Class809.smethod_8(new VoidDelegate(this.method_21));
     Class876.smethod_0(new Class876.Delegate53(this.method_9));
     this.class86_0 = new Class86(class114_1);
     this.class86_0.method_16(new Class86.Delegate56(this.method_10));
     this.class86_0.method_18(new Class86.Delegate56(this.method_11));
     this.class86_0.method_20(new Class86.Delegate56(this.method_12));
     this.class86_0.method_22(new Class86.Delegate56(this.method_13));
     this.class86_0.method_24(new Class86.Delegate56(this.method_14));
     this.class86_0.method_26(new Class86.Delegate56(this.method_15));
     this.class86_0.method_28(new VoidDelegate(this.method_44));
     this.class86_0.method_30(new VoidDelegate(this.method_45));
     Class466.smethod_19(new Class466.Delegate33(this.method_32));
     if (Class62.class911_1 != null)
     {
         this.class911_3 = Class62.class911_1;
     }
     else
     {
         this.class911_3 = new Class911(true);
     }
     this.class110_0 = new Class110(new Rectangle(-5, 92, 290, 267), Vector2.get_Zero(), true, 0f, Enum98.const_2)
     {
         bool_2 = true,
         bool_8 = true
     };
     this.class911_2 = new Class911(true);
     this.class911_4 = new Class911(true);
     this.class911_1 = new Class911(true);
     this.class533_0 = new Class533(" ", 18f, new Vector2(21f, -3f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false);
     this.class533_0.vmethod_11();
     this.class911_1.Add(this.class533_0);
     this.class533_1 = new Class533(string.Empty, 12f, new Vector2(23f, 12f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false);
     this.class911_1.Add(this.class533_1);
     this.class533_2 = new Class533(string.Empty, 12f, new Vector2(1f, 24f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false);
     this.class911_1.Add(this.class533_2);
     this.class533_3 = new Class533(string.Empty, 12f, new Vector2(1f, 36f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false);
     this.class911_1.Add(this.class533_3);
     this.class533_4 = new Class533(string.Empty, 8f, new Vector2(1f, 48f), Vector2.get_Zero(), 1f, true, Color.get_White(), false);
     this.class911_1.Add(this.class533_4);
     this.class533_6 = new Class533(string.Empty, 20f, new Vector2(5f, -1f), 1f, true, new Color(255, 255, 255, 128))
     {
         enum115_0 = Enum115.const_7,
         origins_0 = Origins.TopRight,
         object_0 = 0.0
     };
     this.class911_1.Add(this.class533_6);
     this.class731_2 = Class885.Load("selection-ranked", Enum112.flag_1);
     this.class731_3 = Class885.Load("selection-question", Enum112.flag_1);
     this.class731_1 = Class885.Load("selection-approved", Enum112.flag_1);
     this.class531_12 = new Class531(this.class731_2, Enum115.const_5, Origins.Centre, Enum114.const_0, new Vector2(12f, 12f), 0.78f, true, Color.get_TransparentWhite(), null);
     this.class911_1.Add(this.class531_12);
     this.class531_13 = new Class531(Class115.class731_0, Enum115.const_5, Origins.TopLeft, Enum114.const_0, Vector2.get_Zero(), 1f, true, Color.get_TransparentWhite(), null);
     this.class531_13.bool_13 = false;
     this.class531_13.bool_7 = true;
     this.class531_13.vector2_2 = new Vector2((float)Class115.int_22, (float)Class115.int_23);
     this.class911_1.Add(this.class531_13);
     this.class531_9 = new Class531(Class115.class731_0, Enum115.const_7, Origins.TopLeft, Enum114.const_0, new Vector2(3f, 73f), 0.88f, true, new Color(0, 0, 0, 128), null);
     this.class531_9.float_2 = 1.6f;
     this.class531_9.vector2_2 = new Vector2(3f, 330f);
     this.class531_10 = new Class531(Class115.class731_0, Enum115.const_7, Origins.TopLeft, Enum114.const_0, new Vector2(3f, 73f), 0.89f, true, new Color(255, 255, 255, 255), null);
     this.class531_10.float_2 = 1.6f;
     this.class531_10.vector2_2 = new Vector2(3f, 20f);
     this.class911_1.Add(this.class531_9);
     this.class911_1.Add(this.class531_10);
     if (!this.bool_5 && !this.bool_4)
     {
         Class876.class623_0 = Mods.None;
         Class531 class530_ = new Class531(Class885.Load("selection-drop", Enum112.flag_1), new Vector2(5f, 110f), 0.5f, true, Color.get_White());
         this.class911_1.Add(class530_);
     }
     else
     {
         bool flag;
         Enum115 enum115_ = (flag = (Class885.smethod_25() || Class885.Load("selection-mods", Enum112.flag_6).enum112_0 == Enum112.flag_1)) ? Enum115.const_11 : Enum115.const_5;
         Origins origins_ = flag ? Origins.BottomLeft : Origins.TopLeft;
         float num = (float)(flag ? 0 : 426);
         float num2 = (float)(Class115.bool_21 ? 140 : 120);
         if (Class68.bool_11)
         {
             this.class531_17 = new Class531(Class885.Load("selection-mode", Enum112.flag_6), enum115_, origins_, Enum114.const_0, new Vector2(num2, num), 0.95f, true, Color.get_White(), null);
             this.class911_1.Add(this.class531_17);
             this.class531_17 = new Class531(Class885.Load("selection-mode-over", Enum112.flag_6), enum115_, origins_, Enum114.const_0, new Vector2(num2, num), 0.96f, true, Color.get_White(), null);
             this.class531_17.float_3 = 0.01f;
             this.class531_17.class746_1 = new Class746(TransformationType.Fade, 0.01f, 1f, 0, 100, Enum70.const_0);
             this.class531_17.bool_1 = true;
             Class531 arg_831_0 = this.class531_17;
             if (Class68.eventHandler_4 == null)
             {
                 Class68.eventHandler_4 = new EventHandler(Class68.smethod_5);
             }
             arg_831_0.method_35(Class68.eventHandler_4);
             Class530 arg_850_0 = this.class531_17;
             if (eventHandler == null)
             {
                 eventHandler = new EventHandler(this.method_64);
             }
             arg_850_0.method_2(eventHandler);
             this.class911_1.Add(this.class531_17);
             this.class597_0 = new Class597(this.class911_1);
             float num3 = 80f;
             Vector2 vector;
             vector..ctor(num2, 344f);
             for (int i = 0; i < 4; i++)
             {
                 Class68.Class449 class = new Class68.Class449();
Example #3
0
 // Token: 0x06002461 RID: 9313
 // RVA: 0x0001C83B File Offset: 0x0001AA3B
 internal void method_70()
 {
     if (this.enum113_0 == Enum113.const_1)
     {
         return;
     }
     base.method_14(this.int_9, Enum70.const_0);
     this.enum113_0 = Enum113.const_1;
     this.method_69(true);
 }