Skip to content

Commit 6eaa9fa

Browse files
committed
Allow for creation sharing with Share Button
- Hide share button on non-free play levels - Make demo levels free play
1 parent feb5340 commit 6eaa9fa

File tree

5 files changed

+11
-28
lines changed

5 files changed

+11
-28
lines changed

blockly/i18n/voxel/en_us.json

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
11
{
2-
"circleBlockTitle": "circle (radius, style, color)",
3-
"displayBlockTitle": "display",
4-
"ellipseBlockTitle": "ellipse (width, height, style, color)",
5-
"extraTopBlocks": "You have unattached blocks. Did you mean to attach these to the \"display\" block?",
6-
"overlayBlockTitle": "overlay (top, bottom)",
7-
"placeImageBlockTitle": "place-image (x, y, image)",
8-
"offsetBlockTitle": "offset (x, y, image)",
9-
"rectangleBlockTitle": "rectangle (width, height, style, color)",
10-
"reinfFeedbackMsg": "You can press the \"Try again\" button to edit your drawing.",
11-
"rotateImageBlockTitle": "rotate (degrees, image)",
12-
"scaleImageBlockTitle": "scale (factor)",
13-
"squareBlockTitle": "square (size, style, color)",
14-
"starBlockTitle": "star (radius, style, color)",
15-
"radialStarBlockTitle": "radial-star (points, inner, outer, style, color)",
16-
"stringAppendBlockTitle": "string-append (first, second)",
17-
"stringLengthBlockTitle": "string-length (string)",
18-
"textBlockTitle": "text (string, size, color)",
19-
"triangleBlockTitle": "triangle (size, style, color)",
20-
"underlayBlockTitle": "underlay (bottom, top)",
21-
"outline": "outline",
22-
"solid": "solid",
23-
"string": "string"
2+
"extraTopBlocks": "You have unattached blocks. Did you mean to attach these to the \"When Run\" or click blocks?",
3+
"reinfFeedbackMsg": "You can press the \"Try again\" button to continue playing.",
4+
"shareGame": "Share your game:"
245
}

blockly/src/voxel/controls.html.ejs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
var commonMsg = require('../../locale/current/common');
44
%>
55

6-
<button id="continueButton" class="launch hide float-right">
7-
<img src="<%= assetUrl('media/1x1.gif') %>"><%= commonMsg.continue() %>
8-
</button>
6+
<div id="right-button-cell">
7+
<button id="rightButton" class="share">
8+
<img src="<%= assetUrl('media/1x1.gif') %>"><%= "Share" %>
9+
</button>
10+
</div>

dashboard/config/scripts/levels/Block Destroyer.level

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"disable_variable_editing": "false",
1515
"use_modal_function_editor": "false",
1616
"use_contract_editor": "false",
17-
"free_play": "false",
17+
"free_play": "true",
1818
"min_workspace_height": "1800"
1919
}
2020
}]]></config>

dashboard/config/scripts/levels/Block Maker.level

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"disable_variable_editing": "false",
1515
"use_modal_function_editor": "false",
1616
"use_contract_editor": "false",
17-
"free_play": "false"
17+
"free_play": "true"
1818
}
1919
}]]></config>
2020
<blocks>

dashboard/config/scripts/levels/Block Sprayer.level

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"disable_variable_editing": "false",
1616
"use_modal_function_editor": "false",
1717
"use_contract_editor": "false",
18-
"free_play": "false"
18+
"free_play": "true"
1919
}
2020
}]]></config>
2121
<blocks>

0 commit comments

Comments
 (0)