Example #1
0
        private void InitTimer_Tick(object sender, EventArgs e)
        {
            // run it once
            Timer t = (Timer)sender;
            t.Stop();

            // clone a barebones repo if we don't have one, pull if we do
            updater.clonePullBarebones();

            // deserialize settings
            deserializeSettings();

            // auto-retrieve the workshop IDs for published addons if there are any.
            tryGetWorkshopIDs();

            // set currAddon to the addon that was last opened in last run of modkit.
            if (Settings.Default.LastAddon != "") {
                Addon a = getAddonFromName(Settings.Default.LastAddon);
                if (a != null) {
                    changeCurrAddon(a);
                }
            }

            // basically, if this is first run of modkit, set the currAddon to w/e the default addon is in the workshop tools.
            if (currAddon == null) {
                changeCurrAddon(addons[getDefaultAddonName()]);
            }

            // init our features of Modkit
            kvFeatures = new KVFeatures(this);
            vtexFeatures = new VTEXFeatures(this);
            particleFeatures = new ParticleFeatures(this);
            soundFeatures = new SoundFeatures(this);
        }
		private void initFeatures() {
			kvFeatures = new KVFeatures(this);
			vtexFeatures = new VTEXFeatures(this);
			particleFeatures = new ParticleFeatures(this);
			soundFeatures = new SoundFeatures(this);
		}