kopia lustrzana https://github.com/backface/turtlestitch
renamed some internal color methods
rodzic
baa8bd4bc2
commit
611518be00
|
@ -49,6 +49,9 @@
|
|||
* German
|
||||
* Chinese, thanks, Simon!
|
||||
|
||||
### 2021-11-08
|
||||
* objects: renamed some internal color methods
|
||||
|
||||
### 2021-11-07
|
||||
* widgets, blocks, byob: allow block-instances to be dragged off from templates in the "hide blocks" dialog
|
||||
* gui: prevent switching to another sprite if a "hide blocks" dialog is open
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<script src="src/widgets.js?version=2021-17-07"></script>
|
||||
<script src="src/blocks.js?version=2021-11-07"></script>
|
||||
<script src="src/threads.js?version=2021-10-22"></script>
|
||||
<script src="src/objects.js?version=2021-10-29"></script>
|
||||
<script src="src/objects.js?version=2021-11-08"></script>
|
||||
<script src="src/scenes.js?version=2021-10-12"></script>
|
||||
<script src="src/gui.js?version=2021-11-07"></script>
|
||||
<script src="src/paint.js?version=2021-07-05"></script>
|
||||
|
|
|
@ -4727,7 +4727,7 @@ BlockMorph.prototype.mouseClickLeft = function () {
|
|||
shiftClicked = this.world().currentKey === 16,
|
||||
stage;
|
||||
if (shiftClicked && !this.isTemplate) {
|
||||
return this.selectForEdit().focus(); // enable coopy-on-edit
|
||||
return this.selectForEdit().focus(); // enable copy-on-edit
|
||||
}
|
||||
if (top instanceof PrototypeHatBlockMorph) {
|
||||
return; // top.mouseClickLeft();
|
||||
|
|
|
@ -87,7 +87,7 @@ BlockVisibilityDialogMorph*/
|
|||
|
||||
/*jshint esversion: 6*/
|
||||
|
||||
modules.objects = '2021-October-29';
|
||||
modules.objects = '2021-November-08';
|
||||
|
||||
var SpriteMorph;
|
||||
var StageMorph;
|
||||
|
@ -4442,7 +4442,7 @@ SpriteMorph.prototype.setColorComponentHSVA = function (idx, num) {
|
|||
this.gotoXY(x, y);
|
||||
};
|
||||
|
||||
SpriteMorph.prototype.getColorComponentHSLA = function (idx) {
|
||||
SpriteMorph.prototype.getColorComponentHSVA = function (idx) {
|
||||
idx = +idx;
|
||||
if (idx === 3) {
|
||||
return (1 - this.color.a) * 100;
|
||||
|
@ -4453,7 +4453,7 @@ SpriteMorph.prototype.getColorComponentHSLA = function (idx) {
|
|||
SpriteMorph.prototype.changeColorComponentHSVA = function (idx, delta) {
|
||||
this.setColorComponentHSVA(
|
||||
idx,
|
||||
this.getColorComponentHSLA(idx) + (+delta || 0)
|
||||
this.getColorComponentHSVA(idx) + (+delta || 0)
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -4478,7 +4478,7 @@ SpriteMorph.prototype.getPenAttribute = function (attrib) {
|
|||
if (name === 'size') {
|
||||
return this.size || 0;
|
||||
}
|
||||
return this.getColorComponentHSLA(options.indexOf(name));
|
||||
return this.getColorComponentHSVA(options.indexOf(name));
|
||||
};
|
||||
|
||||
// SpriteMorph layers
|
||||
|
@ -9283,8 +9283,8 @@ StageMorph.prototype.setColorComponentHSVA = function (idx, num) {
|
|||
this.rerender();
|
||||
};
|
||||
|
||||
StageMorph.prototype.getColorComponentHSLA
|
||||
= SpriteMorph.prototype.getColorComponentHSLA;
|
||||
StageMorph.prototype.getColorComponentHSVA
|
||||
= SpriteMorph.prototype.getColorComponentHSVA;
|
||||
|
||||
StageMorph.prototype.changeColorComponentHSVA
|
||||
= SpriteMorph.prototype.changeColorComponentHSVA;
|
||||
|
|
Ładowanie…
Reference in New Issue