Beispiel #1
0
        private void initialize(int[] players)
        {
            foreach (var i in players)
            {
                var entry = new DialMenuEntry(i, "Player");
                entry.OnSelected += Entry_OnSelected;
                MenuItems.Items.Add(entry);
            }

            var back = new MenuEntry("Back");
            back.OnSelected += (sender, args) => CancelScreen();
            MenuItems.Items.Add(back);
        }
Beispiel #2
0
        public HelpMenuScreen()
            : base("Help & About")
        {
            var back = new MenuEntry("Back");
            back.OnSelected += (sender, args) => CancelScreen();

            MenuItems.AddItems(back);

            var sb = new StringBuilder();
            sb.AppendLine("Space - Select/Skip");
            sb.AppendLine("F5 - Toggle FPS");
            sb.AppendLine("F6 - Open dart input");

            StackPanel.Items.Insert(1, new TextBlock(sb.ToString()));
        }