public void Start()
        {
            PluginCommons.init(new PlanItinearyForRoversProperties());

            GameEvents.onPlanetariumTargetChanged.Add(new EventData <MapObject> .OnEvent(onPlanetariumTargetChanged));

            PluginLogger.logDebug("Start " + DateTime.Now);
        }
Exemple #2
0
        public void Start()
        {
            PluginCommons.init(new KspEasyEditorStagingProperties());

            PluginLogger.logDebug("plugin start");


            StagingWindow stagingWindow = addWindow(new StagingWindow());

            ApplicationLauncherButton button = null;

            Texture2D texture;

            texture = Texture2D.whiteTexture;


            button = ApplicationLauncher.Instance.AddModApplication(
                delegate() {
                onTrue();
                //button.SetFalse(false);
                //foreach (Part p in EditorLogic.SortedShipList) {
                //	PluginLogger.logDebug("DEBUG1: " + p.partInfo.name + ":" + p.GetInstanceID() + ", " + p.inStageIndex + "," + p.inverseStage + "," + p.stagingOn);

                //	//p.highlight(new Color(1, 0, 0));
                //	p.SetHighlight(false, false);

                //}
                //EditorLogic.RootPart.highlight(new Color(0, 0, 1));
                //EditorLogic.RootPart.SetHighlight(false, false);
                //PluginLogger.logDebug("DEBUG: " + EditorLogic.RootPart.partName);
                stagingWindow.displayWindow();
            }, delegate() {
                stagingWindow.hideWindow();
                onFalse();
            }, null, null, null, null,
                ApplicationLauncher.AppScenes.VAB | ApplicationLauncher.AppScenes.SPH, texture);
            appLauncherButtons.Add(button);
        }