Beispiel #1
0
        public void Initialize(string module, eFilterType filtType, bool initializeCamera = true)
        {
            moduleName = module;
            filterType = filtType;


            if (initializeCamera)
            {
                cameraFilter = CameraFilter.CreateFilter(cameraMode);
                cameraFilter.Activate();
            }
            currentMode = (filterType == eFilterType.Map ? eFilterType.Flight : filterType);

            if (titleFile != "")
            {
                titleTexture = CameraFilter.LoadTextureFile(titleFile);
            }
        }
 public void SetMode(CameraFilter.eCameraMode mode)
 {
     if (mode != cameraMode)
     {
         CameraFilter newFilter = CameraFilter.CreateFilter(mode);
         if (newFilter != null && newFilter.Activate())
         {
             if (cameraFilter != null)
             {
                 cameraFilter.Save(moduleName);
                 cameraFilter.Deactivate();
             }
             cameraFilter = newFilter;
             cameraFilter.Load(moduleName);
             cameraMode = mode;
         }
     }
 }
Beispiel #3
0
 public void SetMode(CameraFilter.eCameraMode mode)
 {
     Debug.Log("SetMode, mode: " + mode.ToString());
     if (mode != cameraMode)
     {
         Debug.Log("SetMode 1");
         CameraFilter newFilter = CameraFilter.CreateFilter(mode);
         if (newFilter != null && newFilter.Activate())
         {
             Debug.Log("SetMode 2");
             if (cameraFilter != null)
             {
                 Debug.Log("SetMode 3");
                 cameraFilter.Save(moduleName);
                 cameraFilter.Deactivate();
             }
             Debug.Log("SetMode 4, moduleName: " + moduleName);
             cameraFilter = newFilter;
             cameraFilter.Load(moduleName);
             cameraMode = mode;
         }
     }
 }