mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-28 07:10:27 -04:00
parent
f5ee6a7e58
commit
b99f089ae7
1 changed files with 4 additions and 4 deletions
|
@ -94,11 +94,11 @@ Scratch3LooksBlocks.prototype._setCostumeOrBackdrop = function (target,
|
||||||
var costumeIndex = target.getCostumeIndexByName(requestedCostume);
|
var costumeIndex = target.getCostumeIndexByName(requestedCostume);
|
||||||
if (costumeIndex > -1) {
|
if (costumeIndex > -1) {
|
||||||
target.setCostume(costumeIndex);
|
target.setCostume(costumeIndex);
|
||||||
} else if (costumeIndex === 'previous costume' ||
|
} else if (requestedCostume === 'previous costume' ||
|
||||||
costumeIndex === 'previous backdrop') {
|
requestedCostume === 'previous backdrop') {
|
||||||
target.setCostume(target.currentCostume - 1);
|
target.setCostume(target.currentCostume - 1);
|
||||||
} else if (costumeIndex === 'next costume' ||
|
} else if (requestedCostume === 'next costume' ||
|
||||||
costumeIndex === 'next backdrop') {
|
requestedCostume === 'next backdrop') {
|
||||||
target.setCostume(target.currentCostume + 1);
|
target.setCostume(target.currentCostume + 1);
|
||||||
} else {
|
} else {
|
||||||
var forcedNumber = Cast.toNumber(requestedCostume);
|
var forcedNumber = Cast.toNumber(requestedCostume);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue