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); }
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); } }
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); }