private void Up() { index--; if (index < 0) { index = items.Length - 1; } choice = items[index]; }
private void Down() { index++; if (index >= items.Length) { index = 0; } choice = items[index]; }
public LoadMenu( DoomMenu menu, string name, int titleX, int titleY, int firstChoice, params TextBoxMenuItem[] items) : base(menu) { this.name = new[] { name }; this.titleX = new[] { titleX }; this.titleY = new[] { titleY }; this.items = items; index = firstChoice; choice = items[index]; }