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); }
public float Width() { BitmapFont f = mOwner.GetFont(); return f.StringWidth(mName, mOwner.GetScaleX()); }