public override void Draw(BaseScreen.Resources screenResources, SmartSpriteBatch spriteBatch, ScreenAbstractor screen, float opacity, FloatRectangle?clip = null, Texture2D bgTexture = null, Vector2?scrollOffset = null) { string txt = Text.Value(); if (!string.IsNullOrWhiteSpace(Symbol.Value())) { MDL2Symbols symbol = (MDL2Symbols)Enum.Parse(typeof(MDL2Symbols), Symbol.Value()); txt = symbol.AsChar(); } if (FontName.Value != null) { this.ActualSize = DrawFontAsset(spriteBatch, screen, opacity, txt, FontColor.Value(), ActualPosition, FontSize.Value(), LineHeight.Value(), FontName.Value(), PseudoAntiAlias.Value(), WordWrap.Value(), Justification.Value(), FontMargin.Value(), Margin.Value(), OutlineColor.Value(), Clip, bgTexture, scrollOffset, CaretPos.Value(), MultiLine.Value(), ScissorRect); } if (Position.Value.Height == 0) { autoSize = true; } if (autoSize) { this.Position.Value = new FloatRectangle(Position.Value.X, Position.Value.Y, Position.Value.Width, ActualSize.Y); } }