コード例 #1
0
ファイル: Core.cs プロジェクト: P3D-Legacy/P3D-Legacy-CSharp
        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();
            }
        }