kopia lustrzana https://github.com/backface/turtlestitch
fixed costume maximum extent
rodzic
bdbb5da2d7
commit
771bdeb34b
|
@ -35,6 +35,7 @@
|
|||
* store: load user defined palettes
|
||||
* gui: restore custom palettes when activating a scene
|
||||
* added new category feature to palette context menu
|
||||
* gui, objects, scenes: fixed costume maximum extent
|
||||
|
||||
### 2021-07-21
|
||||
* user defined custom block palettes, under construction
|
||||
|
|
|
@ -6587,6 +6587,7 @@ IDE_Morph.prototype.setStageExtent = function (aPoint) {
|
|||
this.controlBar.stageSizeButton.refresh();
|
||||
this.stage.stopVideo();
|
||||
this.setExtent(world.extent());
|
||||
Costume.prototype.maxDimensions = aPoint;
|
||||
if (this.isAnimating) {
|
||||
zoom();
|
||||
} else {
|
||||
|
|
|
@ -9830,8 +9830,11 @@ function Costume(canvas, name, rotationCenter, noFit, maxExtent) {
|
|||
this.loaded = null; // for de-serialization only
|
||||
}
|
||||
|
||||
Costume.prototype.maxDimensions = new Point(480, 360);
|
||||
|
||||
Costume.prototype.maxExtent = function () {
|
||||
return StageMorph.prototype.dimensions;
|
||||
// return StageMorph.prototype.dimensions;
|
||||
return this.maxDimensions;
|
||||
};
|
||||
|
||||
Costume.prototype.toString = function () {
|
||||
|
|
|
@ -47,13 +47,13 @@
|
|||
*/
|
||||
|
||||
/*global modules, VariableFrame, StageMorph, SpriteMorph, Process, List,
|
||||
normalizeCanvas, SnapSerializer*/
|
||||
normalizeCanvas, SnapSerializer, Costume*/
|
||||
|
||||
/*jshint esversion: 6*/
|
||||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.scenes = '2021-July-21';
|
||||
modules.scenes = '2021-July-22';
|
||||
|
||||
// Projecct /////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -195,6 +195,7 @@ Scene.prototype.captureGlobalSettings = function () {
|
|||
};
|
||||
|
||||
Scene.prototype.applyGlobalSettings = function () {
|
||||
Costume.prototype.maxDimensions = this.stage.dimensions;
|
||||
StageMorph.prototype.hiddenPrimitives = this.hiddenPrimitives;
|
||||
StageMorph.prototype.codeMappings = this.codeMappings;
|
||||
StageMorph.prototype.codeHeaders = this.codeHeaders;
|
||||
|
|
Ładowanie…
Reference in New Issue