Beispiel #1
0
        private void SceneManager_sceneLoaded(Scene scene, LoadSceneMode arg1)
        {
            if (scene.name == "Startup" || scene.name == "Systems" || scene.name == "Login")
            {
                return;
            }

            PersistentEffectsManager.SuppressPersistentEffectUI = false;

            //ShowGameObjectsInScene(scene);
            //if (gameObjects != null)
            //	for (int i = 0; i < gameObjects.Length; i++)
            //		MessageBox.Show(ReflectionHelper.GetAllProperties(gameObjects[i]), $"GameObject {i}");

            AddDispatcherToScene();

            Talespire.Initialize();

            if (frmExplorer == null)
            {
                frmExplorer = new FrmExplorer();
                frmExplorer.Show();

                //MessageBox.Show("LoadMultiModAssets...");
                try
                {
                    LoadMultiModAssets();
                }
                catch (Exception ex)
                {
                    Talespire.Log.Exception(ex);
                }
            }

            if (frmEffectList == null)
            {
                frmEffectList = new FrmEffectList();
                frmEffectList.Show();
            }
        }
Beispiel #2
0
 void Update()
 {
     //Talespire.Camera.ShowPosition();
     ModdingUtils.OnUpdate();
     Talespire.Update();
 }