public override void Draw() { base.Draw(); var bounds = _iconSprite.LocalBounds; var iconRect = Box2i.FromDimensions(ClientArea.Left + 3, ClientArea.Top + (int)(ClientArea.Height / 2f) - (int)(bounds.Height / 2f), (int)bounds.Width, (int)bounds.Height); CluwneLib.drawRectangle(ClientArea.Left, ClientArea.Top, ClientArea.Width, ClientArea.Height, _currentColor); _textLabel.Draw(); _iconSprite.SetTransformToRect(iconRect); _iconSprite.Draw(); }
public override void Draw() { CluwneLib.drawRectangle(0, 0, (int)CluwneLib.CurrentRenderTarget.Size.X, (int)CluwneLib.CurrentRenderTarget.Size.Y, Color4.Black); _message.Draw(); _mainMenuButton.Draw(); }