public void Reset(SpriteFont spriteFont, StringBuilder text) { _type = XenStringType.String; Text = text; _nextString = null; SpriteFont = spriteFont; IsTemporary = false; FloatDecimalPlaces = _defaultDecimalPlaces; if (SpriteFont != null) { RenderingExtent.Reset(SpriteFont.MeasureString(text)); } }
public void Reset(SpriteFont spriteFont, float value, uint decimalPlaces) { _type = XenStringType.Float; ValueFloat = value; Text = null; _nextString = null; SpriteFont = spriteFont; IsTemporary = false; FloatDecimalPlaces = decimalPlaces; if (SpriteFont != null) { RenderingExtent.Reset(SpriteBatchEx.MeasureDecimalString(SpriteFont, value, decimalPlaces)); } }
public void Reset(StringBuilder text) { _type = XenStringType.String; Text = text; _nextString = null; // TODO: Implement default SpriteFont! //SpriteFont = Globals.; IsTemporary = false; FloatDecimalPlaces = _defaultDecimalPlaces; if (SpriteFont != null) { RenderingExtent.Reset(SpriteFont.MeasureString(text)); } }
public void Reset(SpriteFont spriteFont, int value) { _type = XenStringType.Integer; ValueInt = value; Text = null; _nextString = null; SpriteFont = spriteFont; IsTemporary = false; FloatDecimalPlaces = _defaultDecimalPlaces; if (SpriteFont != null) { RenderingExtent.Reset(SpriteBatchEx.MeasureIntegerString(SpriteFont, value)); } }