Esempio n. 1
0
        public override IEnumerator <object> OnStatusWindowShown(IStatusWindow statusWindow)
        {
            var panel = new WeaponHelperConfig(this);

            yield return(panel.LoadConfiguration());

            statusWindow.ShowConfigurationPanel("Weapon Helper", panel);
        }
Esempio n. 2
0
 public override IEnumerator<object> Initialize()
 {
     // Hack to initialize prefs to defaults
     using (var configWindow = new WeaponHelperConfig(this)) {
         yield return configWindow.LoadConfiguration();
         yield return configWindow.SaveConfiguration();
     }
 }
Esempio n. 3
0
        public override IEnumerator <object> Initialize()
        {
            // Hack to initialize prefs to defaults
            using (var configWindow = new WeaponHelperConfig(this)) {
                yield return(configWindow.LoadConfiguration());

                yield return(configWindow.SaveConfiguration());
            }
        }
Esempio n. 4
0
 public override IEnumerator<object> OnStatusWindowShown(IStatusWindow statusWindow)
 {
     var panel = new WeaponHelperConfig(this);
     yield return panel.LoadConfiguration();
     statusWindow.ShowConfigurationPanel("Weapon Helper", panel);
 }