(properties)
| 86 | } |
| 87 | |
| 88 | makeProject(properties) |
| 89 | { |
| 90 | window.service.scriptsManager.compileAllScripts(); |
| 91 | |
| 92 | if(window.service.projectUI!=null) |
| 93 | window.service.projectUI.selectFolder(properties.projectpath, true); |
| 94 | |
| 95 | if(window.service.projectPropertiesUI!=null) |
| 96 | { |
| 97 | window.service.projectPropertiesUI.setSource(); |
| 98 | } |
| 99 | |
| 100 | window.service.menuUI.refresh(); |
| 101 | window.service.mainGrid.forceUpdate(); |
| 102 | if(window.service.sceneUI!=null) |
| 103 | { |
| 104 | window.service.sceneUI.update(); |
| 105 | } |
| 106 | if(window.service.hierarchyUI!=null) |
| 107 | window.service.hierarchyUI.forceUpdate(); |
| 108 | |
| 109 | if(window.service.outputUI!=null) |
| 110 | window.service.outputUI.forceUpdate(); |
| 111 | |
| 112 | if(window.service.projectPropertiesUI!=null) |
| 113 | { |
| 114 | window.service.projectPropertiesUI.setSource(); |
| 115 | } |
| 116 | |
| 117 | let saver = new JsonManager(properties); |
| 118 | saver.save(properties.projectpath+"/Properties.json") |
| 119 | |
| 120 | let saver2 = new JsonManager(window.service.getSceneJson()); |
| 121 | saver2.save(properties.projectpath+"/Scene.json") |
| 122 | |
| 123 | |
| 124 | $('#'+this.props.id).modal("hide"); |
| 125 | } |
| 126 | |
| 127 | selectProjectFolder() |
| 128 | { |
nothing calls this directly
no test coverage detected