Exemplo n.º 1
0
 // Token: 0x06003153 RID: 12627
 // RVA: 0x00143690 File Offset: 0x00141890
 internal Class102()
     : base(Class41.GetString(OsuString.ChannelListDialog_SelectAnyChannelYouWishToJoin), true)
 {
     this.class110_0 = new Class110(new Rectangle(0, 60, 550, 321), Vector2.get_Zero(), false, 0f, Enum98.const_5);
     this.float_0 = 400f;
     base.method_3(Class41.GetString(OsuString.General_Close), Class885.color_1, null, true, false, true);
 }
Exemplo n.º 2
0
 // Token: 0x06001FC3 RID: 8131
 // RVA: 0x000B4ACC File Offset: 0x000B2CCC
 internal Class92(EventHandler eventHandler_5)
     : base(Class41.GetString(OsuString.CollectionDialog_Collection), true)
 {
     this.class110_0 = new Class110(new Rectangle(0, 60, 550, 250), Vector2.get_Zero(), false, 0f, Enum98.const_5);
     Class92.class92_0 = this;
     base.method_2(eventHandler_5);
     this.eventHandler_4 = eventHandler_5;
     this.float_0 = 320f;
     base.method_3(Class41.GetString(OsuString.CollectionDialog_DeleteCollection), Color.get_Red(), new EventHandler(this.method_12), true, false, true);
     base.method_3(Class41.GetString(OsuString.General_Close), Color.get_Gray(), null, true, false, true);
     this.list_1 = new List<Class441>();
     foreach (KeyValuePair<string, List<string>> current in Class476.smethod_0())
     {
         this.list_1.Add(new Class441(current.Key));
     }
     this.method_9();
 }
Exemplo n.º 3
0
 // Token: 0x06002734 RID: 10036
 // RVA: 0x000F160C File Offset: 0x000EF80C
 internal Class94()
 {
     EventHandler eventHandler = null;
     this.bool_5 = true;
     base..ctor("Sprite Library", true);
     this.class110_0 = new Class110(new Rectangle(0, 50, 640, 360), new Vector2(640f, 480f), false, 0f, Enum98.const_5);
     if (Class466.Current.bool_10)
     {
         Class466.Current.method_72(Class296.Enum64.const_2, false);
         this.string_1 = Class466.Current.method_8();
     }
     else
     {
         this.string_1 = Class466.Current.method_3();
     }
     this.list_1 = new List<string>();
     Class760 class = new Class760("Cancel", new Vector2(40f, 440f), new Vector2(240f, 30f), 1f, Color.get_Gray(), delegate(object sender, EventArgs e)
Exemplo n.º 4
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();
 }
Exemplo n.º 5
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();
Exemplo n.º 6
0
 // Token: 0x06002ABC RID: 10940
 // RVA: 0x00114AFC File Offset: 0x00112CFC
 public Class78(Class114 class114_1)
 {
     EventHandler eventHandler = null;
     EventHandler eventHandler2 = null;
     EventHandler eventHandler3 = null;
     this.list_0 = new List<Class690>();
     base..ctor(class114_1);
     if (Class331.enum100_0 == Enum100.const_1)
     {
         this.bool_3 = true;
         Class331.smethod_88();
     }
     this.class911_1 = new Class911(true);
     this.class110_0 = new Class110(new Rectangle(0, 82, Class115.smethod_43() - 4 - 120, 350), Vector2.get_Zero(), true, 0f, Enum98.const_2);
     this.class911_2 = new Class911(true);
     this.class533_1 = new Class533("Type a search to begin.", 11f, new Vector2(20f, 40f), 1f, true, Color.get_YellowGreen());
     this.class533_1.bool_16 = true;
     this.class911_1.Add(this.class533_1);
     this.class533_0 = new Class533("", 16f, new Vector2(20f, 80f), 1f, true, Color.get_White());
     this.class911_1.Add(this.class533_0);
     this.class755_0 = new Class755(18, new Vector2(20f, 20f), 300f, false, 1.1f);
     this.class755_0.method_3(delegate(Class754 class754_0, bool bool_6)
     {
         this.int_2 = Class115.int_1 + 600;
     });
     this.class911_2.Add<Class531>(this.class755_0.list_0);
     this.class531_0 = new Class531(Class885.Load("searching", Enum112.flag_1), new Vector2(320f, 240f), 1f, true, Color.get_TransparentWhite());
     this.class531_0.origins_0 = Origins.Centre;
     this.class531_0.vmethod_9();
     Class115.class911_0.Add(this.class531_0);
     Class591 class = new Class591(new EventHandler(this.method_5), true, false);
Exemplo n.º 7
0
 // Token: 0x06001FB4 RID: 8116
 // RVA: 0x000B473C File Offset: 0x000B293C
 public override void Initialize()
 {
     this.class911_0.Add(new Class531(Class115.class731_0, Enum115.const_4, Origins.TopLeft, Enum114.const_0, Vector2.get_Zero(), 0f, true, this.color_0, null)
     {
         vector2_2 = new Vector2((float)Class115.int_22, (float)Class115.int_23)
     });
     Class533 class530_ = new Class533("Charts /", 28f, new Vector2(27.5f, 60f), 1f, true, Color.get_White())
     {
         origins_0 = Origins.BottomLeft
     };
     this.class911_0.Add(class530_);
     this.class533_0 = new Class533("All Charts", 20f, new Vector2(120f, 58f), 1f, true, new Color(254, 220, 97))
     {
         origins_0 = Origins.BottomLeft
     };
     this.class911_0.Add(this.class533_0);
     this.class756_0 = new Class756(18, new Vector2(27.5f, 33f), 20, Enum72.const_3);
     this.class756_0.method_3(new Class754.Delegate37(this.method_2));
     this.class911_0.Add<Class531>(this.class756_0.list_0);
     this.class911_0.Add(new Class540(new Vector2(27.5f, 62f), new Vector2((float)Class115.smethod_43() - 55f, 1f), 1f, Color.get_White()));
     this.class533_1 = new Class533("All  /  Monthly  /  Themed  /  Special", 14f, new Vector2(27.5f, 70f), 1f, true, Color.get_White())
     {
         origins_0 = Origins.TopLeft
     };
     this.class911_0.Add(this.class533_1);
     this.class110_0 = new Class110(new RectangleF(13.75f, 90f, (float)Class115.smethod_43() - 27.5f, (float)Class115.smethod_44() - 27.5f - 90f), Vector2.get_Zero(), true, 0f, Enum98.const_2);
     Class133 class = new Class133("http://osu.ppy.sh/web/osu-getcharts.php?u={0}&h={1}", new string[]
Exemplo n.º 8
0
 // Token: 0x060027F4 RID: 10228
 // RVA: 0x000F8D9C File Offset: 0x000F6F9C
 public Class98()
     : base(Class41.GetString(OsuString.Options_Input_KeyBindings), false)
 {
     this.class110_0 = new Class110(new Rectangle(110, 30, 420, 420), Vector2.get_Zero(), false, 0f, Enum98.const_5);
 }