Exemple #1
0
        public void Render(double delta)
        {
            game.Graphics.Mode2D(game.Width, game.Height);
            if (activeScreen == null || !activeScreen.HidesHud)
            {
                statusScreen.Render(delta);
            }

            if (activeScreen == null || !activeScreen.HidesHud && !activeScreen.RenderHudOver)
            {
                hudScreen.Render(delta);
            }
            if (activeScreen != null)
            {
                activeScreen.Render(delta);
            }
            if (activeScreen != null && !activeScreen.HidesHud && activeScreen.RenderHudOver)
            {
                hudScreen.Render(delta);
            }

            if (overlays.Count > 0)
            {
                overlays[0].Render(delta);
            }
            game.Graphics.Mode3D();
        }
Exemple #2
0
        public void Render(double delta)
        {
            game.Graphics.Mode2D(game.Width, game.Height);
            bool showHUD   = activeScreen == null || !activeScreen.HidesHud;
            bool hudBefore = activeScreen == null || !activeScreen.RenderHudOver;

            if (showHUD)
            {
                statusScreen.Render(delta);
            }

            if (showHUD && hudBefore)
            {
                hudScreen.Render(delta);
            }
            if (activeScreen != null)
            {
                activeScreen.Render(delta);
            }
            if (showHUD && !hudBefore)
            {
                hudScreen.Render(delta);
            }

            if (overlays.Count > 0)
            {
                overlays[0].Render(delta);
            }
            game.Graphics.Mode3D();
        }