Skip to content

Commit

Permalink
Add messages for camera motion dropdowns (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Mar 1, 2024
1 parent 30f4b02 commit d70bcee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blocks_vertical/motion.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ Blockly.Blocks['motion_pointtowards_menu'] = {
"name": "TOWARDS",
"options": [
[Blockly.Msg.MOTION_POINTTOWARDS_POINTER, '_mouse_'],
[Blockly.Msg.MOTION_POINTTOWARDS_CAMERA, '_camera_'],
[Blockly.Msg.MOTION_POINTTOWARDS_RANDOM, '_random_']
]
}
Expand Down Expand Up @@ -205,6 +206,7 @@ Blockly.Blocks['motion_goto_menu'] = {
"name": "TO",
"options": [
[Blockly.Msg.MOTION_GOTO_POINTER, '_mouse_'],
[Blockly.Msg.MOTION_GOTO_CAMERA, '_camera_'],
[Blockly.Msg.MOTION_GOTO_RANDOM, '_random_']
]
}
Expand Down Expand Up @@ -328,6 +330,7 @@ Blockly.Blocks['motion_glideto_menu'] = {
"name": "TO",
"options": [
[Blockly.Msg.MOTION_GLIDETO_POINTER, '_mouse_'],
[Blockly.Msg.MOTION_GLIDETO_CAMERA, '_camera_'],
[Blockly.Msg.MOTION_GLIDETO_RANDOM, '_random_']
]
}
Expand Down
3 changes: 3 additions & 0 deletions msg/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,18 @@ Blockly.Msg.MOTION_POINTINDIRECTION = 'point in direction %1';
Blockly.Msg.MOTION_POINTTOWARDS = 'point towards %1';
Blockly.Msg.MOTION_POINTTOWARDSXY = 'point towards x: %1 y: %2'; // usb
Blockly.Msg.MOTION_POINTTOWARDS_POINTER = 'mouse-pointer';
Blockly.Msg.MOTION_POINTTOWARDS_CAMERA = 'camera';
Blockly.Msg.MOTION_POINTTOWARDS_RANDOM = 'random direction';
Blockly.Msg.MOTION_GOTO = 'go to %1';
Blockly.Msg.MOTION_GOTO_POINTER = 'mouse-pointer';
Blockly.Msg.MOTION_GOTO_CAMERA = 'camera';
Blockly.Msg.MOTION_GOTO_RANDOM = 'random position';
Blockly.Msg.MOTION_GOTOXY = 'go to x: %1 y: %2';
Blockly.Msg.MOTION_CHANGEBYXY = 'change by x: %1 y: %2'; // usb
Blockly.Msg.MOTION_GLIDESECSTOXY = 'glide %1 secs to x: %2 y: %3';
Blockly.Msg.MOTION_GLIDETO = 'glide %1 secs to %2';
Blockly.Msg.MOTION_GLIDETO_POINTER = 'mouse-pointer';
Blockly.Msg.MOTION_GLIDETO_CAMERA = 'camera';
Blockly.Msg.MOTION_GLIDETO_RANDOM = 'random position';
Blockly.Msg.MOTION_CHANGEXBY = 'change x by %1';
Blockly.Msg.MOTION_SETX = 'set x to %1';
Expand Down

0 comments on commit d70bcee

Please sign in to comment.