Esempio n. 1
0
        public override void Render(double delta)
        {
            UpdateStatus(delta);
            if (game.HideGui)
            {
                return;
            }

            game.Graphics.Texturing = true;
            if (game.ShowFPS)
            {
                line1.Render(delta);
            }

            if (game.ClassicMode)
            {
                line2.Render(delta);
            }
            else if (game.Gui.activeScreen == null && game.ShowFPS)
            {
                if (HacksChanged())
                {
                    UpdateHackState();
                }
                DrawPosition();
                line2.Render(delta);
            }
            game.Graphics.Texturing = false;
        }
Esempio n. 2
0
        public override void Render(double delta)
        {
            UpdateStatus(delta);
            if (game.HideGui || !game.ShowFPS)
            {
                return;
            }
            game.Graphics.Texturing = true;
            status.Render(delta);

            if (!game.ClassicMode && game.Gui.activeScreen == null)
            {
                if (HacksChanged())
                {
                    UpdateHackState();
                }
                //DrawPosition();
                hackStates.Render(delta);
            }

            xPos.Render(delta);
            yPos.Render(delta);
            zPos.Render(delta);
            game.Graphics.Texturing = false;
        }
Esempio n. 3
0
 public override void Render(double delta)
 {
     RenderMenuBounds();
     gfx.Texturing = true;
     title.Render(delta);
     RenderWidgets(buttons, delta);
     gfx.Texturing = false;
 }
Esempio n. 4
0
 public override void Render(double delta)
 {
     gfx.Draw2DQuad(0, 0, game.Width, game.Height, new FastColour(60, 60, 60, 160));
     gfx.Texturing = true;
     title.Render(delta);
     for (int i = 0; i < buttons.Length; i++)
     {
         buttons[i].Render(delta);
     }
     gfx.Texturing = false;
 }
 public override void Render(double delta)
 {
     RenderMenuBounds();
     game.Graphics.Texturing = true;
     RenderWidgets(widgets, delta);
     if (descWidget != null)
     {
         descWidget.Render(delta);
     }
     game.Graphics.Texturing = false;
 }
 public override void Render(double delta)
 {
     RenderMenuBounds();
     gfx.Texturing = true;
     RenderMenuWidgets(delta);
     if (descWidget != null)
     {
         descWidget.Render(delta);
     }
     gfx.Texturing = false;
 }
 void Redraw(double delta)
 {
     game.Graphics.Draw2DQuad(0, 0, game.Width, game.Height, top, bottom);
     game.Graphics.Texturing = true;
     titleWidget.Render(delta);
     messageWidget.Render(delta);
     if (canReconnect)
     {
         reconnect.Render(delta);
     }
     game.Graphics.Texturing = false;
 }
Esempio n. 8
0
        public override void Render(double delta)
        {
            gfx.Texturing = true;
            DrawBackground();
            titleWidget.Render(delta);
            messageWidget.Render(delta);
            gfx.Texturing = false;

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

            gfx.Draw2DQuad(progX, progY, progWidth, progHeight, backCol);
            gfx.Draw2DQuad(progX, progY, (int)(progWidth * progress), progHeight, progressCol);
        }
Esempio n. 9
0
        public override void Render(double delta)
        {
            IGraphicsApi gfx = game.Graphics;

            gfx.Texturing = true;
            DrawBackground();
            titleWidget.Render(delta);
            messageWidget.Render(delta);
            gfx.Texturing = false;

            int x = CalcPos(Anchor.Centre, 0, progWidth, game.Width);
            int y = CalcPos(Anchor.Centre, 34, progHeight, game.Height);

            gfx.Draw2DQuad(x, y, progWidth, progHeight, backCol);
            gfx.Draw2DQuad(x, y, (int)(progWidth * progress), progHeight, progressCol);
        }
Esempio n. 10
0
        public override void Render(double delta)
        {
            UpdateStatus(delta);
            if (game.HideGui || !game.ShowFPS)
            {
                return;
            }

            gfx.Texturing = true;
            status.Render(delta);
            if (!game.ClassicMode && game.Gui.activeScreen == null)
            {
                UpdateHackState(false);
                DrawPosition();
                hackStates.Render(delta);
            }
            gfx.Texturing = false;
        }
Esempio n. 11
0
        public override void Render(double delta)
        {
            if (canReconnect)
            {
                UpdateDelayLeft(delta);
            }
            game.Graphics.Draw2DQuad(0, 0, game.Width, game.Height, top, bottom);

            game.Graphics.Texturing = true;
            titleWidget.Render(delta);
            messageWidget.Render(delta);

            if (canReconnect)
            {
                reconnect.Render(delta);
            }
            game.Graphics.Texturing = false;
        }
Esempio n. 12
0
        public override void Render(double delta)
        {
            RenderMenuBounds();
            game.Graphics.Texturing = true;
            RenderWidgets(widgets, delta);
            if (desc != null)
            {
                desc.Render(delta);
            }
            game.Graphics.Texturing = false;

            int cX = game.Width / 2, cY = game.Height / 2;

            game.Graphics.Draw2DQuad(cX - 250, cY + 90, 500, 2, grey);
            if (textPath == null)
            {
                return;
            }
            SaveMap(textPath);
            textPath = null;
        }
        public override void Render(double delta)
        {
            RenderMenuBounds();
            api.Texturing = true;
            RenderMenuWidgets(delta);
            inputWidget.Render(delta);
            if (descWidget != null)
            {
                descWidget.Render(delta);
            }
            api.Texturing = false;

            float cX = game.Width / 2, cY = game.Height / 2;

            api.Draw2DQuad(cX - 250, cY + 90, 500, 2, grey);
            if (textPath == null)
            {
                return;
            }
            SaveMap(textPath);
            textPath = null;
        }
Esempio n. 14
0
        public override void Render(double delta)
        {
            if (!game.PureClassic)
            {
                status.Render(delta);
            }
            bottomRight.Render(delta);
            CheckOtherStatuses();

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

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

            if (HandlesAllInput)
            {
                input.Render(delta);
                if (altText.Active)
                {
                    altText.Render(delta);
                }
            }

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