Пример #1
0
 // Token: 0x060028C5 RID: 10437
 // RVA: 0x00100D14 File Offset: 0x000FEF14
 internal Class658(Class911 class911_1, ProgressBarTypes progressBarTypes_0, float float_1)
 {
     this.class911_0 = class911_1;
     Enum115 enum115_;
     switch (progressBarTypes_0)
     {
     case ProgressBarTypes.Pie:
         return;
     case ProgressBarTypes.BottomRight:
         this.vector2_0 = new Vector2(118f, 460f);
         this.float_0 = 118f;
         enum115_ = Enum115.const_7;
         goto IL_9D;
     case ProgressBarTypes.Bottom:
         this.vector2_0 = new Vector2(0f, 477f);
         this.float_0 = (float)Class115.int_22 / Class115.float_4;
         enum115_ = Enum115.const_5;
         goto IL_9D;
     }
     this.vector2_0 = new Vector2(178f, float_1 - 2f);
     this.float_0 = 170f;
     enum115_ = Enum115.const_7;
     IL_9D:
     this.class531_0 = new Class531(Class115.class731_0, enum115_, Origins.TopLeft, Enum114.const_0, this.vector2_0, 0.938f, true, new Color(255, 255, 255, 20), null);
     this.class531_0.float_2 = 1.6f;
     this.class531_0.vector2_2 = new Vector2(this.float_0, 3f);
     this.class531_0.bool_7 = true;
     class911_1.Add(this.class531_0);
     this.class531_1 = new Class531(Class115.class731_0, enum115_, Origins.TopLeft, Enum114.const_0, this.vector2_0, 0.94f, true, new Color(255, 255, 128, 128), null);
     this.class531_1.float_2 = 1.6f;
     this.class531_1.vector2_2 = new Vector2(0f, 3f);
     this.class531_1.bool_7 = true;
     class911_1.Add(this.class531_1);
 }
Пример #2
0
 // Token: 0x06002F19 RID: 12057
 // RVA: 0x0013204C File Offset: 0x0013024C
 internal Class796(Class911 class911_0, Vector2 vector2_1, Class799 class799_1)
 {
     this.class531_0 = new Class531(Class115.class731_0, Enum115.const_5, Origins.TopLeft, Enum114.const_0, vector2_1, 0.999f, true, Color.get_Gray(), null);
     this.class531_0.float_2 = 1.6f;
     this.class531_0.float_3 = 0f;
     class911_0.Add(this.class531_0);
     this.class799_0 = class799_1;
     this.vector2_0 = vector2_1;
     this.class533_0 = new Class533[10];
     for (int i = 0; i < 10; i++)
     {
         this.class533_0[i] = new Class533("", 15f, vector2_1 + new Vector2(0f, (float)(15 * i)), 1f, true, Color.get_White());
         this.class533_0[i].float_3 = 0f;
         class911_0.Add(this.class533_0[i]);
     }
 }
Пример #3
0
 // Token: 0x060028C9 RID: 10441
 // RVA: 0x00100EB4 File Offset: 0x000FF0B4
 internal Class659(Class911 class911_1, Vector2 vector2_1)
     : base(class911_1, ProgressBarTypes.Pie, 34f)
 {
     this.vector2_0 = vector2_1;
     this.class531_2 = new Class531(Class885.Load("circularmetre", Enum112.flag_1), Enum115.const_7, Origins.Centre, Enum114.const_0, vector2_1, 0.95f, true, Color.get_White(), null);
     class911_1.Add(this.class531_2);
     this.class82_0.vector2_0 = new Vector2((float)Class115.int_22 / Class115.float_4 - vector2_1.X, vector2_1.Y);
     this.class82_0.float_1 = 10f;
 }
Пример #4
0
 // Token: 0x06002D7A RID: 11642
 // RVA: 0x00127C74 File Offset: 0x00125E74
 internal Class594(Class911 class911_1, int int_5, Vector2 vector2_1, float float_3, bool bool_3, Color color_2)
     : base(class911_1, int_5, vector2_1, float_3, bool_3, color_2)
 {
     Vector2 vector2_2;
     vector2_2..ctor(vector2_1.X + (float)(this.list_1.Count % this.int_0 * 74) + (float)(this.list_1.Count / this.int_0 * 10), vector2_1.Y + 6f - (float)(14 * (1 + this.list_1.Count / this.int_0)));
     this.class751_0 = new Class751(vector2_2, 1f, false, false);
     this.class751_0.method_0(new EventHandler(this.method_13));
     this.list_0.AddRange(this.class751_0.list_0);
     class911_1.Add<Class531>(this.class751_0.list_0);
     this.list_1.Insert(0, this.class751_0);
 }
Пример #5
0
 // Token: 0x060028BD RID: 10429
 // RVA: 0x001005D8 File Offset: 0x000FE7D8
 internal Class657(Class64 class64_1, Class911 class911_1)
 {
     this.class64_0 = class64_1;
     this.class911_0 = class911_1;
     this.class533_0 = new Class533("Blue Team", 16f, new Vector2(0f, 100f), 1f, true, Color.get_White());
     this.class533_0.bool_16 = true;
     this.class533_0.method_58(true);
     class911_1.Add(this.class533_0);
     this.class533_1 = new Class533("Red Team", 16f, new Vector2((float)Class115.smethod_43(), 100f), 1f, true, Color.get_White());
     this.class533_1.method_58(true);
     this.class533_1.bool_16 = true;
     this.class533_1.origins_0 = Origins.TopRight;
     class911_1.Add(this.class533_1);
     this.bool_0 = (Class64.class10_0.matchScoringType == MatchScoringTypes.Accuracy);
     this.class666_0 = new Class666(class911_1, new Vector2(0f, 120f), false, 0.7f, !this.bool_0, this.bool_0);
     this.class666_1 = new Class666(class911_1, new Vector2(0f, 120f), true, 0.7f, !this.bool_0, this.bool_0);
     this.class531_0 = new Class531(Class885.Load("lobby-crown", Enum112.flag_1), Origins.Centre, new Vector2((float)(Class115.smethod_43() / 2), 90f), 0.99f, true, Color.get_Yellow());
     this.class531_0.float_2 = 1.2f;
     class911_1.Add(this.class531_0);
     this.class531_1 = new Class531(Class885.Load("lobby-crown", Enum112.flag_1), Origins.Centre, new Vector2((float)(Class115.smethod_43() / 2), 90f), 1f, true, Color.get_Yellow());
     this.class531_1.bool_7 = true;
     Class746 class = new Class746(TransformationType.Scale, 1.2f, 1.3f, Class115.int_1, Class115.int_1 + 1000, Enum70.const_2);
Пример #6
0
 // Token: 0x0600342C RID: 13356
 // RVA: 0x00166704 File Offset: 0x00164904
 internal Class883(Class911 class911_0, double double_5, double double_6, double double_7, Vector2 vector2_1, int int_1)
 {
     Class883 class883_0 = this;
     this.double_3 = double_5;
     this.double_2 = double_6;
     this.double_1 = (this.double_0 = Math.Max(double_5, Math.Min(double_6, double_7)));
     this.int_0 = int_1;
     this.color_0 = Class885.color_1;
     this.class531_1 = new Class883.Class542(Class115.class731_0, vector2_1, 0.992f, this.color_0, (float)int_1);
     this.class531_1.bool_1 = true;
     this.class531_1.nullable_2 = new bool?(true);
     this.class531_1.vector2_2 = new Vector2((float)int_1 * 1.6f, 1.5f);
     this.class531_2 = new Class531(Class115.class731_0, vector2_1, 0.991f, true, this.color_0);
     this.class531_2.nullable_2 = new bool?(true);
     this.class531_2.bool_1 = true;
     this.class531_2.float_3 = 0.5f;
     this.class531_2.vector2_2 = new Vector2((float)int_1 * 1.6f, 1.5f);
     this.class531_0 = new Class531(Class885.Load("circle-empty", Enum112.flag_1), Enum115.const_5, Origins.Centre, Enum114.const_0, this.method_18(), 0.99f, true, this.color_0, null);
     this.class531_0.bool_1 = true;
     Class531 arg_19C_0 = this.class531_0;
     VoidDelegate voidDelegate_ = delegate
     {
         float num = class883_0.class531_0.rectangleF_0.X - class883_0.class531_1.rectangleF_0.X;
         float num2 = (float)class883_0.class531_0.int_4 / 1.6f / 2f;
         class883_0.class531_1.vector2_2.X = Math.Max(0f, num / Class115.float_5);
         class883_0.class531_2.vector2_2.X = Math.Max(0f, (float)int_1 * 1.6f - (num + (float)class883_0.class531_0.int_4) / Class115.float_5);
         class883_0.class531_2.vector2_1.X = class883_0.class531_0.vector2_1.X + num2;
     };
     arg_19C_0.method_30(voidDelegate_);
     this.list_0.Add(this.class531_0);
     this.list_0.Add(this.class531_1);
     this.list_0.Add(this.class531_2);
     this.class531_1.method_35(new EventHandler(this.method_10));
     this.class531_1.method_37(new EventHandler(this.method_9));
     if (class911_0 != null)
     {
         class911_0.Add(this.class531_0);
         class911_0.Add(this.class531_1);
         class911_0.Add(this.class531_2);
     }
     this.method_21();
 }
Пример #7
0
 // Token: 0x06002D93 RID: 11667
 // RVA: 0x00128204 File Offset: 0x00126404
 internal Class753(Class911 class911_1, string string_1, Vector2 vector2_2, float float_2, float float_3, bool bool_4, bool bool_5)
 {
     this.class911_0 = class911_1;
     this.float_0 = float_2;
     this.bool_1 = bool_4;
     this.bool_0 = bool_5;
     this.vector2_0 = vector2_2;
     this.float_1 = float_3;
     this.method_13(0);
     this.class533_0 = new Class533(string_1, 13f, vector2_2, new Vector2(float_2 + 2f, 15f), float_3 + 0.001f, true, Color.get_White(), false);
     this.class533_0.method_53(new Color(0, 0, 0, 128));
     this.class533_0.vector4_0 = Vector4.get_One() * 5f;
     this.class533_0.enum72_0 = (this.bool_0 ? Enum72.const_2 : Enum72.const_1);
     this.class533_0.method_58(true);
     this.class533_0.method_35(new EventHandler(this.method_17));
     this.class533_0.method_37(new EventHandler(this.method_16));
     this.class533_0.bool_1 = true;
     this.class533_0.method_2(new EventHandler(this.method_14));
     this.list_0.Add(this.class533_0);
     this.class534_0 = new Class534(FontAwesome.chevron_down, 14f, new Vector2(vector2_2.X + float_2 - 8f, vector2_2.Y + 8f))
     {
         float_0 = float_3 + 0.002f
     };
     this.list_0.Add(this.class534_0);
     if (class911_1 != null)
     {
         class911_1.Add<Class531>(this.list_0);
     }
 }
Пример #8
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);
     }
 }
Пример #9
0
 // Token: 0x06001DE6 RID: 7654
 // RVA: 0x000A2D5C File Offset: 0x000A0F5C
 internal Class410(Class911 class911_1)
 {
     this.class911_0 = class911_1;
     Class731[] array = this.vmethod_1("scorebar-colour");
     Class731[] array2 = this.vmethod_1("scorebar-marker");
     this.bool_2 = (array[0].enum112_0 == Enum112.flag_1 || array2[0].enum112_0 == Enum112.flag_2);
     if (this.bool_2)
     {
         if (array[0].string_0 == "scorebar-colour-0" && array[0].enum112_0 == Enum112.flag_1)
         {
             array = new Class731[]
             {
                 this.vmethod_2("scorebar-colour")
             };
         }
         this.class731_2 = array2[0];
         this.class731_0 = array2[0];
         this.class731_1 = array2[0];
         this.class538_0 = new Class538(array, Enum115.const_5, Origins.TopLeft, Enum114.const_0, new Vector2(7.5f, 7.8f), 0.965f, true, Color.get_White(), null);
         this.class531_1 = new Class531(this.class731_2, Enum115.const_15, Origins.Centre, Enum114.const_0, new Vector2(this.method_8(), 10.625f * Class115.float_4), 0.97f, true, Color.get_White(), null);
         this.class531_1.bool_7 = true;
     }
     else
     {
         this.class731_2 = this.vmethod_2("scorebar-ki");
         this.class731_0 = this.vmethod_2("scorebar-kidanger");
         this.class731_1 = this.vmethod_2("scorebar-kidanger2");
         this.class538_0 = new Class538(array, Enum115.const_5, Origins.TopLeft, Enum114.const_0, new Vector2(3f, 10f), 0.965f, true, Color.get_White(), null);
         this.class531_1 = new Class531(this.class731_2, Enum115.const_15, Origins.Centre, Enum114.const_0, new Vector2(0f, 10f * Class115.float_4), 0.97f, true, Color.get_White(), null);
     }
     this.class538_0.int_4 = 0;
     this.class538_0.method_61();
     this.class538_0.bool_15 = true;
     this.class531_0 = new Class531(this.vmethod_2("scorebar-bg"), Enum115.const_5, Origins.TopLeft, Enum114.const_0, Vector2.get_Zero(), 0.96f, true, Color.get_White(), null);
     this.list_0.Add(this.class531_0);
     this.list_0.Add(this.class538_0);
     this.list_0.Add(this.class531_1);
     if (!Class62.bool_15 && !Class62.bool_16)
     {
         if (class911_1 != null)
         {
             class911_1.Add<Class531>(this.list_0);
         }
     }
     else
     {
         this.method_7(false);
     }
     this.vmethod_5();
 }