Ejemplo n.º 1
0
    public static void Draw(AD2SpriteBatch sb, Clock c)
    {
        Utils.DrawRect(sb, (CastleSpire.BaseWidth / 2) - (Width / 2), CastleSpire.BaseHeight - 7, Width, 7, Color.Black);

        Utils.DefaultFont.Draw(sb, c.MonthDay(), (CastleSpire.BaseWidth / 2) - (Width / 2) + 1, CastleSpire.BaseHeight - 7, Color.Orange, 1);

        Utils.DefaultFont.Draw(sb, c.HourMin(), (CastleSpire.BaseWidth / 2) - 1, CastleSpire.BaseHeight - 7, Color.Orange, 1);

        Utils.DefaultFont.Draw(sb, c.AMPM(), (CastleSpire.BaseWidth / 2) + 17, CastleSpire.BaseHeight - 7, Color.Orange, 1);
    }
Ejemplo n.º 2
0
    public static void Draw(AD2SpriteBatch sb, Clock c)
    {
        Utils.DrawRect(sb, (CastleSpire.BaseWidth / 2) - (Width / 2), CastleSpire.BaseHeight - 7, Width, 7, Color.Black);

        Utils.DefaultFont.Draw(sb, c.MonthDay(), (CastleSpire.BaseWidth / 2) - (Width / 2) + 1, CastleSpire.BaseHeight - 7,Color.Orange,1);

        Utils.DefaultFont.Draw(sb, c.HourMin(), (CastleSpire.BaseWidth / 2) - 1, CastleSpire.BaseHeight - 7, Color.Orange, 1);

        Utils.DefaultFont.Draw(sb, c.AMPM(), (CastleSpire.BaseWidth / 2) + 17, CastleSpire.BaseHeight - 7, Color.Orange, 1);
    }