Implement set/change stretch blocks

This commit is contained in:
Florrie 2018-04-30 21:29:34 -03:00
parent fe13f30037
commit 8c2d023925
2 changed files with 22 additions and 0 deletions

View file

@ -255,6 +255,8 @@ class Scratch3LooksBlocks {
looks_cleargraphiceffects: this.clearEffects,
looks_changesizeby: this.changeSize,
looks_setsizeto: this.setSize,
looks_changestretchby: this.doNothing,
looks_setstretchto: this.doNothing,
looks_gotofrontback: this.goToFrontBack,
looks_goforwardbackwardlayers: this.goForwardBackwardLayers,
looks_size: this.getSize,

View file

@ -349,6 +349,26 @@ const specMap = {
}
]
},
'changeStretchBy:': {
opcode: 'looks_changestretchby',
argMap: [
{
type: 'input',
inputOp: 'math_number',
inputName: 'CHANGE'
}
]
},
'setStretchTo:': {
opcode: 'looks_setstretchto',
argMap: [
{
type: 'input',
inputOp: 'math_number',
inputName: 'STRETCH'
}
]
},
'comeToFront': {
opcode: 'looks_gotofrontback',
argMap: [