Beispiel #1
0
        internal static void Open()
        {
            KKStyle.Init();
            //windowRect = new Rect(CreateBesidesMainwindow(), new Vector2(windowWidth, windowHeight));
            content = new List <DialogGUIBase>();
            KKTitle();
            CreateContent();
            CreateMultiOptionDialog();
            CreatePopUp();
            InputLockManager.SetControlLock("KK_KSC");

            //GameObject prefab = null;

            //foreach (GameObject go in Resources.FindObjectsOfTypeAll<GameObject>())
            //{
            //    if (go.name == "CrewManagementArea")
            //    {
            //        prefab = GameObject.Instantiate(go, new Vector3(3,41,0), Quaternion.identity) as GameObject;
            //    }
            //}

            //foreach (MonoBehaviour comp in prefab.GetComponentsInChildren<MonoBehaviour>(true))
            //{
            //    Log.Normal(comp.GetType().FullName.ToString());
            //}

            //prefab.transform.SetParent(KSP.UI.UIMasterController.Instance.appCanvas.transform);
            //prefab.SetActive(true);
        }
 internal static void Open()
 {
     KKStyle.Init();
     //windowRect = new Rect(CreateBesidesMainwindow(), new Vector2(windowWidth, windowHeight));
     content = new List <DialogGUIBase>();
     KKTitle();
     CreateContent();
     CreateMultiOptionDialog();
     CreatePopUp();
 }
Beispiel #3
0
 internal static void Open()
 {
     KKStyle.Init();
     staticInstance = EditorGUI.selectedInstance;
     staticInstance.HighlightObject(Color.clear);
     selectedMod = EditorGUI.selectedInstance.mesh.GetComponents <GrassColor2>()[0];
     ReadMod(selectedMod);
     //windowRect = new Rect(CreateBesidesMainwindow(), new Vector2(windowWidth, windowHeight));
     content = new List <DialogGUIBase>();
     KKTitle();
     CreateContent();
     CreateMultiOptionDialog();
     CreatePopUp();
 }
 internal static void Initialize()
 {
     KKStyle.Init();
     LoadPresets();
     Log.Normal("UI2.WindowManager2 initialized");
 }