Beispiel #1
0
        public override void Render(double delta)
        {
            api.Texturing = false;
            int offset = overview.Height + 10;
            int height = Math.Max(300, Height);

            api.Draw2DQuad(X, Y - offset, Width, height, topCol, bottomCol);

            api.Texturing = true;
            overview.MoveTo(game.Width / 2 - overview.Width / 2,
                            Y - offset + boundsSize / 2);
            overview.Render(delta);

            for (int i = 0; i < namesCount; i++)
            {
                Texture tex  = textures[i];
                int     texY = tex.Y1;
                tex.Y1 -= 10;
                if (tex.IsValid)
                {
                    tex.Render(api);
                }
                tex.Y1 = texY;
            }
        }
        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);
        }
Beispiel #3
0
        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();
            }
        }