Exemplo n.º 1
0
        public static void Draw()
        {
            GraphicsDevice.Clear(BackgroundColor);

            if (SpriteBatch.Running)
            {
                SpriteBatch.EndBatch();
            }
            else
            {
                SpriteBatch.BeginBatch();

                GraphicsDevice.DepthStencilState = DepthStencilState.Default;

                GraphicsDevice.SamplerStates[0] = Sampler;
                CurrentScreen.Draw();

                if (Player != null)
                {
                    if (Player.IsGameJoltSave)
                    {
                        Emblem.DrawNewEmblems();
                    }
                    Player.DrawLevelUp();
                }

                //if (BaseJoinServerScreen.Online || Player.SandBoxMode || GameController.IS_DEBUG_ACTIVE)
                //{
                //    if (CurrentScreen.Identification != Screen.Identifications.ChatScreen)
                //        BaseChatScreen.DrawNewMessages();
                //}

                GameMessage.Draw();
                OnlineStatus.Draw();

                Logger.DrawLog();

                SpriteBatch.EndBatch();

                Render();
            }
        }