Ejemplo n.º 1
0
 // Token: 0x060020B4 RID: 8372
 // RVA: 0x0001AB0A File Offset: 0x00018D0A
 public Class463(Class296 class296_1, Mods mods_2)
     : base(class296_1)
 {
     if (class296_1.method_5() == PlayModes.OsuMania)
     {
         mods_2 = Mods.None;
     }
     this.mods_1 = mods_2;
 }
Ejemplo n.º 2
0
 // Token: 0x060027C5 RID: 10181
 // RVA: 0x000F7570 File Offset: 0x000F5770
 private void method_2(object sender, EventArgs e)
 {
     if (this.class95_0.class296_0.method_3() == this.class296_0.method_3())
     {
         this.class95_0.bool_5 = true;
     }
     this.class95_0.class296_0 = this.class296_0;
     this.class95_0.method_13(true, false);
 }
Ejemplo n.º 3
0
    private void method_0(Stream A_0)
    {
        Class296 class2 = new Class296(A_0);

        while (class2.method_2())
        {
            Class113 class3 = new Class113(smethod_1(class2.method_0()));
            this.class694_0.method_1(class3);
            class2.method_5(class3.method_3());
            class3.method_3().Position = 0L;
        }
    }
Ejemplo n.º 4
0
 // Token: 0x060020A2 RID: 8354
 // RVA: 0x000BD190 File Offset: 0x000BB390
 public static Mods smethod_1(Mods mods_1, PlayModes playModes_0, Class296 class296_1)
 {
     switch (playModes_0)
     {
     case PlayModes.Taiko:
         return mods_1 & Class465.smethod_2();
     case PlayModes.CatchTheBeat:
         return mods_1 & Class462.smethod_2();
     case PlayModes.OsuMania:
         return Class421.smethod_5(class296_1, mods_1) & Class463.smethod_2();
     default:
         return mods_1 & Class464.smethod_2();
     }
 }
Ejemplo n.º 5
0
 // Token: 0x06002EE1 RID: 12001
 // RVA: 0x00130BE4 File Offset: 0x0012EDE4
 internal static void smethod_0()
 {
     if (Class789.bool_0 && Class115.smethod_91() <= 600000 && Class809.bool_4)
     {
         if (!Class331.smethod_79() && Class466.Current != Class789.class296_0)
         {
             Class789.class296_0 = Class466.Current;
             Class789.enum76_0 = Class789.Enum76.const_0;
             Class789.double_0 = 0.0;
             if (Class789.class296_0 == null)
             {
                 return;
             }
         }
         if (!Class331.smethod_79())
         {
             Class789.double_0 += Class115.double_9;
             switch (Class789.enum76_0)
             {
             case Class789.Enum76.const_0:
                 if (Class789.double_0 > 3000.0)
                 {
                     Class789.enum76_0 = Class789.Enum76.const_1;
                     Class789.smethod_1(false);
                     return;
                 }
                 break;
             case Class789.Enum76.const_1:
                 if (Class789.double_0 > 40000.0 || Class789.double_0 > (double)(Class331.smethod_31() / 2))
                 {
                     Class789.enum76_0 = Class789.Enum76.const_2;
                     Class789.smethod_1(true);
                     return;
                 }
                 break;
             case Class789.Enum76.const_2:
                 if (Class789.double_0 > (double)Class331.smethod_31())
                 {
                     Class789.enum76_0 = Class789.Enum76.const_0;
                     Class789.double_0 = 0.0;
                 }
                 break;
             default:
                 return;
             }
         }
         return;
     }
 }
Ejemplo n.º 6
0
 // Token: 0x060027C2 RID: 10178
 // RVA: 0x000F746C File Offset: 0x000F566C
 internal Class641(Class296 class296_1, Class95 class95_1, string string_0, string string_1, int int_0)
 {
     this.class95_0 = class95_1;
     this.class296_0 = class296_1;
     this.class533_0 = new Class533(class296_1.method_75(), 20f, new Vector2(0f, (float)(int_0 * 30 + 5)), 2f, true, Color.get_White());
     this.class540_0 = new Class540(new Vector2(0f, (float)(int_0 * 30)), new Vector2(640f * Class115.smethod_46() - 30f, 30f), 1f, new Color(50, 50, 50))
     {
         float_3 = 0.01f,
         bool_7 = true,
         bool_1 = true,
         bool_2 = true
     };
     this.class540_0.method_35(new EventHandler(this.method_0));
     this.class540_0.method_37(new EventHandler(this.method_1));
     this.class540_0.method_2(new EventHandler(this.method_2));
 }
Ejemplo n.º 7
0
    private void method_11(Stream A_0)
    {
        Class296 class2 = new Class296(A_0);

        while (class2.method_2())
        {
            Class467 class3 = new Class467(smethod_7(class2.method_0()), "");
            base.method_0().method_2(class3);
            try
            {
                class2.method_4(class3.method_4());
                class3.method_4().Position = 0L;
                continue;
            }
            catch (Exception2)
            {
                continue;
            }
        }
    }
Ejemplo n.º 8
0
 // Token: 0x060020C8 RID: 8392
 // RVA: 0x0001AAB2 File Offset: 0x00018CB2
 public Class465(Class296 class296_1)
     : base(class296_1)
 {
 }
Ejemplo n.º 9
0
 // Token: 0x060027B1 RID: 10161
 // RVA: 0x000F6AD4 File Offset: 0x000F4CD4
 public Class95()
     : base(Class41.GetString(OsuString.JumpToDialog_Title), true)
 {
     this.class911_0.Add(new Class540(new Vector2(10f, 79f), new Vector2((float)(Class115.smethod_43() - 20), 1f), 1f, Color.get_White()));
     this.class911_0.Add(new Class540(new Vector2(10f, 440f), new Vector2((float)(Class115.smethod_43() - 20), 1f), 1f, Color.get_White()));
     Rectangle rectangle_;
     rectangle_..ctor(10, 80, (int)(640f * Class115.smethod_46()) - 20, 360);
     this.class110_0 = new Class110(rectangle_, Vector2.get_Zero(), true, 0f, Enum98.const_5);
     this.class911_1 = new Class911(true);
     this.class911_2 = new Class911(true);
     this.class911_1.method_4(Class115.bool_21, null);
     this.int_1 = Class115.smethod_43();
     this.class533_0 = new Class533(Class41.GetString(OsuString.SongSelection_Collections) + ":", 20f, new Vector2(10f, 30f), 2f, true, new Color(254, 220, 97));
     this.class753_0 = new Class753(this.class911_2, "All", new Vector2(10f, 55f), 140f, 3f);
     this.class756_0 = new Class756(20, new Vector2(10f, 50f), 20, Enum72.const_3);
     this.int_2 = -1;
     this.class911_0.Add<Class531>(this.class756_0.list_0);
     this.class911_0.Add(this.class533_0);
     this.class110_0.method_30(this.class911_1);
     Class754 arg_1FF_0 = this.class756_0;
     Class754.Delegate37 delegate37_ = delegate(Class754 class754_0, bool bool_6)
     {
         if (bool_6)
         {
             if (this.class756_0.method_29() && this.class756_0.string_0.Length == 1)
             {
                 this.int_2 = Class115.int_1;
                 return;
             }
             if (!this.class756_0.method_29())
             {
                 this.int_2 = Class115.int_1 + 300;
             }
         }
     };
     arg_1FF_0.method_3(delegate37_);
     if (Class95.eventHandler_4 == null)
     {
         Class95.eventHandler_4 = new EventHandler(Class95.smethod_2);
     }
     base.method_2(Class95.eventHandler_4);
     this.class753_0.method_9("All", "All");
     this.class753_0.method_18("All", true);
     foreach (string current in Class476.smethod_0().Keys)
     {
         this.class753_0.method_9(current, current);
     }
     this.class753_0.method_0(new EventHandler(this.method_11));
     this.class296_0 = Class466.Current;
     this.method_9();
 }
Ejemplo n.º 10
0
 // Token: 0x060027C1 RID: 10177
 // RVA: 0x0001EA05 File Offset: 0x0001CC05
 public bool method_0(Class296 class296_0)
 {
     return class296_0.string_12.IndexOf(this.string_0, StringComparison.CurrentCultureIgnoreCase) >= 0;
 }
Ejemplo n.º 11
0
 // Token: 0x0600208F RID: 8335
 // RVA: 0x0001A995 File Offset: 0x00018B95
 public bool method_0(Class296 class296_0)
 {
     return Class68.smethod_2<DateTime>(class296_0.dateTime_0, this.class454_0.string_0, this.dateTime_0);
 }
Ejemplo n.º 12
0
 // Token: 0x06003520 RID: 13600
 // RVA: 0x00026DAB File Offset: 0x00024FAB
 public bool method_0(Class296 class296_0)
 {
     return class296_0.method_26() > this.double_0 && class296_0.method_26() <= this.double_1;
 }
Ejemplo n.º 13
0
 // Token: 0x06001A8E RID: 6798
 // RVA: 0x000165A9 File Offset: 0x000147A9
 public bool method_0(Class296 class296_1)
 {
     return class296_1.method_3() == this.class296_0.method_3();
 }
Ejemplo n.º 14
0
 // Token: 0x06002349 RID: 9033
 // RVA: 0x0001BEF6 File Offset: 0x0001A0F6
 public Class513(Class296 class296_1, string string_6)
     : base(class296_1, string_6)
 {
 }
Ejemplo n.º 15
0
 // Token: 0x060026CD RID: 9933
 // RVA: 0x0001E0ED File Offset: 0x0001C2ED
 public bool method_0(Class296 class296_1)
 {
     return this.class296_0.string_4 == class296_1.string_4;
 }
Ejemplo n.º 16
0
		// Token: 0x06002C7B RID: 11387
		// RVA: 0x00021B62 File Offset: 0x0001FD62
		internal Class515(string string_6, Class296 class296_1) : base(string_6, class296_1)
		{
			this.playModes_0 = PlayModes.Taiko;
		}
Ejemplo n.º 17
0
		// Token: 0x06002C7A RID: 11386
		// RVA: 0x00021B51 File Offset: 0x0001FD51
		internal Class515(Class296 class296_1, string string_6) : base(class296_1, string_6)
		{
			this.playModes_0 = PlayModes.Taiko;
		}
Ejemplo n.º 18
0
 // Token: 0x0600190D RID: 6413
 // RVA: 0x00078828 File Offset: 0x00076A28
 internal static Class335 smethod_0(Class296 class296_1, bool bool_4, bool bool_5)
 {
     Stream stream = class296_1.method_60();
     Class335 class;
 public abstract void Visit(Class296 c);
 public override void Visit(Class296 c) { }
Ejemplo n.º 21
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();
Ejemplo n.º 22
0
 // Token: 0x06002351 RID: 9041
 // RVA: 0x0001BF3F File Offset: 0x0001A13F
 internal Class514(Class296 class296_1, string string_6)
     : base(class296_1, string_6)
 {
     this.playModes_0 = PlayModes.OsuMania;
 }
Ejemplo n.º 23
0
 // Token: 0x06002352 RID: 9042
 // RVA: 0x0001BF50 File Offset: 0x0001A150
 internal Class514(string string_6, Class296 class296_1)
     : base(string_6, class296_1)
 {
     this.playModes_0 = PlayModes.OsuMania;
 }
Ejemplo n.º 24
0
 // Token: 0x06003524 RID: 13604
 // RVA: 0x00026DFF File Offset: 0x00024FFF
 public bool method_0(Class296 class296_0)
 {
     return class296_0.method_32() < (double)(this.int_0 * 60) && class296_0.method_32() >= (double)((this.int_0 - 1) * 60);
 }
Ejemplo n.º 25
0
 // Token: 0x0600214A RID: 8522
 // RVA: 0x000C43D0 File Offset: 0x000C25D0
 internal static List<Class340> smethod_1(Class296 class296_1, string string_0, ref bool bool_2, bool bool_3)
 {
     List<Class340> list = bool_3 ? null : new List<Class340>();
     if (!string_0.Contains("NaN") && !string_0.Contains("Infinity"))
     {
         string[] array = string_0.Split(new char[]
         {
             '\n'
         });
         bool_2 = true;
         string[] array2 = array;
         for (int i = 0; i < array2.Length; i++)
         {
             string text = array2[i];
             if (text.Trim().Length != 0)
             {
                 Class340 class = Class297.smethod_2(text, class296_1.int_17, class296_1.int_15, class296_1.sampleSet_0);
Ejemplo n.º 26
0
 // Token: 0x060027B9 RID: 10169
 // RVA: 0x000F7064 File Offset: 0x000F5264
 internal void method_13(bool bool_6, bool bool_7)
 {
     if (Class466.Current != this.class296_0 || bool_6 || bool_7)
     {
         if (!bool_6)
         {
             this.class296_0 = Class466.Current;
         }
         else
         {
             Class466.smethod_21(this.class296_0);
         }
         foreach (Class641 current in this.list_2)
         {
             if (this.class296_0.string_4 == current.class296_0.string_4)
             {
                 current.class540_0.method_25(0.6f, 100, Enum70.const_0);
                 current.class540_0.method_39(Color.get_CornflowerBlue(), 100, false, Enum70.const_0);
                 if (!bool_6)
                 {
                     if (this.list_2.Count <= 12)
                     {
                         this.class110_0.method_14(new Vector2(0f, 0f));
                     }
                     else if ((float)(this.list_2.IndexOf(current) * 30) >= this.class110_0.vector2_2.Y - 360f)
                     {
                         this.class110_0.method_17(new Vector2(0f, this.class110_0.vector2_2.Y - 360f), 0f);
                     }
                     else
                     {
                         this.class110_0.method_17(new Vector2(0f, (float)(30 * this.list_2.IndexOf(current))), 0f);
                     }
                 }
             }
             else if (current.class540_0.float_3 != 0.001f)
             {
                 current.class540_0.method_25(0.001f, 20, Enum70.const_0);
                 current.class540_0.method_39(Color.get_White(), 20, false, Enum70.const_0);
             }
         }
     }
     if (bool_6 && !this.bool_5)
     {
         Class109.smethod_3(false, false);
         Class109.smethod_4(Class466.Current);
     }
 }
Ejemplo n.º 27
0
 // Token: 0x0600351E RID: 13598
 // RVA: 0x00026D9B File Offset: 0x00024F9B
 public bool method_0(Class296 class296_0)
 {
     return class296_0.method_41() == this.rankings_0;
 }
Ejemplo n.º 28
0
 private static int smethod_3(Class296 class296_1, Class296 class296_2)
 {
     return class296_2.dateTime_0.CompareTo(class296_1.dateTime_0);
 }
Ejemplo n.º 29
0
 // Token: 0x06003522 RID: 13602
 // RVA: 0x00026DCE File Offset: 0x00024FCE
 public bool method_0(Class296 class296_0)
 {
     return class296_0.int_16 < this.int_0 * 60000 && class296_0.int_16 >= (this.int_0 - 1) * 60000;
 }
Ejemplo n.º 30
0
 // Token: 0x06002088 RID: 8328
 // RVA: 0x0001A8A4 File Offset: 0x00018AA4
 public bool method_9(Class296 class296_0)
 {
     return Class68.smethod_2<double>((double)Math.Max(class296_0.int_10, class296_0.int_9), this.string_0, this.double_0);
 }
Ejemplo n.º 31
0
 // Token: 0x06003526 RID: 13606
 // RVA: 0x00026E2C File Offset: 0x0002502C
 public bool method_0(Class296 class296_0)
 {
     return Class421.smethod_2(class296_0) == this.int_0;
 }
Ejemplo n.º 32
0
 private static bool smethod_0(Class296 class296_0)
 {
     return class296_0.method_3() == Class466.Current.method_3();
 }