Example #1
0
    public void Reload()
    {
        Options.Clear();
        Indexer.Clear();

        Dictionary <string, KeyCode> config = Controls.GetConfig();

        ResetPos();
        Options.Add("Reset Controls", new ButtonOption(() => { Controls.ResetConfig(); Reload(); return(true); }));
        Indexer.Add("Reset Controls");

        foreach (var c in config)
        {
            Options.Add(c.Key, new KeyOption(c.Key, c.Value));
            Indexer.Add(c.Key);
        }
    }