DrawPic() 공개 정적인 메소드

public static DrawPic ( int x, int y, glpic_t pic ) : void
x int
y int
pic glpic_t
리턴 void
예제 #1
0
        /// <summary>
        /// SCR_DrawLoading
        /// </summary>
        private static void DrawLoading()
        {
            if (!_DrawLoading)
            {
                return;
            }

            glpic_t pic = Drawer.CachePic("gfx/loading.lmp");

            Drawer.DrawPic((vid.width - pic.width) / 2, (vid.height - 48 - pic.height) / 2, pic);
        }
예제 #2
0
 // Sbar_DrawPic
 static void DrawPic(int x, int y, glpic_t pic)
 {
     if (Client.Cl.gametype == Protocol.GAME_DEATHMATCH)
     {
         Drawer.DrawPic(x, y + (Scr.vid.height - SBAR_HEIGHT), pic);
     }
     else
     {
         Drawer.DrawPic(x + ((Scr.vid.width - 320) >> 1), y + (Scr.vid.height - SBAR_HEIGHT), pic);
     }
 }
예제 #3
0
        // SCR_DrawNet
        private static void DrawNet()
        {
            if (Host.RealTime - Client.cl.last_received_message < 0.3)
            {
                return;
            }
            if (Client.cls.demoplayback)
            {
                return;
            }

            Drawer.DrawPic(_VRect.x + 64, _VRect.y, _Net);
        }
예제 #4
0
        // SCR_DrawRam
        private static void DrawRam()
        {
            if (_ShowRam.Value == 0)
            {
                return;
            }

            if (!Render.CacheTrash)
            {
                return;
            }

            Drawer.DrawPic(_VRect.x + 32, _VRect.y, _Ram);
        }
예제 #5
0
        // DrawPause
        private static void DrawPause()
        {
            if (_ShowPause.Value == 0)  // turn off for screenshots
            {
                return;
            }

            if (!Client.cl.paused)
            {
                return;
            }

            glpic_t pic = Drawer.CachePic("gfx/pause.lmp");

            Drawer.DrawPic((vid.width - pic.width) / 2, (vid.height - 48 - pic.height) / 2, pic);
        }
예제 #6
0
        // SCR_DrawTurtle
        private static void DrawTurtle()
        {
            //static int	count;

            if (_ShowTurtle.Value == 0)
            {
                return;
            }

            if (Host.FrameTime < 0.1)
            {
                _TurtleCount = 0;
                return;
            }

            _TurtleCount++;
            if (_TurtleCount < 3)
            {
                return;
            }

            Drawer.DrawPic(_VRect.x, _VRect.y, _Turtle);
        }
예제 #7
0
        /// <summary>
        /// Sbar_IntermissionOverlay
        /// called each frame after the level has been completed
        /// </summary>
        public static void IntermissionOverlay()
        {
            Scr.CopyEverithing = true;
            Scr.FullUpdate     = 0;

            if (Client.Cl.gametype == Protocol.GAME_DEATHMATCH)
            {
                Sbar.DeathmatchOverlay();
                return;
            }

            glpic_t pic = Drawer.CachePic("gfx/complete.lmp");

            Drawer.DrawPic(64, 24, pic);

            pic = Drawer.CachePic("gfx/inter.lmp");
            Drawer.DrawTransPic(0, 56, pic);

            // time
            int dig = Client.Cl.completed_time / 60;

            IntermissionNumber(160, 64, dig, 3, 0);
            int num = Client.Cl.completed_time - dig * 60;

            Drawer.DrawTransPic(234, 64, _Colon);
            Drawer.DrawTransPic(246, 64, _Nums[0, num / 10]);
            Drawer.DrawTransPic(266, 64, _Nums[0, num % 10]);

            IntermissionNumber(160, 104, Client.Cl.stats[QStats.STAT_SECRETS], 3, 0);
            Drawer.DrawTransPic(232, 104, _Slash);
            IntermissionNumber(240, 104, Client.Cl.stats[QStats.STAT_TOTALSECRETS], 3, 0);

            IntermissionNumber(160, 144, Client.Cl.stats[QStats.STAT_MONSTERS], 3, 0);
            Drawer.DrawTransPic(232, 144, _Slash);
            IntermissionNumber(240, 144, Client.Cl.stats[QStats.STAT_TOTALMONSTERS], 3, 0);
        }