Ejemplo n.º 1
0
        public override void Render(double delta)
        {
            if (game.HideGui)
            {
                return;
            }

            bool showMinimal = game.GetActiveScreen != this;

            if (chat.HandlesAllInput)
            {
                chat.RenderBackground();
            }
            graphicsApi.Texturing = true;
            chat.Render(delta);
            if (!showMinimal)
            {
                RenderHotbar(delta);
            }

            //graphicsApi.BeginVbBatch( VertexFormat.Pos3fTex2fCol4b );
            //graphicsApi.BindTexture( game.TerrainAtlas.TexId );
            //IsometricBlockDrawer.Draw( game, (byte)Block.Brick, 30, game.Width - 50, game.Height - 20 );

            if (playerList != null)
            {
                playerList.Render(delta);
                // NOTE: Should usually be caught by KeyUp, but just in case.
                if (!game.IsKeyDown(KeyBinding.PlayerList))
                {
                    playerList.Dispose();
                    playerList = null;
                }
            }

            graphicsApi.Texturing = false;
            if (playerList == null && !showMinimal)
            {
                DrawCrosshairs();
            }
        }