示例#1
0
 // Token: 0x0600251D RID: 9501
 // RVA: 0x000DFC34 File Offset: 0x000DDE34
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_1, Color color_3, Color color_4)
 {
     BaseGLControl.smethod_5(1u, 771u);
     base.Draw(list_1, float_1 * 58f / 64f, color_4, 0f, "StandardBorder", true);
     BaseGLControl.smethod_5(770u, 771u);
     base.Draw(list_1, float_1 * 51f / 64f, new Color(color_3.get_R(), color_3.get_G(), color_3.get_B(), 255), 0f, "StandardNoRect", true);
 }
示例#2
0
 // Token: 0x0600256F RID: 9583
 // RVA: 0x000E1A84 File Offset: 0x000DFC84
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_2, Color color_3, Color color_4)
 {
     Class115.spriteBatch_0.get_GraphicsDevice().get_RenderState().set_AlphaBlendEnable(true);
     Class115.class125_0.GraphicsDevice.get_RenderState().set_SeparateAlphaBlendEnabled(true);
     Class115.spriteBatch_0.get_GraphicsDevice().get_RenderState().set_AlphaSourceBlend(2);
     Class115.spriteBatch_0.get_GraphicsDevice().get_RenderState().set_AlphaDestinationBlend(6);
     base.Draw(list_1, float_2 * this.float_1, color_4, 0f, "StandardBorder", true);
     Class115.class125_0.GraphicsDevice.get_RenderState().set_SeparateAlphaBlendEnabled(false);
     Class115.spriteBatch_0.get_GraphicsDevice().get_RenderState().set_AlphaSourceBlend(5);
     Class115.spriteBatch_0.get_GraphicsDevice().get_RenderState().set_AlphaDestinationBlend(6);
     Class115.class582_0.Draw(list_1, float_2 * 52f / 64f, new Color(color_3.get_R(), color_3.get_G(), color_3.get_B(), 255), 0f, "Standard", true);
 }
示例#3
0
 // Token: 0x0600251F RID: 9503
 // RVA: 0x000DFCBC File Offset: 0x000DDEBC
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_1, int int_6)
 {
     Color color_;
     if (int_6 == -1)
     {
         color_ = this.color_1;
     }
     else if (int_6 == -2)
     {
         color_ = this.color_0;
     }
     else
     {
         color_ = this.list_0[int_6];
     }
     this.Draw(list_1, class880_0, float_1, color_, this.color_2);
 }
示例#4
0
 // Token: 0x06002520 RID: 9504
 // RVA: 0x0001CE9E File Offset: 0x0001B09E
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_1, int int_6, Color color_3)
 {
     this.Draw(list_1, class880_0, float_1, this.list_0[int_6], color_3);
 }
示例#5
0
 // Token: 0x0600251E RID: 9502
 // RVA: 0x0001CE8B File Offset: 0x0001B08B
 public override void Draw(List<Class880> list_1, Class880 class880_0, float float_1, Color color_3)
 {
     this.Draw(list_1, class880_0, float_1, color_3, this.color_2);
 }
示例#6
0
 // Token: 0x0600250C RID: 9484
 // RVA: 0x0001CDF6 File Offset: 0x0001AFF6
 public virtual void Draw(List<Class880> list_0, Class880 class880_0, float float_0, Color color_0)
 {
     this.Draw(list_0, float_0, color_0, 0f, "StandardNoGradient", true);
 }
示例#7
0
 // Token: 0x0600250B RID: 9483
 // RVA: 0x000DF4A4 File Offset: 0x000DD6A4
 public void Draw(Class880 class880_0, float float_0, Color color_0)
 {
     this.Draw(new List<Class880>(1)
     {
         class880_0
     }, null, float_0, color_0);
 }
示例#8
0
 // Token: 0x06001B99 RID: 7065
 // RVA: 0x0008FE58 File Offset: 0x0008E058
 internal override void Draw()
 {
     base.Draw();
     if (this.class880_0 != null)
     {
         Class115.class882_0.method_0();
         Color white = Color.get_White();
         int num = Math.Abs(Class115.int_1 % 600 - 300);
         byte b = (byte)(255f * ((float)num / 300f));
         Class115.class882_0.method_1(this.class880_0.vector2_0, new Color(white.get_R(), white.get_G(), white.get_B(), b));
         Class115.class882_0.method_1(this.class880_0.vector2_1, new Color(white.get_R(), white.get_G(), white.get_B(), 0));
         Class115.class882_0.method_2();
         this.class880_0 = null;
     }
     if (this.class321_0 != null && (this.enum42_0 == Class371.Enum42.const_0 || this.class321_2 != null))
     {
         for (int i = 0; i < this.class321_0.list_3.Count; i++)
         {
             bool flag = i > 0 && this.class321_0.list_3[i] == this.class321_0.list_3[i - 1];
             Vector2 vector = Class115.smethod_61(this.class321_0.list_3[i]);
             Class115.class582_0.method_2(vector - Vector2.get_One() * 4f, vector + Vector2.get_One() * 4f, Class371.color_1);
             Class115.class582_0.method_2(vector - Vector2.get_One() * 3f, vector + Vector2.get_One() * 3f, flag ? Class371.color_3 : ((i == this.int_1) ? Class371.color_2 : Class371.color_0));
         }
         Class115.class882_0.method_0();
         for (int j = 1; j < this.class321_0.list_3.Count; j++)
         {
             Class115.class882_0.method_1(Class115.smethod_61(this.class321_0.list_3[j - 1]), (j - 1 == this.int_1) ? Class371.color_2 : Class371.color_0);
             Class115.class882_0.method_1(Class115.smethod_61(this.class321_0.list_3[j]), (j == this.int_1) ? Class371.color_2 : Class371.color_0);
         }
         Class115.class882_0.method_2();
     }
 }
示例#9
0
 // Token: 0x06002536 RID: 9526
 // RVA: 0x000E06B8 File Offset: 0x000DE8B8
 private void method_7(Class880 class880_0, Class880 class880_1, Class880 class880_2, float float_1)
 {
     EffectPass effectPass = this.basicEffect_0.get_CurrentTechnique().get_Passes().get_Item(0);
     this.method_8().set_Indices(this.indexBuffer_0);
     this.basicEffect_0.set_World(new Matrix(class880_1.method_0(), 0f, 0f, 0f, 0f, float_1, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f) * class880_1.method_2());
     this.basicEffect_0.Begin();
     effectPass.Begin();
     this.method_8().DrawIndexedPrimitives(5, 0, 0, this.int_5, 0, this.int_3);
     effectPass.End();
     this.basicEffect_0.End();
     bool flag;
     int num;
     if (class880_2 == null)
     {
         flag = false;
         num = this.int_4;
     }
     else
     {
         float num2 = class880_2.method_1() - class880_1.method_1();
         if ((double)num2 > 3.1415926535897931)
         {
             num2 -= 6.28318548f;
         }
         if ((double)num2 < -3.1415926535897931)
         {
             num2 += 6.28318548f;
         }
         if (num2 < 0f)
         {
             flag = true;
             num = (int)Math.Ceiling((double)(-(double)num2 * 24f) / 3.1415926535897931 + 0.0);
         }
         else if (num2 > 0f)
         {
             flag = false;
             num = (int)Math.Ceiling((double)(num2 * 24f) / 3.1415926535897931 + 0.0);
         }
         else
         {
             flag = false;
             num = 0;
         }
     }
     num = Math.Min(num, this.int_4);
     this.method_8().set_Indices(this.indexBuffer_1);
     if (flag)
     {
         this.basicEffect_0.set_World(new Matrix(float_1, 0f, 0f, 0f, 0f, -float_1, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f) * class880_1.method_3());
     }
     else
     {
         this.basicEffect_0.set_World(new Matrix(float_1, 0f, 0f, 0f, 0f, float_1, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f) * class880_1.method_3());
     }
     this.basicEffect_0.Begin();
     effectPass.Begin();
     if (num > 0)
     {
         this.method_8().DrawIndexedPrimitives(4, 0, 0, this.int_5 + this.int_6, 0, num);
     }
     effectPass.End();
     this.basicEffect_0.End();
     bool flag2 = false;
     if (class880_0 == null)
     {
         flag2 = true;
     }
     else if (class880_1.vector2_0 != class880_0.vector2_1)
     {
         flag2 = true;
     }
     if (flag2)
     {
         this.basicEffect_0.set_World(new Matrix(-float_1, 0f, 0f, 0f, 0f, -float_1, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f) * class880_1.method_2());
         this.basicEffect_0.Begin();
         effectPass.Begin();
         this.method_8().DrawIndexedPrimitives(4, 0, 0, this.int_5 + this.int_6, 0, this.int_4);
         effectPass.End();
         this.basicEffect_0.End();
     }
 }
示例#10
0
 // Token: 0x06002535 RID: 9525
 // RVA: 0x000E0534 File Offset: 0x000DE734
 private void method_6(List<Class880> list_1, float float_1, Texture2D texture2D_3, Class880 class880_0)
 {
     if (list_1.Count == 0)
     {
         return;
     }
     this.method_8().set_VertexDeclaration(this.vertexDeclaration_0);
     this.method_8().get_Vertices().get_Item(0).SetSource(this.vertexBuffer_0, 0, this.int_0);
     this.method_8().get_RenderState().set_CullMode(1);
     this.method_8().get_RenderState().set_AlphaBlendEnable(false);
     this.method_8().get_RenderState().set_DepthBufferEnable(true);
     this.method_8().get_RenderState().set_DepthBufferWriteEnable(true);
     this.method_8().get_RenderState().set_DepthBufferFunction(4);
     this.basicEffect_0.set_Texture(texture2D_3);
     this.basicEffect_0.set_TextureEnabled(true);
     this.basicEffect_0.set_VertexColorEnabled(false);
     this.method_8().get_SamplerStates().get_Item(0).set_AddressU(3);
     this.method_8().get_SamplerStates().get_Item(0).set_AddressV(3);
     this.basicEffect_0.set_Projection(Matrix.CreateOrthographicOffCenter(0f, (float)Class115.int_22, (float)(Class115.int_23 + Class115.int_25), 0f, -1f, 1.5f));
     this.basicEffect_0.set_View(Matrix.get_Identity());
     int count = list_1.Count;
     for (int i = 1; i < count; i++)
     {
         this.method_7(class880_0, list_1[i - 1], list_1[i], float_1);
         class880_0 = list_1[i - 1];
     }
     this.method_7(class880_0, list_1[count - 1], null, float_1);
 }
示例#11
0
 // Token: 0x06002534 RID: 9524
 // RVA: 0x0001CF43 File Offset: 0x0001B143
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_1, int int_7, Color color_3)
 {
     if (int_7 >= this.list_0.Count)
     {
         this.Draw(list_1, class880_0, float_1, Color.get_Gray(), color_3);
         return;
     }
     this.Draw(list_1, class880_0, float_1, this.list_0[int_7], color_3);
 }
示例#12
0
 // Token: 0x06002532 RID: 9522
 // RVA: 0x000E0498 File Offset: 0x000DE698
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_1, Color color_3, Color color_4)
 {
     Texture2D texture2D = this.vmethod_3(color_3, color_4);
     this.method_6(list_1, float_1, texture2D, class880_0);
     texture2D.Dispose();
 }
示例#13
0
 // Token: 0x06002533 RID: 9523
 // RVA: 0x000E04C0 File Offset: 0x000DE6C0
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_1, int int_7)
 {
     switch (int_7)
     {
     case -2:
         this.method_6(list_1, float_1, this.texture2D_2, class880_0);
         return;
     case -1:
         this.method_6(list_1, float_1, this.texture2D_1, class880_0);
         return;
     default:
         if (int_7 < this.texture2D_0.Length && int_7 >= 0)
         {
             this.method_6(list_1, float_1, this.texture2D_0[int_7], class880_0);
             return;
         }
         this.method_6(list_1, float_1, this.texture2D_1, class880_0);
         return;
     }
 }
示例#14
0
 // Token: 0x06002554 RID: 9556
 // RVA: 0x000E11B0 File Offset: 0x000DF3B0
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_1, Color color_3, Color color_4)
 {
     Class748 class = this.vmethod_3(color_3, color_4);
示例#15
0
 // Token: 0x06002555 RID: 9557
 // RVA: 0x000E11D8 File Offset: 0x000DF3D8
 public void Draw(List<Class880> list_1, Class880 class880_0, float float_1, int int_6)
 {
     switch (int_6)
     {
     case -2:
         this.method_7(list_1, float_1, this.class748_2, class880_0);
         return;
     case -1:
         this.method_7(list_1, float_1, this.class748_1, class880_0);
         return;
     default:
         if (int_6 < this.class748_0.Length && int_6 >= 0)
         {
             this.method_7(list_1, float_1, this.class748_0[int_6], class880_0);
             return;
         }
         this.method_7(list_1, float_1, this.class748_1, class880_0);
         return;
     }
 }