Add infinite clones option

This commit is contained in:
Thomas Weber committed 2021-03-07 09:35:52 -06:00
1 parent e58d90793d
commit e883b0a3aa
2 files changed
+7

No files matched your search

+6
View File
@@ -189,6 +189,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<input name="turbowarp.username" type="text" value="">
</label>
</div>
<div>
<label>
Infinite clones
<input name="turbowarp.infiniteClones" type="checkbox">
</label>
</div>
<div>
Stage size
<input name="turbowarp.stageSize.width" type="number" value="480">
+1
View File
@@ -272,6 +272,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
handleProjectLoaded: function () {
vm.setCompilerOptions(${stringify(this.options.compilerOptions)});
vm.setFramerate(${stringify(this.options.framerate)});
if (${stringify(this.options.infiniteClones)}) vm.setRuntimeOptions({ maxClones: Infinity });
if (${stringify(this.options.highQualityPen)}) vm.renderer.setUseHighQualityRender(true);
if (${stringify(this.options.turbo)}) vm.setTurboMode(true);
if (${stringify(this.options.interpolation)}) vm.setInterpolation(true);