示例#1
0
        string[] buildStrings(int rebindIndex)
        {
            List <string> bindings = new List <string>();

            for (int i = 0; i < bindingOrder.Count; i++)
            {
                Bindings command = bindingOrder[i];
                if (i == rebindIndex)
                {
                    bindings.Add(command + ": " +
                                 "Waiting for input...");
                }
                else
                {
                    bindings.Add(command + ": " +
                                 String.Join(',', InputBindings.getInputs(command)));
                }
            }
            bindings.Add("Reset to defaults");
            bindings.Add("Save changes");
            bindings.Add("Discard changes");
            return(bindings.ToArray());
        }