コード例 #1
0
ファイル: GClass1.cs プロジェクト: zha0/Cerberus
    // Token: 0x06000105 RID: 261 RVA: 0x00006234 File Offset: 0x00004434
    protected virtual void OnPaint(PaintEventArgs e)
    {
        Bitmap   bitmap   = GClass1.smethod_32(GClass1.smethod_30(this), GClass1.smethod_31(this));
        Graphics graphics = GClass1.smethod_33(bitmap);

        this.int_0 = GClass1.smethod_30(this);
        this.int_1 = GClass1.smethod_31(this);
        Rectangle    rectangle_    = new Rectangle(0, 0, this.int_0, this.int_1);
        Rectangle    rectangle_2   = new Rectangle(GClass1.smethod_34(this.int_0 - 40), 0, this.int_0, this.int_1);
        GraphicsPath graphicsPath_ = GClass1.smethod_35();

        GClass1.smethod_35();
        GClass1.smethod_36(graphics, Color.FromArgb(45, 45, 48));
        GClass1.smethod_7(graphics, SmoothingMode.HighQuality);
        GClass1.smethod_8(graphics, PixelOffsetMode.HighQuality);
        GClass1.smethod_9(graphics, TextRenderingHint.ClearTypeGridFit);
        GClass1.smethod_13(graphics, GClass1.smethod_11(this.color_1), rectangle_);
        GClass1.smethod_37(graphicsPath_);
        GClass1.smethod_38(graphicsPath_, rectangle_2);
        GClass1.smethod_39(graphics, graphicsPath_);
        GClass1.smethod_13(graphics, GClass1.smethod_11(this.color_0), rectangle_2);
        GClass1.smethod_40(graphics);
        GClass1.smethod_42(graphics, GClass1.smethod_41(), this.int_0 - 10, 6, this.int_0 - 30, 6);
        GClass1.smethod_42(graphics, GClass1.smethod_41(), this.int_0 - 10, 12, this.int_0 - 30, 12);
        GClass1.smethod_42(graphics, GClass1.smethod_41(), this.int_0 - 10, 18, this.int_0 - 30, 18);
        graphics.DrawString(GClass1.smethod_43(this), GClass1.smethod_44(this), GClass1.smethod_18(), new Point(4, 6), GClass6.stringFormat_0);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
コード例 #2
0
 // Token: 0x0600017A RID: 378 RVA: 0x00002F8C File Offset: 0x0000118C
 public void method_40()
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_0 = "In Menus: Stats";
     GClass1.smethod_13(this.gclass2_0);
 }
コード例 #3
0
ファイル: GClass1.cs プロジェクト: zha0/Cerberus
 // Token: 0x06000102 RID: 258 RVA: 0x0000604C File Offset: 0x0000424C
 public void method_0(object sender, DrawItemEventArgs e)
 {
     if (GClass1.smethod_3(e) < 0)
     {
         return;
     }
     GClass1.smethod_4(e);
     GClass1.smethod_5(e);
     GClass1.smethod_7(GClass1.smethod_6(e), SmoothingMode.HighQuality);
     GClass1.smethod_8(GClass1.smethod_6(e), PixelOffsetMode.HighQuality);
     GClass1.smethod_9(GClass1.smethod_6(e), TextRenderingHint.ClearTypeGridFit);
     GClass1.smethod_10(GClass1.smethod_6(e), InterpolationMode.HighQualityBicubic);
     if ((GClass1.smethod_2(e) & DrawItemState.Selected) == DrawItemState.Selected)
     {
         GClass1.smethod_13(GClass1.smethod_6(e), GClass1.smethod_11(this.color_2), GClass1.smethod_12(e));
     }
     else
     {
         GClass1.smethod_13(GClass1.smethod_6(e), GClass1.smethod_11(this.color_0), GClass1.smethod_12(e));
     }
     GClass1.smethod_6(e).DrawString(GClass1.smethod_16(this, GClass1.smethod_15(GClass1.smethod_14(this), GClass1.smethod_3(e))), GClass1.smethod_17("Segoe UI", 8f), GClass1.smethod_18(), new Rectangle(GClass1.smethod_12(e).X + 2, e.Bounds.Y + 2, e.Bounds.Width, e.Bounds.Height));
     e.Graphics.Dispose();
 }