Ejemplo n.º 1
0
    public void ClickOSMBrowse()
    {
        isNewProject = true;
        DirectoryInfo di = new DirectoryInfo(Directory.GetCurrentDirectory());

        fbd.draw(myFileBrowserDialog.BrowserMode.FileSelect, di, new string[] { ".osm", ".xml" });
    }
Ejemplo n.º 2
0
        public void clickPlayPause()
        {
            Button cameraButton = this.transform.Find("Panel").Find("ButtonCameraMode").GetComponent <Button>();

            if (cameraMode == CameraMode.None)
            {
                controllerObject = GameObject.Find("Camera Van");
                if (controllerObject != null)
                {
                    carController = controllerObject.GetComponent <CarController>();
                }
                else
                {
                    controllerObject = GameObject.Find("Third Person (Ethan)");
                }

                if (cameraList != null && cameraList.Count > 0)
                {
                    hasCamera = true;
                }
                if (laserScanner.frameRate != 0)
                {
                    laserFrameTime  = 1.0f / laserScanner.frameRate;
                    hasLaserScanner = true;
                }
                cameraMode = CameraMode.Recording;
                cameraButton.image.sprite = Resources.Load <Sprite>("Textures/Menu/CameraVan/stopIcon");
            }
            else if (cameraMode == CameraMode.Recording)
            {
                if (carController != null)
                {
                    carController.wheelColliders[0].brakeTorque = 1000;
                    carController.wheelColliders[1].brakeTorque = 1000;
                }
                cameraMode = CameraMode.Processing;
                cameraButton.image.sprite = Resources.Load <Sprite>("Textures/Menu/CameraVan/playIcon");
                cameraButton.interactable = false;
                DirectoryInfo di = new DirectoryInfo(Directory.GetCurrentDirectory());
                fbd.draw(myFileBrowserDialog.BrowserMode.FolderSelect, di, new string[] { ".xml" });
            }
        }
Ejemplo n.º 3
0
        public void editTextureClick(int no)
        {
            DirectoryInfo di = new DirectoryInfo(Directory.GetCurrentDirectory());

            fbd.draw(myFileBrowserDialog.BrowserMode.FileSelect, di, new string[] { ".png", ".bmp", ".jpg", ".tif" });
            buildingEditSkinMenu.SetActive(false);
            switch (no)
            {
            case 1:
                colorTextureSelect = true;
                break;

            case 2:
                normalTextureSelect = true;
                break;

            case 3:
                specularTextureSelect = true;
                break;
            }
        }
Ejemplo n.º 4
0
        public void clickTextureChange()
        {
            DirectoryInfo di = new DirectoryInfo(Directory.GetCurrentDirectory());

            fbd.draw(myFileBrowserDialog.BrowserMode.FileSelect, di, new string[] { ".png", ".bmp", ".jpg", ".tif" });
        }
Ejemplo n.º 5
0
        public void newObjectClick()
        {
            DirectoryInfo di = new DirectoryInfo(Directory.GetCurrentDirectory());

            fbd.draw(myFileBrowserDialog.BrowserMode.FileSelect, di, new string[] { ".obj", ".txt", ".mtl" });
        }