Ejemplo n.º 1
0
  public void Draw(float x, float y) {
    BitmapFont f = mOwner.GetFont();

    float width = Width();

    f.DrawString(
        mName,
        x - width / 2,
        y,
        mOwner.GetScaleX(),
        mOwner.GetScaleY(),
        BitmapFont.XAllignment.Left,
        BitmapFont.YAllignment.Middle);
  }
Ejemplo n.º 2
0
  public float Width() {
    BitmapFont f = mOwner.GetFont();

    return f.StringWidth(mName, mOwner.GetScaleX());
  }