Allow changing stage size and hiding controls
This commit is contained in:
2 files changed
+17
-3
No files matched your search
+14
@@ -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">
|
||||
×
|
||||
<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
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user