Skip to content

Commit

Permalink
Merge pull request #20949 from code-dot-org/droid-actor-numbers-fix
Browse files Browse the repository at this point in the history
Remove droid actor numbers on conditionals
  • Loading branch information
joshlory committed Mar 1, 2018
2 parents 37c6f97 + 3d82c78 commit d64830c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/i18n/studio/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"iceAge": "Ice Age!",
"ifDroid": "droid",
"ifDroidN": "droid {spriteIndex}",
"ifSprite": "actor",
"ifSpriteN": "actor {spriteIndex}",
"incrementPlayerScore" : "score point",
"isSet": "is set",
Expand Down
3 changes: 2 additions & 1 deletion apps/src/studio/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ exports.install = function (blockly, blockInstallOptions) {
.appendTitle(spriteNumberTextDropdown(msg.ifSpriteN), 'SPRITE');
}
} else {
block.appendDummyInput();
block.appendDummyInput()
.appendTitle(msg.ifSprite());
}
} else {
block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,18 @@
<block type="logic_boolean">
<title name="BOOL">TRUE</title>
</block>
<block type="studio_ifActorPositionParams" inline="true">
<block type="studio_ifActorPosition" inline="true">
<title name="POSITION">x</title>
<title name="OPERATOR">EQ</title>
</block>
<block type="studio_ifActorIsVisibleParams" inline="true">
<block type="studio_ifActorIsVisible" inline="true">
<title name="VISIBILITY">false</title>
</block>
<block type="studio_ifActorPositionElseParams" inline="true">
<block type="studio_ifActorPositionElse" inline="true">
<title name="POSITION">x</title>
<title name="OPERATOR">EQ</title>
</block>
<block type="studio_ifActorIsVisibleElseParams" inline="true">
<block type="studio_ifActorIsVisibleElse" inline="true">
<title name="VISIBILITY">false</title>
</block>
</category>
Expand Down

0 comments on commit d64830c

Please sign in to comment.