Exemple #1
0
        public override void Draw(SpriteBatch sp)
        {
            sp.Begin();
            if (_background != null)
            {
                sp.Draw(_background,
                        new Rectangle(0, 0, Consts.VIEWPORT_WIDTH, Consts.VIEWPORT_HEIGHT),
                        Color.White);
            }
            _inputName.Draw(sp);
            _inputHost.Draw(sp);
            _inputPort.Draw(sp);

            _loginButton.Draw(sp);
            _exitButton.Draw(sp);
            _sOptionalButton.Draw(sp);
            if (_notice != null)
            {
                sp.DrawString(_font, _notice,
                              new Vector2(_inputName.GetPosition().X, _inputName.GetBoundingBox().Height + _inputName.GetPosition().Y),
                              Color.Red);
            }
            sp.End();
            base.Draw(sp);
        }
 public void Draw(SpriteBatch sb)
 {
     if (Enabled)
     {
         DrawingTools.DrawRectangle(sb,
                                    new Rectangle(0, 0, (int)Util.Resolution.VirtualViewport.Length(), _height),
                                    new Color(0, 0, 0, 0.75f),
                                    LayerDepths.POST_FRONT);
         _input.Draw(sb);
     }
 }
#pragma warning restore CS8632 // The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

        public void Draw(RenderContext context, GraphicsManager gfx)
        {
            if (Shown)
            {
                bgPanel.Draw(context, gfx);
                boardWidthField.Draw(context, gfx);
                boardHeightField.Draw(context, gfx);
                bombAmountField.Draw(context, gfx);
                seedField.Draw(context, gfx);
                cancelBtn.Draw(context, gfx);
                acceptBtn.Draw(context, gfx);
            }
        }