Allow changing stage size and hiding controls

This commit is contained in:
Thomas Weber committed 2021-02-20 19:05:31 -06:00
1 parent 2b22f3ec20
commit d4a2ee2f45
2 files changed
+17 -3

No files matched your search

+14
View File
@@ -195,6 +195,18 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<input name="turbowarp.username" type="text" value="">
</label>
</div>
<div>
Stage size
<input name="turbowarp.stageSize.width" type="number" value="480">
&times;
<input name="turbowarp.stageSize.height" type="number" value="360">
</div>
<div>
<label>
No controls
<input name="turbowarp.noControls" type="checkbox">
</label>
</div>
<div>
TurboWarp will automatically connect to its cloud variable server if packaging a project from an ID.
</div>
@@ -359,6 +371,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
highQualityPen: O.turbowarp.highQualityPen,
turbo: O.turbowarp.turbo,
username: O.turbowarp.username,
stageSize: O.turbowarp.stageSize,
noControls: O.turbowarp.noControls
});
};
+3 -3
View File
@@ -234,9 +234,9 @@ window.Packager = (function() {
if (${stringify(this.options.highQualityPen)}) vm.renderer.setUseHighQualityRender(true);
if (${stringify(this.options.turbo)}) vm.setTurboMode(true);
},
stageWidth: 480, // TODO
stageHeight: 360, // TODO
noControls: false, // TODO
stageWidth: ${stringify(this.options.stageSize.width)},
stageHeight: ${stringify(this.options.stageSize.height)},
noControls: ${stringify(this.options.noControls)},
};
</script>
<script>