예제 #1
0
 // Token: 0x06002902 RID: 10498
 // RVA: 0x001029F4 File Offset: 0x00100BF4
 internal Class666(Class911 class911_1, Vector2 vector2_2, bool bool_0, float float_1, bool bool_1, bool bool_2)
 {
     this.class911_0 = class911_1;
     this.float_0 = float_1;
     if (Class115.bool_16)
     {
         float_1 *= 1.4f;
     }
     float num = vector2_2.Y;
     this.vector2_1 = Vector2.get_Zero();
     if (bool_1)
     {
         this.class536_0 = new Class536("00000000", Class885.class547_0.string_4, Class885.class547_0.int_1, bool_0 ? Enum115.const_7 : Enum115.const_5, bool_0 ? Origins.TopRight : Origins.TopLeft, Enum114.const_0, new Vector2(0f, 0f), 0.95f, true, Color.get_White(), true);
         this.class536_0.bool_21 = true;
         this.vector2_1 = this.class536_0.vmethod_11() * 0.625f * float_1;
         this.class536_0.vector2_1 = new Vector2(vector2_2.X, num);
         this.class536_0.float_2 = float_1;
         num += this.vector2_1.Y;
     }
     if (Class885.smethod_25())
     {
         num += 3f;
     }
     if (bool_2)
     {
         this.class536_1 = new Class536("00.00%", Class885.class547_0.string_4, Class885.class547_0.int_1, bool_0 ? Enum115.const_7 : Enum115.const_5, bool_0 ? Origins.TopRight : Origins.TopLeft, Enum114.const_0, new Vector2(0f, 0f), 0.95f, true, Color.get_White(), true);
         this.class536_1.float_2 = float_1 * (bool_1 ? 0.6f : 1f);
         this.class536_1.bool_21 = true;
         this.class536_1.vector2_1 = new Vector2(vector2_2.X, num);
         this.vector2_0 = this.class536_1.vector2_1 + new Vector2(this.class536_1.vmethod_11().X * 0.625f * this.class536_1.float_2 + 24f, this.class536_1.vmethod_11().Y * 0.625f * this.class536_1.float_2 / 2f);
     }
     if (!Class62.bool_15 && !Class62.bool_16)
     {
         class911_1.Add(this.class536_0);
         class911_1.Add(this.class536_1);
     }
 }
예제 #2
0
 // Token: 0x06001E08 RID: 7688
 // RVA: 0x000A3970 File Offset: 0x000A1B70
 protected virtual void vmethod_2()
 {
     this.class536_0 = new Class536(this.vmethod_3(), this.string_0, Class885.class547_0.int_2, Enum115.const_5, Origins.Custom, Enum114.const_0, new Vector2(2f, 472f), 0.92f, true, Color.get_TransparentWhite(), true);
     this.class536_0.vector2_5 = new Vector2(0f, this.class536_0.vmethod_11().Y * 0.625f + 9f);
     this.class536_0.float_2 = 1.28f;
     this.class536_1 = new Class536("0x", this.string_0, Class885.class547_0.int_2, Enum115.const_5, Origins.Custom, Enum114.const_0, new Vector2(2f, 472f), 0.91f, true, Color.get_TransparentWhite(), true);
     this.class536_1.vector2_5 = new Vector2(3f, this.class536_1.vmethod_11().Y * 0.625f + 9f);
     this.class536_1.bool_7 = true;
     this.class536_1.float_2 = 1.28f;
     if ((!Class62.bool_15 && !Class62.bool_16) || Class62.Mode == PlayModes.Taiko)
     {
         this.class911_0.Add(this.class536_0);
         this.class911_0.Add(this.class536_1);
     }
 }
예제 #3
0
 // Token: 0x06002C36 RID: 11318
 // RVA: 0x0011E014 File Offset: 0x0011C214
 internal void method_34(bool bool_16, double double_5)
 {
     if (bool_16 || this.class531_4 == null)
     {
         List<Class304> list_ = this.class297_0.list_3;
         int num = list_.IndexOf(this);
         if (num < list_.Count - 1 && list_[num + 1].vmethod_16() - (this.EndTime + (int)this.method_33()) <= (int)this.method_33())
         {
             this.bool_14 = false;
         }
         float num2 = (!this.SoundType.IsType(HitObjectSoundType.Finish)) ? 0.65f : 1f;
         this.SpatialLength *= (double)this.SegmentCount;
         double num3 = this.class297_0.SliderScoringPointDistance * this.class297_0.class296_0.DifficultySliderTickRate;
         double num4 = this.class297_0.class296_0.method_36((double)this.StartTime, true);
         this.EndTime = this.StartTime + (int)(this.SpatialLength / num3 * num4);
         this.SpatialLength *= double_5;
         this.class531_4 = new Class531(Class885.Load("taiko-roll-middle", Enum112.flag_6), Enum115.const_1, Origins.TopLeft, Enum114.const_1, new Vector2(this.Position.X, this.Position.Y - this.class297_0.HitObjectRadius * num2), Class911.smethod_4((float)(this.EndTime + 10)), false, new Color(252, 184, 6), null);
         this.class531_4.vector2_2 = new Vector2((float)this.SpatialLength * Class115.float_4 / this.class297_0.float_0 * (1f / num2), 1f);
         this.class531_4.class26_0.Add(new Class746(TransformationType.Fade, 0f, 1f, this.StartTime - this.class297_0.PreEmpt, this.StartTime, Enum70.const_0));
         this.class531_4.class26_0.Add(new Class746(TransformationType.Fade, 1f, 0f, this.EndTime, this.EndTime + this.class297_0.int_10, Enum70.const_0));
         this.class911_0.Add(this.class531_4);
         this.list_1.Add(this.class531_4);
         this.list_0.Add(this.class531_4);
         this.class531_3 = new Class531(Class885.Load("taiko-roll-end", Enum112.flag_6), Enum115.const_1, Origins.TopLeft, Enum114.const_1, new Vector2(this.Position.X, this.Position.Y - this.class297_0.HitObjectRadius * num2), Class911.smethod_4((float)(this.EndTime + 8)), false, new Color(252, 184, 6), null);
         this.class531_3.vector2_5 = new Vector2((float)(-(float)this.SpatialLength) * Class115.float_4 / this.class297_0.float_0 * (1f / num2), 0f);
         this.class531_3.class26_0.Add(new Class746(TransformationType.Fade, 0f, 1f, this.StartTime - this.class297_0.PreEmpt, this.StartTime, Enum70.const_0));
         this.class531_3.class26_0.Add(new Class746(TransformationType.Fade, 1f, 0f, this.EndTime, this.EndTime + this.class297_0.int_10, Enum70.const_0));
         this.class911_0.Add(this.class531_3);
         this.list_1.Add(this.class531_3);
         this.list_0.Add(this.class531_3);
         this.class538_0.class26_0.Add(new Class746(this.class306_0.Position, this.class306_0.Position, this.StartTime - 500, this.EndTime, Enum70.const_0));
         this.class538_1.class26_0.Add(new Class746(this.class306_0.Position, this.class306_0.Position, this.StartTime, this.EndTime, Enum70.const_0));
         this.class536_0 = new Class536("", Class885.class547_0.string_4, Class885.class547_0.int_1, Enum115.const_1, Origins.Centre, Enum114.const_1, Class303.vector2_0, 0.9f, false, Color.get_White(), true);
         this.class536_0.float_2 = 0.8f;
         this.class536_0.class26_0.Add(new Class746(TransformationType.Fade, 0f, 1f, this.StartTime, this.StartTime, Enum70.const_0));
         this.class536_0.class26_0.Add(new Class746(TransformationType.Fade, 0.6f, 0f, this.EndTime, this.EndTime + 300, Enum70.const_0));
         this.class911_0.Add(this.class536_0);
         int num5 = 0;
         for (double num6 = (double)this.StartTime; num6 < (double)this.vmethod_15(); num6 += this.method_33())
         {
             if (num6 == (double)this.StartTime)
             {
                 this.list_11.Add(new Class324.Class720((int)num6, null));
                 num5++;
             }
             else
             {
                 bool flag = (this.class297_0.class296_0.DifficultySliderTickRate == 3.0 || this.class297_0.class296_0.DifficultySliderTickRate == 6.0 || this.class297_0.class296_0.DifficultySliderTickRate == 1.5) ? (num5 % 3 == 0) : (num5 % 4 == 0);
                 Class531 class = new Class531(Class885.Load("sliderscorepoint", Enum112.flag_6), Enum115.const_1, Origins.Centre, Enum114.const_1, new Vector2(this.Position.X, this.Position.Y), Class911.smethod_4((float)(this.StartTime + 1)), false, flag ? Color.get_Yellow() : Color.get_White(), this);