File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 506
506
"startFullscreen" : {
507
507
"string" : " Start in fullscreen"
508
508
},
509
+ "maxTextureDimension" : {
510
+ "string" : " Increase max vector costume resolution to make large costumes look better. May increase memory use and cause crashes."
511
+ },
509
512
"package" : {
510
513
"string" : " Package" ,
511
514
"context" : " Button to package the project"
Original file line number Diff line number Diff line change 102
102
$options .custom .css !== ' ' ||
103
103
$options .custom .js !== ' ' ||
104
104
$options .projectId !== defaultOptions .projectId ||
105
- $options .packagedRuntime !== defaultOptions .packagedRuntime
105
+ $options .packagedRuntime !== defaultOptions .packagedRuntime ||
106
+ $options .maxTextureDimension !== defaultOptions .maxTextureDimension
106
107
);
107
108
108
109
const automaticallyCenterCursor = () => {
710
711
' extensions' ,
711
712
' bakeExtensions' ,
712
713
' custom' ,
713
- ' projectId'
714
+ ' projectId' ,
715
+ ' maxTextureDimension'
714
716
]);
715
717
}}
716
718
>
768
770
<input type ="checkbox" bind:checked ={$options .packagedRuntime } />
769
771
{$_ (' options.packagedRuntime' )}
770
772
</label >
773
+
774
+ <label class =" option" >
775
+ <input type ="checkbox" checked ={$options .maxTextureDimension !== defaultOptions .maxTextureDimension } on:change ={(e ) => {
776
+ $options .maxTextureDimension = defaultOptions .maxTextureDimension * (e .target .checked ? 2 : 1 );
777
+ }} />
778
+ {$_ (' options.maxTextureDimension' )}
779
+ </label >
771
780
</details >
772
781
</div >
773
782
</Section >
Original file line number Diff line number Diff line change @@ -1394,6 +1394,7 @@ cd "$(dirname "$0")"
1394
1394
enabled: ${ this . options . compiler . enabled } ,
1395
1395
warpTimer: ${ this . options . compiler . warpTimer }
1396
1396
});
1397
+ if (vm.renderer.setMaxTextureDimension) vm.renderer.setMaxTextureDimension(${ this . options . maxTextureDimension } );
1397
1398
1398
1399
if (typeof ScaffoldingAddons !== 'undefined') {
1399
1400
ScaffoldingAddons.run(scaffolding, ${ JSON . stringify ( this . getAddonOptions ( ) ) } );
@@ -1625,7 +1626,8 @@ Packager.DEFAULT_OPTIONS = () => ({
1625
1626
}
1626
1627
} ,
1627
1628
extensions : [ ] ,
1628
- bakeExtensions : true
1629
+ bakeExtensions : true ,
1630
+ maxTextureDimension : 2048
1629
1631
} ) ;
1630
1632
1631
1633
export default Packager ;
You can’t perform that action at this time.
0 commit comments