예제 #1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();

            DrawHelp.DrawRectangle(spriteBatch, Vector2.Zero, a.resolution, Color.Black * 0.8f);

            float y = 10f;

            for (int i = line_i; i < 20; i++)
            {
                y += 20;
                DrawLine(spriteBatch, i, y);
            }
            for (int i = 0; i < line_i; i++)
            {
                y += 20;
                DrawLine(spriteBatch, i, y);
            }

            if (sleepCom == "")
            {
                string line = "> " + current.GetContentWithPipe();
                spriteBatch.DrawString(Resources.GetFont("ConsoleFont"), line, new Vector2(10, y + 20), Color.Green);
            }
            spriteBatch.End();
        }
예제 #2
0
파일: MenuState.cs 프로젝트: melari/Atomic
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();
            spriteBatch.DrawString(Resources.GetFont("TitleFont"), title, new Vector2(300, 10), Color.Black);

            float y = 200;

            foreach (SlidingMenuItem item in menuItems)
            {
                spriteBatch.DrawString(Resources.GetFont("MenuFont"), item.GetText(), new Vector2(item.x, y), Color.White);
                y += 50;
            }
            DrawHelp.DrawCircle(spriteBatch, Input.mouse, 5, Color.Black, 8);
            spriteBatch.End();
        }
예제 #3
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Begin();
     DrawHelp.DrawRectangle(spriteBatch, Vector2.Zero, a.resolution, Color.Black * alpha);
     spriteBatch.End();
 }
예제 #4
0
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     DrawHelp.DrawCircle(spriteBatch, position, 3, Color.White, 3);
 }
예제 #5
0
 public void Draw(SpriteBatch spriteBatch)
 {
     DrawHelp.DrawLine(spriteBatch, start, end, Color.Black);
 }
예제 #6
0
파일: InputField.cs 프로젝트: melari/Atomic
 public void Draw(SpriteBatch spriteBatch)
 {
     DrawHelp.DrawRectangle(spriteBatch, (int)position.X, (int)position.Y, (int)size.X, (int)size.Y, Color.LightGray);
     spriteBatch.DrawString(Resources.GetFont("ConsoleFont"), focused ? content.GetContentWithPipe() : content.GetContent(), position + Vector2.UnitX * 5, Color.Black);
 }
예제 #7
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     DrawHelp.DrawRectangle(spriteBatch, position, size, Color.White);
 }