mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Implement set/change stretch blocks
This commit is contained in:
parent
fe13f30037
commit
8c2d023925
2 changed files with 22 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in a new issue