Ejemplo n.º 1
0
        public override void Render(double delta)
        {
            status.Render(delta);
            bottomRight.Render(delta);

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

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

            if (announcementTex.IsValid)
            {
                announcementTex.Render(graphicsApi);
            }
            if (HandlesAllInput)
            {
                textInput.Render(delta);
            }

            if (game.Chat.Announcement.Text != null && announcementTex.IsValid &&
                (now - game.Chat.Announcement.Received).TotalSeconds > 5)
            {
                graphicsApi.DeleteTexture(ref announcementTex);
            }
        }
Ejemplo n.º 2
0
        public override void Render(double delta)
        {
            if (!game.PureClassicMode)
            {
                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.PureClassicMode)
            {
                announcement.Render(delta);
            }
            if (HandlesAllInput)
            {
                textInput.Render(delta);
            }

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