Пример #1
0
        public override IEnumerator <object> OnStatusWindowShown(IStatusWindow statusWindow)
        {
            var panel = new WeaponHelperConfig(this);

            yield return(panel.LoadConfiguration());

            statusWindow.ShowConfigurationPanel("Weapon Helper", panel);
        }
Пример #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();
     }
 }
Пример #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());
            }
        }
Пример #4
0
 public override IEnumerator<object> OnStatusWindowShown(IStatusWindow statusWindow)
 {
     var panel = new WeaponHelperConfig(this);
     yield return panel.LoadConfiguration();
     statusWindow.ShowConfigurationPanel("Weapon Helper", panel);
 }