Пример #1
0
        public override void Render(double delta)
        {
            api.Texturing = true;
            DrawBackground();
            titleWidget.Render(delta);
            messageWidget.Render(delta);
            api.Texturing = false;

            int progX = game.Width / 2 - progWidth / 2;
            int progY = game.Height / 2 - progHeight / 2;

            api.Draw2DQuad(progX, progY, progWidth, progHeight, backCol);
            api.Draw2DQuad(progX, progY, progWidth * progress, progHeight, progressCol);
        }
        public override void Render(double delta)
        {
            if (!game.ClassicMode)
            {
                status.Render(delta);
                bottomRight.Render(delta);
            }
            CheckOtherStatuses();

            UpdateChatYOffset(false);
            RenderClientStatus();
            DateTime now = DateTime.UtcNow;

            if (HandlesAllInput)
            {
                normalChat.Render(delta);
            }
            else
            {
                RenderRecentChat(now, delta);
            }

            if (!game.ClassicMode)
            {
                announcement.Render(delta);
            }
            if (HandlesAllInput)
            {
                textInput.Render(delta);
            }

            if (announcement.IsValid && (now - game.Chat.Announcement.Received).TotalSeconds > 5)
            {
                announcement.Dispose();
            }
        }