Ejemplo n.º 1
0
 public override void Render(double delta)
 {
     base.Render(delta);
     graphicsApi.Texturing = true;
     infoWidget.Render(delta);
     graphicsApi.Texturing = false;
 }
        public override void Render(double delta)
        {
            RenderMenuBounds();
            int extEndY = extendedHelp == null ? 0 : extendedHelp[extendedHelp.Length - 1].BottomRight.Y;

            if (extendedHelp != null && extEndY <= widgets[widgets.Length - 3].Y)
            {
                int x = game.Width / 2 - tableWidth / 2 - 5;
                int y = game.Height / 2 + extHelpY - 5;
                graphicsApi.Draw2DQuad(x, y, tableWidth + 10, tableHeight + 10, tableCol);
            }

            graphicsApi.Texturing = true;
            RenderMenuWidgets(delta);
            if (inputWidget != null)
            {
                inputWidget.Render(delta);
            }


            if (extendedHelp != null && extEndY <= widgets[widgets.Length - 3].Y)
            {
                for (int i = 0; i < extendedHelp.Length; i++)
                {
                    extendedHelp[i].Render(delta);
                }
            }
            if (descWidget != null)
            {
                descWidget.Render(delta);
            }

            graphicsApi.Texturing = false;
        }
Ejemplo n.º 3
0
 public override void Render(double delta)
 {
     graphicsApi.ClearColour(FastColour.Black);
     graphicsApi.Texturing = true;
     titleWidget.Render(delta);
     messageWidget.Render(delta);
     progressBoxTexture.Render(graphicsApi);
     graphicsApi.Texturing = false;
     graphicsApi.Draw2DQuad(progX, progY, progWidth * progress / 100f, progHeight, FastColour.White);
 }
 public override void Render(double delta)
 {
     RenderMenuBounds();
     graphicsApi.Texturing = true;
     RenderMenuWidgets(delta);
     if (descWidget != null)
     {
         descWidget.Render(delta);
     }
     graphicsApi.Texturing = false;
 }
Ejemplo n.º 5
0
 public override void Render(double delta)
 {
     graphicsApi.Draw2DQuad(0, 0, game.Width, game.Height, new FastColour(60, 60, 60, 160));
     graphicsApi.Texturing = true;
     title.Render(delta);
     for (int i = 0; i < buttons.Length; i++)
     {
         buttons[i].Render(delta);
     }
     graphicsApi.Texturing = false;
 }
        public override void Render(double delta)
        {
            RenderMenuBounds();
            graphicsApi.Texturing = true;
            RenderMenuButtons(delta);
            inputWidget.Render(delta);
            if (descWidget != null)
            {
                descWidget.Render(delta);
            }
            graphicsApi.Texturing = false;

            if (textPath != null)
            {
                SaveMap(textPath);
                textPath = null;
            }
        }
Ejemplo n.º 7
0
        public override void Render(double delta)
        {
            UpdateFPS(delta);
            if (game.HideGui || !game.ShowFPS)
            {
                return;
            }

            graphicsApi.Texturing = true;
            fpsTextWidget.Render(delta);
            if (!game.PureClassicMode && game.activeScreen == null)
            {
                UpdateHackState(false);
                DrawPosition();
                hackStatesWidget.Render(delta);
            }
            graphicsApi.Texturing = false;
        }