Example #1
0
        public override void draw(Graphics g, Player p)
        {
            if (textBox != null)
            {
                textBox.draw(g, p);
            }
            int y = 15 - yOffset;

            Sprites.drawBox(g, 14, y, 6, 3);
            Sprites.drawString(g, "x" + option, 15, y + 1);
        }
Example #2
0
 public override void draw(Graphics g, Player p)
 {
     g.Clear(Color.White);
     Sprites.drawString(g, "Tiles: " + w.tiles, 0, 0);
     Sprites.drawString(g, "Change tile/block", 0, 1);
     Sprites.drawString(g, "Copy block", 0, 2);
     Sprites.drawString(g, "Save world", 0, 3);
     Sprites.drawString(g, "Copy/Paste", 0, 4);
     Sprites.drawString(g, "Exit menu", 0, 5);
     g.DrawRectangle(pen, 0, option * 8 - 1, 159, 10);
 }
Example #3
0
 public override void draw(Graphics g, Player p)
 {
     caller.draw(g, p);
     Sprites.drawBox(g, 0, 13, 20, 5);
     if (lines.Length > textLine)
     {
         Sprites.drawString(g, lines[textLine], 1, 14);
     }
     if (lines.Length > textLine + 1)
     {
         Sprites.drawString(g, lines[textLine + 1], 1, 16);
     }
 }
Example #4
0
        public override void draw(Graphics g, Player p)
        {
            if (textBox != null)
            {
                textBox.draw(g, p);
            }
            int y = 16 - height - yOffset;

            Sprites.drawBox(g, 18 - width, y, width + 2, height + 2);
            for (int i = 0; i < options.Length; i++)
            {
                Sprites.drawString(g, options[i], 19 - width, y + i + 1);
            }
            g.DrawRectangle(new Pen(Color.Black), 8 * (19 - width) - 1, 8 * (y + option + 1) - 1, width * 8 + 2, 10);
        }
Example #5
0
 public override void draw(Graphics g, Player p)
 {
     g.Clear(Color.White);
     Sprites.drawString(g, message, 0, 0);
     for (int i = 0; i < position; i++)
     {
         Sprites.drawString(g, chars[i].ToString(), i, 1);
     }
     if ((frames / 30) % 2 == 0)
     {
         Sprites.drawString(g, "_", position, 1);
     }
     for (int i = 0; i < CHAR_LIMIT; i++)
     {
         Sprites.drawString(g, getChar(i).ToString(), i % CHARS_PER_LINE + 1, i / CHARS_PER_LINE + 3);
     }
     g.DrawRectangle(pen, (option % CHARS_PER_LINE + 1) * 8, (option / CHARS_PER_LINE + 3) * 8, 8, 8);
     Sprites.drawString(g, "START to accept", 0, 17);
 }