Ejemplo n.º 1
0
    // Token: 0x060003AB RID: 939 RVA: 0x00009BAC File Offset: 0x00007DAC
    public static GraphicsPath smethod_0(Rectangle rectangle_0, int int_0)
    {
        GraphicsPath graphicsPath = GClass6.smethod_4();
        int          num          = int_0 * 2;

        graphicsPath.AddArc(new Rectangle(rectangle_0.X, rectangle_0.Y, num, num), -180f, 90f);
        graphicsPath.AddArc(new Rectangle(rectangle_0.Width - num + rectangle_0.X, rectangle_0.Y, num, num), -90f, 90f);
        graphicsPath.AddArc(new Rectangle(rectangle_0.Width - num + rectangle_0.X, rectangle_0.Height - num + rectangle_0.Y, num, num), 0f, 90f);
        graphicsPath.AddArc(new Rectangle(rectangle_0.X, rectangle_0.Height - num + rectangle_0.Y, num, num), 90f, 90f);
        graphicsPath.AddLine(new Point(rectangle_0.X, rectangle_0.Height - num + rectangle_0.Y), new Point(rectangle_0.X, int_0 + rectangle_0.Y));
        return(graphicsPath);
    }
Ejemplo n.º 2
0
    // Token: 0x060003AD RID: 941 RVA: 0x00009D80 File Offset: 0x00007F80
    public static GraphicsPath smethod_2(int int_0, int int_1, bool bool_0)
    {
        GraphicsPath graphicsPath = GClass6.smethod_4();
        int          num          = 12;
        int          num2         = 6;

        if (!bool_0)
        {
            GClass6.smethod_9(graphicsPath, int_0, int_1 + num2, int_0 + num, int_1 + num2);
            GClass6.smethod_9(graphicsPath, int_0 + num, int_1 + num2, int_0 + num2, int_1);
        }
        else
        {
            GClass6.smethod_9(graphicsPath, int_0 + 1, int_1, int_0 + num + 1, int_1);
            GClass6.smethod_9(graphicsPath, int_0 + num, int_1, int_0 + num2, int_1 + num2 - 1);
        }
        GClass6.smethod_8(graphicsPath);
        return(graphicsPath);
    }
Ejemplo n.º 3
0
    // Token: 0x060003AC RID: 940 RVA: 0x00009CB8 File Offset: 0x00007EB8
    public static GraphicsPath smethod_1(float float_0, float float_1, float float_2, float float_3, double double_0 = 0.3, bool bool_0 = true, bool bool_1 = true, bool bool_2 = true, bool bool_3 = true)
    {
        float        num  = GClass6.smethod_5(float_2, float_3) * (float)double_0;
        float        num2 = float_0 + float_2;
        float        num3 = float_1 + float_3;
        GraphicsPath graphicsPath_;
        GraphicsPath result = graphicsPath_ = GClass6.smethod_4();

        if (bool_0)
        {
            GClass6.smethod_6(graphicsPath_, float_0, float_1, num, num, 180f, 90f);
        }
        else
        {
            GClass6.smethod_7(graphicsPath_, float_0, float_1, float_0, float_1);
        }
        if (bool_1)
        {
            GClass6.smethod_6(graphicsPath_, num2 - num, float_1, num, num, 270f, 90f);
        }
        else
        {
            GClass6.smethod_7(graphicsPath_, num2, float_1, num2, float_1);
        }
        if (bool_2)
        {
            GClass6.smethod_6(graphicsPath_, num2 - num, num3 - num, num, num, 0f, 90f);
        }
        else
        {
            GClass6.smethod_7(graphicsPath_, num2, num3, num2, num3);
        }
        if (bool_3)
        {
            GClass6.smethod_6(graphicsPath_, float_0, num3 - num, num, num, 90f, 90f);
        }
        else
        {
            GClass6.smethod_7(graphicsPath_, float_0, num3, float_0, num3);
        }
        GClass6.smethod_8(graphicsPath_);
        return(result);
    }